/* Font Icons for CHekcout page */
@font-face {
  font-family: 'icomoon';
  src:  url('../../assets/fonts/icomoon/fonts/icomoon.eot?hvchva');
  src:  url('../../assets/fonts/icomoon/fonts/icomoon.eot?hvchva#iefix') format('embedded-opentype'),
    url('../../assets/fonts/icomoon/fonts/icomoon.ttf?hvchva') format('truetype'),
    url('../../assets/fonts/icomoon/fonts/icomoon.woff?hvchva') format('woff'),
    url('../../assets/fonts/icomoon/fonts/icomoon.svg?hvchva#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* Custom width for Checkout page */
@media (min-width: 769px) {
    .page-template-default.edd-checkout .ast-container {
        max-width: 1000px;
    }    
    .page-template-default.edd-checkout .ast-article-single {
        padding: 80px;
    }
}

/* Reduce Excessive Bottom Margin  */
.page-template-default.edd-checkout #primary {
    margin: 4em 0 0;
} 


/* Miscellaneous */
#edd_payment_mode_select_wrap {
    padding-top: 20px;
}
#edd_checkout_form_wrap fieldset {
    border: none;
    margin: 0;
    padding: 0 0 20px;
}

/* Login Form on Chekcout page */
.edd-checkout p#edd-user-login-wrap .edd-label,
.edd-checkout p#edd-user-pass-wrap .edd-label {
    margin-bottom: 7px;
    display: block;
}
@media (min-width: 769px) {
    #edd_checkout_wrap #edd_checkout_login_register {
        position: relative;
    }
    #edd_checkout_wrap p#edd-login-account-wrap,
    #edd_checkout_wrap p#edd-new-account-wrap {
        text-align: right;
        position: absolute;
        right: 0;
        top: 15px;
        z-index: 9999;
    }
    #edd_checkout_wrap #edd_login_fields p#edd-user-login-wrap {
        margin-top: 40px;
    }
}

/* Input field styles */
#edd_checkout_wrap input {
    border-width: 2px !important;
    border-color: #e5eaef !important;
    border-radius: 2px !important;
}
#edd_checkout_wrap input:focus {
    border-color: #556cd6 !important;
}

/* Error messages alignment */
#edd_checkout_wrap .edd-alert {
    margin: 10px 0;
    display: inline-block;
}
#edd_checkout_wrap #edd_purchase_form_wrap .edd-alert {
    margin: 10px 30px;
}

/* Hide License Renewal Form */
form#edd_sl_cancel_renewal_form,
form#edd_sl_renewal_form {
    display: none;
}

/* Remove cart product link in order summary box */
#edd_checkout_wrap .edd_cart_remove_item_btn {
    position: relative;
    margin: 0;
    width: 1em;
    height: 1em;
    left: 5px;
    top: 2px;
    display: inline-block;
}
#edd_checkout_wrap .edd_cart_remove_item_btn:after {
    content: "\e909";
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1em;
    height: 1em;
    z-index: 99;
}
*/

/* Discount code - Discount applied text */
th.edd_cart_discount .edd_discount {
	color: #66a700;
}

/* Discount Code - Background */
#edd_checkout_wrap #edd_checkout_form_wrap #edd_discount_code p#edd_show_discount {
    border: none;
    padding: 0;
    font-size: 11px;
	margin: -2em 0 40px;
}
#edd_checkout_wrap #edd_discount_code {
	background: #fff;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}
#edd_checkout_wrap #edd_discount_code #edd-discount-code-wrap {
	margin-bottom: 2em;
	padding-top: 20px;
	padding-bottom: 30px;	
}

/* Discount code - Remove button */
a.edd_discount_remove {
    font-size: 1em;
    top: 1px;
    left: 2px;
    position: relative;
    display: inline-block;
}
a.edd_discount_remove:before {
    content: "\e909";
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Discount code - Input box & submit button alignment */
#edd_checkout_wrap #edd_discount_code #edd-discount {
    width: 70%;
}
#edd_checkout_wrap #edd_discount_code .edd-apply-discount {
    margin: 0 0 0 5px;
    width: calc(30% - 15px);
    padding: 0.931em;
    line-height: 1;
    border-radius: 1px;
}

