/*
Theme Name: Chemwhat
Description: Custom theme for chemwhat.com
Author: Kevin Chen
*/
/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
        white-space: nowrap;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}
html{
	font-size: 12px;
}
body{
	color: #545454;
	font-family: 'Roboto',arial,sans-serif;
}
a{
	color: rgba(25,0,102,1);
}
h1{
	font-size: 1.8rem;
	color: #222;
}
h2{
	font-size: 1.6rem;
	color: #222;
}
/* Search form */
.searchform{
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	padding: 10px;
	overflow: hidden;
}
.searchform > div{
    display:flex;
}
.searchform input[type='text']{
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
	padding: 12px;
	font-size: 16px;
	border-radius: 6px 0 0 6px;
	flex-grow: 2;
	width:100%;
	transition:none;
}
.searchform input[type='submit']{
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
	background: rgba(25,0,102,1);
	border-color: rgba(25,0,102,1);
	border-radius: 0 6px 6px 0;
	padding: 12px;
	font-size: 16px;
	cursor: pointer;
	flex-shrink:0;
   flex-grow: 1;
	min-width:100px;
	transition:none;
	color:#fff;
}
.searchform input[type='submit']:hover{
	background: rgba(25,0,102,0.8);
	border-color: rgba(25,0,102,0.8);
}
.search #content,
.category #content,
.search-results{
	border: 1px solid #eee;
	width: 100%;
}
.search-results th,
.search-results td{
	border: 1px solid #eee;
	text-align: center;
	padding: 10px;
}
.search-results .no{
	width: 10%;
}
.search-results .ms{
	width: 30%;
}
.search-results .pi{
	width: 60%;
	text-align: left;
}
.search .page-numbers,
.category .page-numbers{
	margin-top: 12px;
	display: inline-block;
	font-size: 14px;
}

.home .navbar-brand{
	display: none;
}

textarea, input[type="text"], input[type="email"], select{
	border: 1px solid #bbb;
	padding: 5px 10px;
}
#box-cid,
#box-chemical_name,
.variation-cid{
	display: none !important;
}

.epsilon-woocommerce .product .quantity input{
	width: 60px;
}
.quantity-years{
	float: left;
}

/* post */
.single-post table{
	width: 100%;
	margin-top: 20px;
}
.single-post table th{
	background: #deeef4;
}
.single-post table th h2{
	margin-bottom: 0;
}
.single-post table th,
.single-post table td{
	padding: 8px;
}
.single-post table td{
	width: 50%;
}
.single-post table td a{
	text-decoration: underline;
}
.main-content{
	margin-bottom: 100px;
}
.single-post .chem-info table{
	background: none;
	border: 1px solid #eee;
}
.single-post .chem-info tr{
	background: none;
}
.single-post .chem-info td{
	background: none;
	border: 1px solid #eee;
}
.single-post table tr:hover{
	background: #f9f9f9;
}


/* product */
.woocommerce-message{
	border-top-color: rgba(25,0,102,1);
}
.woocommerce-message::before{
	color: rgba(25,0,102,1);
}
.woocommerce div.product form.cart .variations td{
	display: block;
}
.woocommerce div.product form.cart .variations select{
	max-width: 400px;
	min-width: 200px;
}
.navbar-brand img{
	max-width: 160px;
}
.woocommerce-product-gallery__wrapper{
	display: flex;
	min-height: 280px;
}
.woocommerce div.product div.images img{
	max-width: 100%;
	width: auto;
	margin: auto;
}
.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images{
	width: auto;
	max-width: 100%;
}
.woocommerce div.product .woocommerce-tabs ul.tabs{
	display: none;
}
.woocommerce div.product form.cart .button{
	margin-left: 10px;
}
.woocommerce div.product p.price, .woocommerce div.product span.price{
	color: #222;
	font-weight: bold;
}
.woocommerce .woocommerce-variation{
	margin-bottom: 10px;
}
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt{
	background: rgba(25,0,102,1);
}
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover{
	background: rgba(25,0,102,0.8);
}
@media screen and (min-width: 769px) {
	.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images{
		width: 20%;
	}
	.woocommerce #content div.product div.summary, .woocommerce div.product div.summary, .woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary{
		width: 80%;
	}
}
p.price + .product_total_price{
	display: none;	
}

.wpcf7-form label{
	display: block;
}
.wpcf7-form input, .wpcf7-form textarea{
	max-width: 400px;
}

.btn-primary{
	background-color: rgba(25,0,102,1);
	border-color: rgba(25,0,102,1);
	cursor: pointer;
}
.btn-primary:hover{
	background-color: rgba(25,0,102,0.8);
	border-color: rgba(25,0,102,0.8);
}

