/*
* @todo: Split this file in sections and make it scss.
*/
:root {
    --field-margin-button: 0.8rem;
    --containers-width: 28vw;
    --containers-margin-bottom: 2rem;
    --divider-color: #BFBBBB;
    --three-column-width: 32.3%;
}

.checkout-form-container {
    display: flex;
    /* background-color: #646464; */
}

.billing-container {
    margin: 5rem 0;
    padding: 0 4rem;
}

.title-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.form-image {
    display: flex;
    width: 100%;
    justify-content: center;
}

.woo-steps {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.checkout-state {
    color: #14151A;
    text-decoration: none;
    cursor: pointer;
}

.state-divider {
    color: #898686;
    margin: 0 0.3rem;
}

.checkout-state.active {
    color: #898686;
    font-weight: 600;
    text-decoration: underline;
}

.saw-woo-checkout-container input,
.saw-woo-checkout-container textarea,
.saw-woo-checkout-container select,
.saw-woo-checkout-container .select2,
.saw-woo-checkout-container .select2-container,
.saw-woo-checkout-container .select2-selection,
.woocommerce-checkout #payment div.payment_box .wc-authorize-net-cim-credit-card-new-payment-method-form input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"] {
    font-family: "Benton", system-ui, sans-serif;
    font-size: 1rem;
    height: 3rem;
    padding: 5px 10px;
    border: 2px solid #D9D9D9;
    border-radius: 4px;
    background-color: white;
}

.saw-woo-checkout-container .select2 {
    padding: 0;
    margin: 0;
    border: none;
}

.saw-woo-checkout-container .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.saw-woo-checkout-container .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5em;
}

.saw-woo-checkout-container .form-row-first {
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container .form-row-last {
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container .validate-email {
    width: 100%;
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container .validate-phone {
    width: 100%;
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container #billing_country_field {
    width: 100%;
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container #billing_address_1_field {
    width: 100%;
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container #billing_address_2_field {
    width: 100%;
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container #billing_city_field {
    width: var(--three-column-width);
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container #billing_state_field {
    width: var(--three-column-width);
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container #billing_postcode_field {
    width: var(--three-column-width);
    margin-bottom: var(--field-margin-button);
}

.saw-woo-checkout-container #billing_company_field {
    width: 100%;
    margin-bottom: var(--field-margin-button);
}

.price-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.price-wrapper .on-sale {
    color: gray;
}

.price-wrapper .price-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tax-ammount ins {
    display: none;
}

#contact_by_sales_field .checkbox {
    width: 100%;
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    opacity: 1;
    pointer-events: initial;
}

#contact_by_sales_field .checkbox .optional {
    display: none;
}

#contact_by_sales_field .input-checkbox {
    margin-right: 10px;
}

#contact_by_sales_field .input-checkbox:checked {
    background-color: red;
}

.saw-woo-checkout-container .form-row-first,
.saw-woo-checkout-container .form-row-last {
    flex-basis: 49%;
}

.saw-woo-checkout-container .form-row-first .woocommerce-input-wrapper,
.saw-woo-checkout-container .form-row-last .woocommerce-input-wrapper {
    width: 96%;
}

.saw-woo-checkout-container .form-row-first .woocommerce-input-wrapper input,
.saw-woo-checkout-container .form-row-last .woocommerce-input-wrapper input {
    width: 100%;
}

.saw-woo-checkout-container .validate-email .woocommerce-input-wrapper,
.saw-woo-checkout-container .validate-phone .woocommerce-input-wrapper,
.saw-woo-checkout-container #billing_country_field .woocommerce-input-wrapper,
.saw-woo-checkout-container #billing_address_1_field .woocommerce-input-wrapper,
.saw-woo-checkout-container #billing_address_2_field .woocommerce-input-wrapper,
.saw-woo-checkout-container #billing_company_field .woocommerce-input-wrapper {
    width: 100%;
}

.saw-woo-checkout-container .validate-email .woocommerce-input-wrapper input,
.saw-woo-checkout-container .validate-phone .woocommerce-input-wrapper input,
.saw-woo-checkout-container #billing_country_field .woocommerce-input-wrapper .select2,
.saw-woo-checkout-container #billing_address_1_field .woocommerce-input-wrapper input,
.saw-woo-checkout-container #billing_address_2_field .woocommerce-input-wrapper input,
.saw-woo-checkout-container #billing_company_field .woocommerce-input-wrapper input {
    width: 100%;
}