/* Cart summary - table alignments */
table#edd_checkout_cart p {
    padding: 0;
    margin: 0;
}
#edd_checkout_wrap .eddr-cart-item-notice {
    /*font-size: 11px;*/
    display: none;
}
#edd_checkout_cart td, 
#edd_checkout_cart th {
    padding: 10px 30px;
    white-space: nowrap;
}
#edd_checkout_cart th.edd_cart_total {
    text-align: left;
}
#edd_checkout_cart th.edd_cart_item_name {
    width: 100%;
}
#edd_checkout_cart th.edd_cart_item_price {
    text-align: center;
}
#edd_checkout_cart td.edd_cart_item_price {
    text-align: center;
}

/* Icons for Chekocut Form Titles */
#edd_payment_mode_select legend:before,
#edd_checkout_user_info legend:before,
#edd_register_account_fields legend:before {
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    margin-right: 7px;    
}
#edd_payment_mode_select legend:before {
    content: "\e906";
}
#edd_checkout_user_info legend:before {
    content: "\e908";
}
#edd_register_account_fields legend:before {
    content: "\e905";
}

/* Payment Information - Payment Icons */
.edd-checkout #edd-payment-mode-wrap label.edd-gateway-option {
	border: 2px solid #d8d8d8;
	border-radius: 3px;
	padding: 10px 20px;
	line-height: 38px;
	cursor: pointer;
}
.edd-checkout #edd-payment-mode-wrap label.edd-gateway-option:hover {
    border: 2px solid #556cd6;
}
.edd-checkout #edd-payment-mode-wrap label.edd-gateway-option.edd-gateway-option-selected {
	border: 2px solid #66a700;
}
.edd-checkout #edd-payment-mode-wrap label.edd-gateway-option input[type=radio] {
    -webkit-appearance: none;
}
.edd-checkout #edd-payment-mode-wrap label#edd-gateway-option-stripe {
    background: #fff url('../../images/cards.jpg') no-repeat;
	width: 290px;
    background-size: 150px 30px;
    background-position: 110px 15px;
    margin-right: 20px;
}
.edd-checkout #edd-payment-mode-wrap label#edd-gateway-option-paypal,
.edd-checkout #edd-payment-mode-wrap label#edd-gateway-option-paypalexpress {
    background: #fff url(../../images/paypal.svg) no-repeat;
    width: 210px;
    background-size: 150px 25px;
    background-position: center;
    margin-right: 0;
    text-indent: -9999px;
}

/* Payment Information - Loader */
#edd_purchase_form_wrap span.edd-loading-ajax.edd-loading {
    left: 30px;
}

/* Payment Information - Border */
div#edd_payment_mode_select_wrap,
div#edd_purchase_form_wrap,
#edd_checkout_form_wrap #edd_purchase_form > #edd_checkout_login_register,
#edd_checkout_form_wrap #edd_purchase_form > fieldset#edd_checkout_user_info,
#edd_checkout_form_wrap #edd_purchase_form > fieldset#edd_purchase_submit,
.bsf-authorization-area,
.bsf-secure-area {
    border-left: 1px solid #e5eaef !important;
    border-right: 1px solid #e5eaef !important;
}
div#edd_payment_mode_select_wrap,
#edd_checkout_form_wrap #edd_purchase_form > #edd_checkout_login_register,
#edd_checkout_form_wrap #edd_purchase_form > fieldset#edd_checkout_user_info {
    border-top: 1px solid #e5eaef !important;
}
.bsf-secure-area {
    border-bottom: 1px solid #e5eaef !important;
}

/* Payment Information - Background */
#edd_checkout_wrap #edd_purchase_form {
    border: 0;
    background: #f6f9fc;
}
#edd_checkout_wrap legend {
    border: none;
    background: transparent;
    float: none;
}
/* Personal Information Form Customizations */
@media (min-width: 769px) {
    .edd-checkout p#edd-first-name-wrap,
    .edd-checkout p#edd-last-name-wrap {
        width: calc(50% - 20px);
        float: left;
        display: inline-block;
    }
    .edd-checkout p#edd-last-name-wrap {
        margin-left: 20px;
        padding-left: 0;
    }
    .edd-checkout p#edd-first-name-wrap {
        margin-right: 20px;
        padding-right: 0;
    }
    .edd-checkout p#edd-first-name-wrap .edd-label,
    .edd-checkout p#edd-last-name-wrap .edd-label {
        margin-bottom: 7px;
        display: block;
    }
}

.edd-checkout p#edd-first-name-wrap .edd-description,
.edd-checkout p#edd-last-name-wrap .edd-description {
    display: none;
}

