@charset "utf-8";

/* Page title */
.entry-title.main_title {
    display: none;
}

/* Main content */
.woocommerce .col2-set {
    color: #333;
    border: 1px solid #EEE;
    padding: 1em;
    margin: 1em 0;
}
/* Form input general styling */
.woocommerce form.checkout .form-row input.input-text {
    border: none;
    border-bottom: 1px solid #aaa;
    background-color: #fff;
}
/* Customer details container */
#customer_details {
    margin-top: 37px;
}
/* Billing container */
.woocommerce form .col2-set .col-1 {
    float: none;
    width: auto;
}
/* Billing, account, shipping containers */
form .woocommerce-billing-fields__field-wrapper,
form .woocommerce-account-fields,
.woocommerce form .col2-set .col-2,
.woocommerce-billing-fields .wcmca_address_selector_container {
    clear: both;
    margin-left: 20%;
    float: right !important;
    max-width:  673px;
    width: 100% !important;
}
/* Shipping container */
.woocommerce-shipping-fields {
    padding-top: 1em;
}
@media screen and (max-width: 980px) {
    /* adjust page padding */
    .container {
        width: 100%;
    }
    .woocommerce.et_right_sidebar #left-area,
    .woocommerce-page.et_right_sidebar #left-area {
        padding: 15px;
    }
    #main-footer {
        padding: 0 25px;
    }

    /* border around table */
    .woocommerce .col2-set {
        border: none;
        padding: 0;
    }
    form .woocommerce-billing-fields__field-wrapper,
    form .woocommerce-account-fields, form .col-2 {
        margin-left: 0%;
        border: 1px solid #f2f2f2;
        padding: 0.5em;
    }
    form .woocommerce-billing-fields__field-wrapper,
    form .woocommerce-account-fields {
        border-bottom: none;
    }
    form .woocommerce-account-fields{
        border-top: none;
    }
    .checkout .col-1 {
        margin-bottom: 0 !important;
    }
    form .col-2 {
        border-top: none;
        padding-bottom: 2em;
    }
    .woocommerce-shipping-fields {
        padding-top: 1em;
        border-top: 1px solid #f2f2f2;
    }

}

/* Hide multiple address popup by default */
.mfp-hide {
    display: none;
}


/* Billing title */
.woocommerce-billing-fields h3 {
    font-weight: normal;
    font-size: 20px;
}

/* Labels */
.woocommerce-page form .form-row label,
.woocommerce form.woocommerce-checkout .form-row label {
    display: inline-block;
    width: 10em;
    margin-right: 0;
}
.woocommerce form .form-row .required {
    color: #333;
}
.optional {
    display: none;
}
@media screen and (max-width: 980px) {
    .woocommerce-page form .form-row label,
.woocommerce form.woocommerce-checkout .form-row label {
        width: 8em;
    }
}
@media screen and (max-width: 500px) {
    .woocommerce-page form .form-row label,
.woocommerce form.woocommerce-checkout .form-row label {
        display: block;
        width: 100%;
    }
}

/* Inputs */
.woocommerce-input-wrapper {
    display: inline-block;
    width: calc(100% - 10em);
}
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper textarea,
.select2-container--default .select2-selection--single {
    border: 0;
    border-bottom: 1px solid #CCC;
    border-radius: unset;
    max-width: 100%;
}
.woocommerce-input-wrapper input::placeholder,
.woocommerce-input-wrapper textarea::placeholder {
    color: transparent;
}
@media screen and (max-width: 980px) {
    .woocommerce-input-wrapper {
        display: inline-block;
        width: calc(100% - 8em);
    }
}
@media screen and (max-width: 500px) {
    .woocommerce-input-wrapper {
        display: block;
        width: 100%;
    }
}