.saw-woo-checkout-container #billing_city_field .woocommerce-input-wrapper,
.saw-woo-checkout-container #billing_state_field .woocommerce-input-wrapper,
.saw-woo-checkout-container #billing_postcode_field .woocommerce-input-wrapper {
    width: 100%;
}

.saw-woo-checkout-container #billing_city_field .woocommerce-input-wrapper input,
.saw-woo-checkout-container #billing_state_field .woocommerce-input-wrapper input,
.saw-woo-checkout-container #billing_postcode_field .woocommerce-input-wrapper input {
    width: 100%;
}

.select2-selection.select2-selection--single .select2-selection__rendered {
    position: relative;
    top: 4px;
}

.select2-selection.select2-selection--single .select2-selection__arrow {
    top: 10px;
}

.woocommerce-notices-wrapper {
    display: none;
}

.woocommerce-form-coupon-toggle {
    display: none;
}

/**
*   Product details.
*/
.woo-resume-container {
    background-color: #FAFAFA;
    padding-top: 5rem;
    padding-bottom: 2rem;
    min-height: 100vh;
}

.woo-products-container {
    display: flex;
    justify-content: center;
}

.woo-product {
    display: flex;
    flex-direction: column;
    flex-basis: var(--containers-width);
    padding: 0 0 6rem 0;
    margin-bottom: var(--containers-margin-bottom);
    border-bottom: 2px solid var(--divider-color);
}

.woo-product-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.woo-product-image-container img {
    max-height: 200px;
}

.woo-product-title {
    margin-bottom: 1rem;
}

.woo-product-tag {
    font-size: 1rem;
    font-weight: 500;
    color: #14151A;
}

.woo-product-title h3 {
    color: #14151A;
}

.woo-product-description h3 {
    color: #14151A;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.woo-product-description ul {
    color: #646464;
}

.woo-product-description ul li {
    padding: 0 0 0.5rem 0;
}

.woo-product-description ul li:before {
    content: "";
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #BFBBBB;
    margin-right: 1rem;
    border-radius: 50%;
}

.woo-products-pricing {
    width: var(--containers-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto var(--containers-margin-bottom) auto;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--divider-color);
}

.woo-tax-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.woo-tax-container h4 {
    font-size: 1rem;
}

.woo-products-total {
    width: var(--containers-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.woo-product-total {
    margin-bottom: 1rem;
}

.billing-summary {
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 0 0;
    margin-bottom: 1rem;
}

.info-row {
    display: grid;
    grid-template-columns: 7rem auto;
    padding: 0.5rem 0;
}

.info-row:first-child {
    padding: 0 0 0.5rem 0;
}

.info-row:last-child {
    padding: 0.5rem 0 0 0;
}

.info-title {
    font-weight: 500;
    color: #646464;
}

.info-data {
    font-weight: 400;
    color: #070707;
}

.wc_payment_method {
    display: flex;
    flex-direction: column;
    background-color: #F5F5F5;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: var(--field-margin-button);
}

.wc_payment_method label {
    display: flex;
    justify-content: space-between;
}

.sw-payment-method .wc-authorize-net-cim-credit-card-new-payment-method-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

#wc-authorize-net-cim-credit-card-account-number_field span {
    display: flex;
    width: 100%;
    margin-bottom: var(--field-margin-button);
}

#wc-authorize-net-cim-credit-card-account-number_field,
#wc-authorize-net-cim-credit-card-account-number_field input {
    flex-basis: 100%;
}

#wc-authorize-net-cim-credit-card-csc_field,
#wc-authorize-net-cim-credit-card-expiry_field {
    flex-basis: 49%;
}

.saw-woo-checkout-container .form-row-first .woocommerce-input-wrapper,
.saw-woo-checkout-container .form-row-last .woocommerce-input-wrapper {
    width: 100%;
}

.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number {
    background-size: 40px 28px;
}

.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1rem;
}

#terms {
    align-self: center;
    margin-top: 8px;
}