/* header */
.navbar-header ul li a{
	color: #666;
}
.navbar-header ul li a:hover{
	text-decoration: underline;
}
.navbar-header .navbar-container .navbar-left{
	width: 100%;
}
.navbar-header .navbar-container .navbar-left .navbar-nav{
	float: right;
}
.navbar-left-logo{
	display: none;
}
.navbar-header .navbar-container{
	width: 100%;
	margin-right: 40px;
}
.navbar-header .navbar-button{
	display: none;
	background: none;
	font-size: 14px;
	border: none;
}
.navbar-header .widget-toggle-container{
	position: absolute;
	top: 26px;
	right: 20px;
}
.home .navbar-header .widget-toggle-container{
	top: 8px;
}
.navbar-header .widget-toggle-button{
	font-size: 18px;
	color: rgba(0, 0, 0, 0.5);
}
.navbar-header .widget-toggle-button:hover{
	color: rgba(0, 0, 0, 0.7);
}
.navbar-header .widget-toggle{
	display: none;
	position: absolute;
	width: 320px;
	padding: 28px;
	left: -300px;
	min-height: 100px;
	z-index: 999;
	background: #fff;
    border: 1px solid #ccc;
    border-color: rgba(0,0,0,.2);
    color: #000;
    -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.2);
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

@media screen and (max-width: 767px) {
	.home-logo{
		max-width: 160px;
	}
	.navbar-brand{
		display: block;
		margin: 0 auto;
	}
	.navbar-header .navbar-container{
		width: 100%;
	    height: 100vh;
	    position: absolute;
	    display: none;
	    background: rgba(0,0,0,0.5);
	    z-index: 99999;
	    top: 0;
	    left: 0;
	}
	.navbar-header .navbar-container .navbar-left{
		width: 200px;
	    background: #fff;
	    position: absolute;
	    top: 0;
	    height: 100vh;
	    left: 0;
	    padding: 10px;
	}
	.navbar-header .navbar-container .navbar-left .navbar-nav{
		float: left;
	}
	.navbar-header .navbar-container .navbar-right{
		width: calc(100% - 200px);
		height: 100vh;
	    position: absolute;
	    top: 0;
	    right: 0;
	}
	.navbar-header .navbar-button{
		display: block;
		cursor: pointer;
	}
	.navbar-left-logo{
		display: block;
	}
	.navbar-header .navbar-left-logo img{
		max-width: 120px;
		padding: 10px 0;
	}
	.search #content{
		margin-left: 0;
	}
	.navbar-header .widget-toggle-container{
		top: 16px;
	}
	.woocommerce-product-gallery__wrapper{
		min-height: auto;
	}
}

/* Footer */
.footer{
	position: fixed;
	bottom: 0;
	border-top: 1px solid #e4e4e4;
	background: #f2f2f2;
	padding-top: 10px;
}
.footer-copyright{
	float: right;
	padding-right: 20px;
	margin-top: 6px;
}
.footer-nav{
	float: left;
	margin-top: 6px;
	overflow: hidden;
}
.footer-nav ul{
	padding-left: 20px;
}
.footer-nav ul li{
	float: left;
	list-style: none;
	padding-right: 20px;
}
.footer-nav ul li a{
	color: #666;
}
.footer-nav ul li a:hover{
	text-decoration: underline;
}

/* Woocommerce */
.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1, .woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2{
	max-width: 100%;
}
.woocommerce div.product .product_title .product_service_comparison{
	font-size: 16px;
	margin-left: 20px;
}

.help-tip{
	position: relative;
    display: inline-block;
    margin-left: 20px;
    text-align: center;
    background-color: rgba(25,0,102,1);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
    cursor: default;
}

.help-tip:before{
    content:'?';
    font-weight: bold;
    color:#fff;
}

.help-tip:hover p{
    display:block;
    transform-origin: 100% 0%;

    -webkit-animation: fadeIn 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;

}

.help-tip p{    /* The tooltip */
    display: none;
    text-align: left;
    background-color: #1E2021;
    padding: 20px;
    width: 300px;
    position: absolute;
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    left: -4px;
	top:30px;
    color: #FFF;
    font-size: 13px;
    line-height: 1.4;
}

.help-tip p:before{ /* The pointer of the tooltip */
    position: absolute;
    content: '';
    width:0;
    height: 0;
    border:6px solid transparent;
    border-bottom-color:#1E2021;
    left:10px;
    top:-12px;
}

.help-tip p:after{ /* Prevents the tooltip from being hidden */
    width:100%;
    height:40px;
    content:'';
    position: absolute;
    top:-40px;
    left:0;
}

/* CSS animation */

@-webkit-keyframes fadeIn {
    0% { 
        opacity:0; 
        transform: scale(0.6);
    }

    100% {
        opacity:100%;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% { opacity:0; }
    100% { opacity:100%; }
}
.doofinderLogo {
     display: none!important;
}
/* Contact Form 7 Styles
---------------------------------*/
.wpcf7 {
margin-left: 25px;
margin-right: 25px;
}
.wpcf7-text {
width: 85%;
}
.wpcf7-textarea {
width: 85%;
}
.wpcf7-select {
width: 85%;
}
.wpcf7-date {
width: 85%;
}
.wpcf7-url {
width: 85%;
}
.wpcf7-number {
width: 85%;
}
.wpcf7-tel {
width: 85%;
}
.wpcf7-checkbox {
width: 85%;
}

html[dir="rtl"] .searchform input#searchsubmit {
    border-radius:6px 0 0 6px
}
html[dir="rtl"] .searchform input[type=text]{
    border-radius:0 6px 6px 0;
}
html[dir="rtl"] .navbar-header{
    padding-right:40px;
}