/*
Theme Name: PTS Optics
Description: A child theme to house custom coding which modifies the Divi parent theme by Elegant Themes. Includes default line numbers where the code was taken from in the parent theme.
Author:   Brad Dalton http://wpsites.net
Template: Divi


 * Common Elemenet
   - Typography
   - Button

 * Forms
   - Registration form

 * WooCommerce
   - Product

 * My Account
   - ECP Connect

 * Plugin
   - Out of stock notifier

*/

:root{
	--pts-theme-color-red: #FF0000;
	--pts-theme-color-blue: #2ea3f2;
}

/* ---------- Common: Typography --------- */
.error-msg {
	color: var(--pts-theme-color-red);
}

/* ---------- Common: Button ---------- */
.custom-icon-only-button {
	display: flex!important;
	align-items: center;
	justify-content: center;

	font-family: ETmodules!important;

	padding: 0;
	margin-right: 5px;
}

.custom-text-only-button {
	font-weight: 600;
	letter-spacing: 1px;
}

.et_pb_module.eb_pb_buttom_module_custom_wrapper {
	display: inline-block;
	overflow: hidden;
	float: left;
	margin-bottom: 0!important;
}

.et_pb_module.eb_pb_buttom_module_custom_wrapper .custom-icon-only-button:after,
.et_pb_module.eb_pb_buttom_module_custom_wrapper:hover .custom-icon-only-button:after{
	content: ''!important;
	display: none;
}

.et_pb_button_custom,
.et_pb_button_custom:hover{
	transition: all 0.3s ease-in-out;
}




/***************
 Forms
***************/
/* Login Form 
------------------------------------------*/
.login-form-wrapper.logged-in .login-notes {
	display: none;
}

.homepage-login .login-form-wrapper #wppb-login-wrap input:not([type='checkbox']) {
	width: 100%!important;
}

#wppb-login-wrap {
	position: relative;
}

#wppb-login-wrap #wppb-submit {
	background-color: #ffffff!important;
	color: #41b6e6!important;
	border: 2px solid #211a52!important;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	border-radius: 20px!important;
	-webkit-border-radius: 20px!important;
	-moz-border-radius: 20px!important;
	line-height: 1.5em!important;
	padding: 0.5em 1em!important;
	padding-left: 45px!important;
	font-weight: 400;
	width: 100%;
}

#wppb-login-wrap #wppb-submit:hover {
	color: #000!important;
	border: 2px solid #41b6e6!important;
}

#wppb-login-wrap .login-submit:before {
	position: absolute;
	content: url(http://estoredev.myspecialtylenscare.com/wp-content/uploads/2020/08/symbol-PTSCCL_20.png);
	opacity: 0.8;
	width: 20px;
	display: inline-block;
	margin-top: 11px;
	margin-left: 75px;
	position: 100;
}

/* Registration form
------------------------------------------*/
#wppb-form-element-40,
.wppb-mailchimp-subscribe,
.wppb-form-field.wppb-phone .wppb-description-delimiter,
.woocommerce-checkout .form-row.mailchimp-newsletter,
.woocommerce-checkout #mailchimp-gdpr-fields {
	display: none!important;
}



/* Patient registration form */
#wppb-register-user-patient-sign-up-form .wppb-woocommerce-customer-billing-address .wppb-woo-billing-fields {
	margin-top: 0;
	border-top: none;
	padding-bottom: 0;
}

#wppb-register-user-patient-sign-up-form .wppb-form-field.wppb-woocommerce-customer-billing-address {
	padding-bottom: 0;
}

#wppb-register-user-patient-sign-up-form .wppb-woo-billing-fields .wppb-form-field.wppb_billing_heading,
#wppb-register-user-patient-sign-up-form .wppb-woocommerce-customer-billing-address > ul:not(.wppb-woo-billing-fields) {
	display: none;
}

/* ECP registration form */
#wppb-register-user-ecp-sign-up-form .wppb-woocommerce-customer-billing-address .wppb-woo-billing-fields {
	margin-top: 0;
	border-top: none;
	padding-bottom: 0;
}

#wppb-register-user-ecp-sign-up-form .wppb-form-field.wppb-woocommerce-customer-billing-address {
	/* padding-bottom: 0; */
}

#wppb-register-user-ecp-sign-up-form .wppb-woo-billing-fields .wppb-form-field.wppb_billing_heading,
#wppb-register-user-ecp-sign-up-form .wppb-woocommerce-customer-billing-address > ul:not(.wppb-woo-billing-fields) {
	display: none;
}


/* ECP profile form */
#wppb-form-element-35 .wppb-form-field.wppb_billing_heading {
	display: none!important;
}

#wppb-form-element-35 ul.wppb-woo-billing-fields,
#wppb-form-element-35 li.wppb_billing_company {
	border-top: 0;
	margin-top: 0;
	padding-bottom: 0;
}


/***************
 WooCommerce
***************/


/* Product
------------------------------------------*/
.product .special-product-note {
	display: block;
	padding: 10px!important;
	border: 1px solid #eee;
	margin-bottom: 20px;
	color: var(--pts-theme-color-blue);
}

/* Removes "View Cart" */
.added_to_cart.wc-forward {
	display: none!important;
}

/***************
 My Account
***************/


/* ECP Connect
------------------------------------------*/
.form-label,
.form-element {
	display: block;
	width: 100%;
}


/***************
 Pluign
***************/

/* Out of stock notifier
------------------------------------------*/
.cwginstock-subscribe-form  .cwginstock-panel-heading,
.cwginstock-subscribe-form  .cwgstock_email {
	display: none!important;
}

.cwginstock-subscribe-form .panel-primary {
	border: none!important;
}

.cwginstock-subscribe-form .cwgstock_button {
	width: auto;
}

.cwginstock-subscribe-form .form-group.center-block {
	text-align: left!important;
}