/* First name and surname */
#billing_first_name_field,
#shipping_first_name_field {
    width: 55%;
}
#billing_last_name_field,
#shipping_last_name_field {
    text-align: right;
    width: 45%
}
#billing_last_name_field label,
#shipping_last_name_field label{
    width: auto;
}
#billing_last_name_field .woocommerce-input-wrapper,
#shipping_last_name_field .woocommerce-input-wrapper {
    width: auto;
}
@media screen and (max-width: 980px) {
    #billing_first_name_field,
    #billing_last_name_field,
    #shipping_first_name_field,
    #shipping_last_name_field {
        float: left !important; /* Needed to override Divi style, which uses !important */
        width: 50% !important; /* Needed to override Divi style, which uses !important */
    }
}
@media screen and (max-width: 700px) {
    #billing_first_name_field,
    #billing_last_name_field,
    #shipping_first_name_field,
    #shipping_last_name_field {
        float: none !important; /* Needed to override Divi style, which uses !important */
        width: auto !important; /* Needed to override Divi style, which uses !important */
        text-align: left;
    }
    #billing_last_name_field label,
    #shipping_last_name_field label {
        width: 8em;
    }
    #billing_last_name_field .woocommerce-input-wrapper,
    #shipping_last_name_field .woocommerce-input-wrapper {
        display: inline-block;
        width: calc(100% - 8em);
    }

}
@media screen and (max-width: 500px) {
    #billing_last_name_field .woocommerce-input-wrapper,
    #shipping_last_name_field .woocommerce-input-wrapper {
        display: block;
        width: 100%;
    }
}

/* Address line 2 */
#billing_address_2_field,
#shipping_address_2_field,
.woocommerce form p.create-account,
#ship-to-different-address {
    margin-left: 10em;
}
#billing_address_2_field .woocommerce-input-wrapper,
#shipping_address_2_field .woocommerce-input-wrapper {
    width: 100%;
}
#billing_address_2_field .screen-reader-text,
#shipping_address_2_field .screen-reader-text  {
    position: static !important; /* Stop hidden text overflowing the .container element and messing up the page width */
    width: 0;
}
@media screen and (max-width: 980px) {
    #billing_address_2_field,
    #shipping_address_2_field,
    .woocommerce form p.create-account,
    #ship-to-different-address {
        margin-left: 8em;
    }
}
@media screen and (max-width: 500px) {
    #billing_address_2_field,
    #shipping_address_2_field,
    .woocommerce form p.create-account,
    #ship-to-different-address {
        margin-left: 0;
    }
}
#shipping_country + .select2-container {
    width: 100% !important;
}

/* Account creation */
#account_password_field label,
#account_password_field span.password-input {
    display: inline-block;
    vertical-align: middle;
}

/* Order notes */
p.form-row.notes label,
p.form-row.notes span {
    vertical-align: middle;
}




/* Order summary */
.order_review_inner {
    border: 1px solid #EEE;
    padding: 1em;
    margin: 1em 0;
}
#order_review_heading {
    font-weight: normal;
    font-size: 20px;
}
.woocommerce table.shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    border: none;
    float: right;
    max-width: 673px;
}
.form-row.place-order {
    clear: both;
}
.woocommerce-checkout #main-content .woocommerce-checkout-review-order-table td {
    text-align: right;
}
.woocommerce-checkout #main-content .woocommerce-checkout-review-order-table tr:first-child td {
    border-top: none;
}
.woocommerce table.shop_table.woocommerce-checkout-review-order-table th {
    font-weight: 200;
}
@media screen and (max-width: 980px) {
    .order_review_inner {
        border: none;
        padding: 0;
    }
    .woocommerce table.shop_table.woocommerce-checkout-review-order-table {
        margin-left: 0;
        width: 100%;
        border: 1px solid #f2f2f2;
    }
    #content-area table {
        padding: 0 0.5em;
    }
    #content-area table td, #content-area table th {
        padding: 0.5em 0;
    }
}

/* Terms & Conditions */
.woocommerce form.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row label {
    display: inline;
}

/* Place order */
#place_order {
    width: 100%;
    background: #a6071e;
    color: #fff !important; /* Needed to override Divi customizer, which uses !important */
    padding: 1em !important; /* Needed to override Divi style, which uses !important */
    border: none;
}
#place_order:hover {
    background: #a6071e !important; /* Needed to override Divi customizer, which uses !important */
}


/* Prevent overlay on checkout form (e.g. when payment section reloading) overlapping site header */
form.checkout .blockOverlay {
    z-index: 9 !important;
}