/* Create Account Information Form Customizations */
@media (min-width: 769px) {
    #edd_register_account_fields p#edd-user-pass-wrap,
    #edd_register_account_fields p#edd-user-pass-confirm-wrap {
        width: calc(50% - 20px);
        float: left;
        display: inline-block;
    }
    #edd_register_account_fields p#edd-user-pass-confirm-wrap {
        margin-left: 20px;
        padding-left: 0;
    }
    #edd_register_account_fields p#edd-user-pass-wrap {
        margin-right: 20px;
        padding-right: 0;
    }
    #edd_register_account_fields p#edd-user-pass-wrap label,
    #edd_register_account_fields p#edd-user-pass-confirm-wrap label {
        margin-bottom: 7px;
        display: block;
    }
}
#edd_register_account_fields p#edd-user-pass-wrap .edd-description,
#edd_register_account_fields p#edd-user-pass-confirm-wrap .edd-description {
    display: none;
}

/* Full width Cart Total Price */
#edd_checkout_form_wrap p#edd_final_total_wrap {
	display: none;
}
/*#edd_checkout_form_wrap p#edd_final_total_wrap {
	font-size: 28px;
	display: block;
	text-align: center;
	margin: 0 0 30px;
	padding-top: 0;
	padding-bottom: 0;
}
#edd_checkout_form_wrap p#edd_final_total_wrap strong {
    font-size: 0.8em;
    font-weight: normal;
}
#edd_checkout_form_wrap p#edd_final_total_wrap .edd_cart_amount {
	font-weight: bold;
	color: #66a700;
}*/

/* Full width checkout button */
.edd-checkout #edd-purchase-button {
	font-size: 20px;
	display: block;
	width: calc(100% - 60px);
	margin: 0 30px 0;
	padding: 15px 20px;
    border-color: #66a700 !important;
    background-color: #66a700 !important;
}

/* Money back guarantee text & Mcafee secure logo */
.bsf-authorization-area {
    padding: 5px 30px 20px;
    display: block;
}
.bsf-authorization-area span.terms-condition-text {
    width: 100%;
    display: block;
    text-align: justify;
    font-size: 11px;
    color: #777;
}

.bsf-secure-area {
    padding: 0 30px 50px;
    display: block;
    text-align: center;
}
.bsf-secure-area span.gurantee-text,
.bsf-secure-area span.mcafeesecure-logo,
.bsf-secure-area span.norton-logo,
.bsf-secure-area span.paypal-logo {
    display: inline-block;
    font-size: 12px;
    vertical-align: middle;
    position: relative;
    width: auto;
    margin: 10px;
}
.bsf-secure-area span.mcafeesecure-logo img,
.bsf-secure-area span.norton-logo img,
.bsf-secure-area span.paypal-logo img {
    display: inline-block !important;
}
.bsf-secure-area span.mcafeesecure-logo img {
    height: 40px;
}
.bsf-secure-area span.paypal-logo img {
    height: 50px;
}
.bsf-secure-area span.norton-logo img {
    height: 50px;
}

.bsf-secure-area span.gurantee-text {
    min-width: 200px;
    border-left: 1px solid #cbd0d6;
}
.bsf-secure-area span.gurantee-text ul {
    margin-bottom: 0 !important;
    list-style-position: inside;
    margin-left: 20px;
}
.bsf-secure-area span.gurantee-text ul li {
    margin-bottom: 2px !important;
    text-align: left; 
    font-weight: bold;
}

/* Payment Gateway Error Message */
div#edd-stripe-payment-errors {
    text-align: center;
}
div#edd-stripe-payment-errors p {
    margin-bottom: 0;
}

/* Responsive Design for Checkout page */
@media (max-width: 769px) {
    .edd-checkout #edd-payment-mode-wrap label#edd-gateway-option-stripe,
    .edd-checkout #edd-payment-mode-wrap label#edd-gateway-option-paypal, 
    .edd-checkout #edd-payment-mode-wrap label#edd-gateway-option-paypalexpress {
        width: auto;
        background: #fff;
        text-align: center;
        text-indent: unset;
        padding: 5px 20px;
    }
    .bsf-secure-area span.gurantee-text {
        border-left: none;
    }
    .bsf-secure-area span.mcafeesecure-logo img {
        height: 30px;
    }
    .bsf-secure-area span.paypal-logo img {
        height: 40px;
    }
    .bsf-secure-area span.norton-logo img {
        height: 40px;
    }
    .edd-checkout p#edd-email-wrap .edd-description {
        display: none;
    }
    #edd_register_account_fields p#edd-user-login-wrap .edd-description {
        display: none;
    }
}