.woocommerce-terms-and-conditions-wrapper .form-row .checkbox {
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.mobile-logo {
    display: none;
}

.woo-mobile-toggle {
    display: none;
}

.information-container,
.payment-continer {
    display: none;
    flex-direction: column;
}

#contact-by-sales .checkbox {
    opacity: 1;
}

.form-row .checkbox,
#wo-shipping .checkbox {
    opacity: 1;
    pointer-events: all;
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    margin-top: 1rem;
}

.form-row input {
    margin-right: 10px;
}

#wc-authorize-net-cim-credit-card-account-number {
    margin-right: 0;
}

.continue-to-payment {
    display: none;
}

.continue-to-payment.active {
    display: flex;
}

.back-to-shipping {
    position: relative;
    font-family: 'Benton', sans-serif;
    display: none;
    border: none;
    text-decoration: underline;
    color: hsl(336, 71%, 57%);
    background-color: transparent;
    cursor: pointer;
    margin: 0 auto;
    width: max-content;
}

.woo-goto-payment.mobile {
    display: none;
}

.back-to-shipping.active {
    display: flex;
    width: inherit;
}

label[for="shipping_method_0_wf_easypost_idground_home_delivery"] {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
}

.woocommerce-shipping-methods {
    width: 100%;
}

.woocommerce-Price-amount {
    justify-self: end;
}

.active {
    display: flex;
}

@media screen and (max-width: 1024px) {

    .mobile-logo {
        display: flex;
        justify-content: center;
        padding: 2rem;
    }

    .woocommerce .container {
        width: 100%;
        max-width: 100%;
    }

    .woo-resume-container {
        min-height: auto;
        padding: 0 0 0 0;
    }

    .info-product-container {
        order: 1;
    }

    .info-pay-container {
        order: 2;
    }

    .woo-product {
        flex-basis: 90%;
        padding: 0 0 2rem;
    }

    .woo-product-image-container {
        text-align: left;
    }

    .woo-products-pricing {
        width: 90%;
    }

    .woo-products-total {
        width: 90%;
    }

    .woo-goto-payment {
        display: none;
    }

    .woo-goto-payment.mobile {
        display: flex;
        width: 100%;
        justify-content: flex-end;
        margin-top: 2rem;
    }

    .tab-container {
        width: 100%;
    }

    .form-image {
        display: none;
    }

    .form-image-mobile {
        display: flex;
    }

    .billing-container {
        margin: 2rem 0;
        padding: 0 1.5rem;
    }

    .saw-woo-checkout-container .form-row-first,
    .saw-woo-checkout-container .form-row-last,
    #billing_city_field,
    .saw-woo-checkout-container #billing_state_field,
    #billing_postcode_field {
        flex-basis: 100%;
        width: 100%;
    }

    #payment {
        width: 100%;
    }

    .woo-mobile-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        background-color: transparent;
        border-top: 1px solid var(--divider-color);
        border-bottom: 1px solid var(--divider-color);
        border: none;
        cursor: pointer;
        text-decoration: none;
        pointer-events: initial;
    }

    .mobile-toggle-wrapper {
        overflow: auto;
        height: 0;
        opacity: 0;
        transition: all 0.5s ease-in-out;
    }

    .mobile-toggle-wrapper.open {
        overflow: inherit;
        opacity: 1;
        height: 80vh;
        margin-top: 1rem;
    }

    .mobile-toggle-btn-container p {
        font-weight: 500;
        color: black;
    }

    .mobile-toggle-btn-container .dashicons-cart {
        margin-right: 0.5rem;
    }

    .mobile-total {
        display: flex;
        gap: 0.5rem;
    }

    .mobile-total .woo-product-total-label {
        align-self: center;
    }

    .mobile-total .woo-product-total {
        margin-bottom: 0;
    }

    .mobile-total .woo-total {
        font-size: 1.5rem;
    }
}

.shipping_address input {
    width: 100%;
}

#ship-to-different-address {
    margin-bottom: 1em;
}

#ship-to-different-address span {
    font-weight: 400;
    margin-left: 8px;
    font-size: 18px;
    color: var(--color-contrast-medium);
}

.shipping-address .form-row {
    margin-bottom: 0.5em;
}

@media screen and (max-width: 768px) {
    .mobile-logo {
        display: flex;
        justify-content: center;
        padding: 1rem;
    }
}