/* Payment section */
.woocommerce-checkout #payment {
    background: transparent;
    border: 1px solid #eee;
    border-radius: 0;
    padding: 1em;
}
.woocommerce-checkout #payment::after {
    content: '';
    clear: both;
    display: block;
}
/* Payment section title */
#payment-heading {
    font-weight: normal;
    font-size: 20px;
}
.payment-container {
    max-width: 673px;
    float: right;
    width: 100%;
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: none;
}
@media screen and (max-width: 980px) {
    .woocommerce-checkout #payment {
        border: none;
        padding: 0;
    }
    .payment-container {
        margin-left: 0;
        border: 1px solid #f2f2f2
    }
}

@media screen and (max-width: 500px) {
    .woocommerce-checkout #payment ul.payment_methods {
        padding: 0;
    }
    .payment-container {
        border: 0;
    }
}

/* Individual payment methods */
.woocommerce-checkout #payment ul.payment_methods li {
    border-bottom: 1px solid #eee;
    position: relative;
}
.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: none;
}
.woocommerce-checkout #payment div.payment_box {
    clear: both;
    background: #f2f2f2;
}
.woocommerce-checkout #payment div.payment_box::before {
    content: none;
    border-bottom-color: #f2f2f2;
}
@media screen and (max-width: 500px) {
    .woocommerce-checkout #payment div.payment_box {
        padding: 5px;
    }
}
/* Fake radio buttons */
input[name="payment_method"] {
    display: none;
}
input[name="payment_method"] + label::before {
    content: ' ';
    line-height: 12px;
    text-align: center;
    font-weight: 800;
    color: #333;
    display: inline-block;
    border: 1px solid #333;
    border-radius: 100%;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 20px;
}
input[name="payment_method"]:checked + label::before {
    content: "\00B7";
    font-size: 38px;
    line-height: 10px;
}
/* Gateway images */
.gateway-img {
    float: right;
    display: block;
}
.gateway-img img {
    height: 20px;
}
.gateway-img::after {
    content: '';
    clear: both;
    display: block;
    float: none;
}


/* Klarna */
#klarna-pay-later-main,
#klarna-pay-over-time-main {
    min-width: unset !important; /* It doesn't really make sense, but when this has a min-width of 280px it actually expands to the max-width of 600px. So just remove the min-width to fix it. */
}
#klarna-pay-over-time-main {
    max-width: unset !important;
}
/* Block checkout when payment complete */
.klarna-complete {
    position: relative;
    overflow: none;
}
.klarna-complete::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    position: fixed;
    top: 0;
    background-image: url('./img/spinner-2x.gif'); /* This is a WP provided gif located at wp-admin/images/ */
    background-position: center center;
    background-size: 100px;
    background-repeat: no-repeat;
}


/* Amazon pay */
.payment_box.payment_method_amazon_payments_advanced p, #pay_with_amazon {
    display: inline-block;
}
/* The Amazon Pay button image is added via js from Amazon's servers, so we can't change the actual image. Instead we hide it and set a background image on the container. */
#pay_with_amazon {
    background: url('./img/amazon-pay.png') no-repeat;
    background-size: contain;
    background-position: right;
}
#pay_with_amazon img {
    opacity: 0; /* we use opacity as clicks won't register on hidden / no display, and the handler that goes to amazon login is attached to the image, so we need clicks to work */
    height: 40px;
    width: 135px !important;
}
#amazon_customer_details .col-2 {
    margin: 2em 0 1em 0;
    border: none;
    padding: 0;
}
#amazon_addressbook_widget div,
#amazon_wallet_widget div {
     min-width: unset !important; /* It doesn't really make sense, but when this has a min-width of 300px it actually expands. So just remove the min-width to fix it. */
}


/* Sage Pay */
#sagepaydirect-cc-form #sagepaydirect-card-type {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background: #fff url('./img/arrow-down.svg') no-repeat right 20px center;
    background-size: 12px;
}
#sagepaydirect-cc-form #sagepaydirect-card-type,
.woocommerce-checkout #payment div.payment_box input.input-text {
    font-size: 16px;
    color: #333;
    border: none;
    height: 50px;
    border-radius: 0;
}
.woocommerce-checkout #payment div.payment_box input.input-text::placeholder,
.woocommerce-checkout #payment div.payment_box input.input-text::-webkit-input-placeholder,
#sagepaydirect-cc-form #sagepaydirect-card-type option:first-child {
    color: #d2d2d2;
}


/* Continue shopping link on thankyou page */
.continue-shopping {
    text-align: center;
}


