/* ASK FORM CHAT POPUP FOR TUMBLR
VERSION: 1.0
AUTHOR: SIMPLYDOUBLEM
URL: SIMPLYDOUBLEM.COM
*/

.ask_popup {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 50;
}

.ask_open-button {
border: none;
position: absolute;
justify-content: center;
bottom: 3px;
right: 8px;
z-index: 9999999;
height: 60px;
width: 60px;
max-width: 60px;
background-color: #fff;
color: #fff;
border-radius: 30px;
box-shadow: 1px 6px 24px 0 rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: background-color .3s linear;
-webkit-tap-highlight-color: transparent;
outline: none;
}

.ask_open-button:hover {
background-color: #e6e6e6;
}

.ask_open-button svg {
width: 36px;
height: 36px;
vertical-align: middle;
}

.ask_tooltip {
position: absolute;
bottom: 15px;
right: 80px;
padding: 0 14px;
border: none;
border-radius: 16px;
background: #fff;
color: #000;
line-height: 31px;
white-space: nowrap;
box-shadow: 0 1px 4px 0 rgba(0,0,0,.4);
opacity: 0;
-webkit-transition: opacity .3s ease-in-out;
-moz-transition: opacity .3s ease-in-out;
-ms-transition: opacity .3s ease-in-out;
-o-transition: opacity .3s ease-in-out;
transition: opacity .3s ease-in-out;
}

.ask_tooltip::after {
content: '';
position: absolute;
top: 50%;
right: 2px;
width: 0;
height: 0;
border: 7px solid transparent;
border-left-color: #fff;
border-right: 0;
margin-top: -7px;
margin-right: -7px;

}

.ask_open-button:hover + .ask_tooltip {
opacity: 1;
}

.ask_chat-popup {
display: none;
position: absolute;
bottom: 0;
right: 80px;
z-index: 9;
width: 355px;
}

.ask_chat-container {
padding: 10px;
background-color: white;
border-radius: 10px;
border: 1px solid #e6e6e6;
box-shadow: 1px 6px 24px 0 rgba(0, 0, 0, 0.2);
}

.ask_chat-container::after {
content: '';
position: absolute;
right: 2px;
bottom: 23px;
width: 0;
height: 0;
border: 7px solid transparent;
border-left-color: #fff;
border-right: 0;
margin-top: -7px;
margin-right: -7px;
}

.ask_chat-container::before {
content: '';
position: absolute;
right: 1px;
bottom: 23px;
width: 0;
height: 0;
border: 7px solid transparent;
border-left-color: #e6e6e6;
border-right: 0;
margin-top: -7px;
margin-right: -7px;
}

.ask_chat-container .title {
float: left;
width: 90%;
}

.ask_chat-container .title h1 {
font-size: 1.5rem;
margin-bottom: 0;   
}

.ask_chat-container .title p {
margin: 0;
margin-top: -0.8em;
margin-bottom: .5em;
}

.ask_chat-container .closebtn {
float: right;
width: 10%;
text-align: center;
font-size: 1.6rem;
}

.ask_close-button {
width: 24px;
height: 24px;
padding: 0;
background: transparent;
border: none;
cursor: default;
-webkit-tap-highlight-color: transparent;
outline: none;
}

.ask_close-button svg {
cursor: pointer;
width: 24px;
height: 24px;
transition: fill .3s linear;
-webkit-tap-highlight-color: transparent;
}

.ask_close-button svg:hover {
fill: #404040;
}

@media only screen and (max-width: 474px) {
	.ask_chat-popup {
		position: fixed;
		bottom: 100px;
		right: 20px;
		width: 100%;
		padding-left: 40px;
	}

	.ask_chat-container::after {
		content: '';
		position: absolute;
		bottom: 2px;
		right: 36px;
		width: 0;
		height: 0;
		border: 7px solid transparent;
		border-top-color: #fff;
		border-bottom: 0;
		margin-left: -7px;
		margin-bottom: -7px;
	}

	.ask_chat-container::before {
		content: '';
		position: absolute;
		bottom: 1px;
		right: 36px;
		width: 0;
		height: 0;
		border: 7px solid transparent;
		border-top-color: #e6e6e6;
		border-bottom: 0;
		margin-left: -7px;
		margin-bottom: -7px;
	}
}