/* Adjustments after restoring payment section back to bottom of page */
.order_review_inner::after {
    content : '';
    display: block;
    clear: both;
}


/* Add additional address */
#wcmca_add_new_address_button_billing,
#wcmca_add_new_address_button_shipping {
    margin-top: 20px;
}
#wcmca_address_select_menu_shipping + .select2-container,
#wcmca_address_select_menu_billing + .select2-container {
    width: calc(100% - 10.5em) !important;
}
.woocommerce-page form #wcmca_billing_address_internal_name_field.form-row label,
.woocommerce-page form #wcmca_shipping_address_internal_name_field.form-row label {
    width: auto;
}
#wcmca_billing_address_internal_name_field .woocommerce-input-wrapper,
#wcmca_shipping_address_internal_name_field .woocommerce-input-wrapper {
    width: 100%;
}
#wcmca_form_popup_container_billing #wcmca_billing_first_name_field,
#wcmca_form_popup_container_billing #wcmca_billing_last_name_field.form-row,
#wcmca_form_popup_container_billing #wcmca_billing_state_field.form-row,
#wcmca_form_popup_container_shipping #wcmca_shipping_first_name_field,
#wcmca_form_popup_container_shipping #wcmca_shipping_last_name_field.form-row,
#wcmca_form_popup_container_shipping #wcmca_shipping_state_field.form-row {
    width: auto;
    clear: both;
    float: none;
}
#wcmca_country_field_container_shipping,
#wcmca_country_field_container_billing {
    padding-bottom: 1em;
}
#wcmca_form_popup_container_billing #wcmca_billing_country_field,
#wcmca_form_popup_container_shipping #wcmca_shipping_country_field {
    width: auto;
    float: none;
}
#wcmca_address_form_billing .form-row.form-row-last.hidden,
#wcmca_address_form_shipping .form-row.form-row-last.hidden {
    display: none !important;
}
#wcmca_billing_address_2_field .woocommerce-input-wrapper,
#wcmca_shipping_address_2_field .woocommerce-input-wrapper {
    margin-left: 10em;
}
.woocommerce-checkout .wcmca_form_label {
    display: inline-block;
    width: 10em;
}
#wcmca_shipping_address_internal_name_field .wcmca_form_label,
#wcmca_billing_address_internal_name_field .wcmca_form_label {
    width: 100%;
}
@media screen and (max-width: 980px) {
    #wcmca_billing_is_default_address_field .woocommerce-input-wrapper,
    #wcmca_shipping_is_default_address_field .woocommerce-input-wrapper {
        width: auto;
    }
    .woocommerce-checkout .wcmca_form_label {
        display: inline-block;
        width: 8em;
    }
    #wcmca_billing_address_2_field .woocommerce-input-wrapper,
    #wcmca_shipping_address_2_field .woocommerce-input-wrapper {
        margin-left: 8em;
    }
}
@media screen and (max-width: 500px) {    
    .woocommerce-page form .form-row.wcmca_address_selector_container label {
        display: block;
    }
    #wcmca_address_select_menu_shipping + .select2-container,
    #wcmca_address_select_menu_billing + .select2-container {
        width: 100% !important;
    }
    #wcmca_billing_address_2_field .woocommerce-input-wrapper,
    #wcmca_shipping_address_2_field .woocommerce-input-wrapper {
        margin-left: 0;
    }
}


/* Pre-orders */
.cart_item .preorder.shipping_notice {
    font-weight: 400;
}



/* Paypal payment buttons */
#ppc-button {
    text-align: center;
}
/* Fake place order button */
#place_order-paypal {
    display: none;
    width: 100%;
    background: #a6071e;
    color: #fff !important;
    padding: 1em !important;
    border: none;
}
#place_order-paypal:hover {
    background: #a6071e !important;
}
#place_order[style="display: none !important;"]+#place_order-paypal {
    display: block;
}
/* Paypal logo below fake place order button */
#ppcp-messages {
    margin-top: 1em;
}
#paypal-button-container {
    overflow-y: hidden;
}
#ppc-button-ppcp-gateway {
  text-align: center;
}

/* BACS bank details on thankyou page */
.woocommerce ul.wc-bacs-bank-details.wc-bacs-bank-details {
    margin-bottom: 1em;
}
.woocommerce-bacs-bank-details + p {
    margin-top: -1em;
    margin-bottom: 2em;
}