/* Root */
body.woocommerce-checkout {
    overflow: initial;
}

.woocommerce-checkout.checkout {
    margin-top: 20px;
}

/* Coupon Notices */
.woocommerce-form-coupon-toggle {
    margin-bottom: 10px;
}

.woocommerce-notices-wrapper:not(:empty) + .woocommerce-form-coupon-toggle {
    margin-top: -40px;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
    padding-left: 20px;
    border-color: #47adb0;
    background-color: #fff;
}

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

/* Login Notice */
.woocommerce-form-login-toggle {
    margin-bottom: 10px;
}

/* Billing/Shipping Fields */
.woocommerce-billing-fields,
.woocommerce-account-fields,
.woocommerce-additional-fields {
    margin-bottom: 20px;
}

#ship-to-different-address {
    font-family: "Barlow", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
}

.checkout-inline-error-message {
    margin-top: -6px;
    text-align: right;
    color: #C70000;
}

/* AvaTax */
.wc_avatax_validate_address {
    margin-top: 20px;
}

.wc-avatax-address-validation-result {
    display: flex;
    align-items: center;
}

.wc-avatax-address-validation-result::before {
    font-family: "ais-icon";
    line-height: 1;
}

.wc-avatax-address-validation-result.wc-avatax-address-validation-success {
    color: #4f7280;
}

.wc-avatax-address-validation-result.wc-avatax-address-validation-success:before {
    content: "\e912";
    color: #4f7280;
}

.wc-avatax-address-validation-result.wc-avatax-address-validation-error {
    color: #c70000;
}

.wc-avatax-address-validation-result.wc-avatax-address-validation-error:before {
    content: "\e910";
    color: #c70000;
}

/* Order Review */
.woocommerce-checkout-cart-form {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Cart Totals */
.woocommerce-checkout .cart_totals td {
    text-align: right;
}

/* Payments */
.woocommerce-checkout-payment {
    margin-top: 20px;
}

.woocommerce-checkout-payment-inner {
    margin-top: 54px;
    padding: 32px;
    position: relative;
    border-radius: 5px;
    background-color: #f7f7f7;
}

.woocommerce-checkout-payment-inner__heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 20px;
    position: absolute;
    right: 0;
    bottom: 100%;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    background-color: #f7f7f7;
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #004990;
}

.woocommerce-checkout-payment-inner__heading i {
    font-size: 22px;
}

/* Shipping Methods */
.woocommerce-checkout-review-order-table .woocommerce-shipping-methods li {
    justify-content: flex-end;
}

/* Payment Methods */
.payment_methods,
.wc-saved-payment-methods {
    margin-left: 0;
}

.payment_methods {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.payment_methods li,
.wc-saved-payment-methods li {
    padding-left: 0;
}

.payment_methods li:before,
.wc-saved-payment-methods li:before {
    display: none;
}

.payment_box {
    margin-top: 16px;
}

/* Stripe's CC Payment Method */
.form-row.woocommerce-SavedPaymentMethods-saveNew {
    flex-direction: row;
    align-items: center;
    gap: 0;
}

label[for="payment_method_stripe"] img,
.testmode-info {
    display: none;
}

#wc-stripe-new-payment-method {
    width: 16px !important;
}

/* Notice Group */
.woocommerce-NoticeGroup-checkout {
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Order Received */
.woocommerce-thankyou-order-received {
    font-size: 45px;
    font-family: "Aldrich",serif;
}

.woocommerce-order-overview-wrapper,
.woocommerce-order-other-details,
.woocommerce-order-details {
    margin-bottom: 50px;
}

.woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.woocommerce-order-overview li {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    margin: 0;
    padding: 10px;
    width: 100%;
}

.woocommerce-order-overview li:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

.woocommerce-order-overview li:before {
    display: none;
}

.order-review__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;

    .btn,
    h2,
    h3 {
        margin-bottom: 0;
    }
}

#billing_shipping_carrier_account_number_field {
    display: none;
}

@media (min-width: 480px) {
    /* Order Received */
    .woocommerce-order-overview li {
        padding: 20px;
        width: 50%;
    }

    .woocommerce-order-overview li:not(:nth-child(2n))  {
        border-right: 1px solid #ccc;
    }
}

@media (min-width: 600px) {
    /* Order Received */
    .woocommerce-order-overview li {
        width: 33.33%;
    }

    .woocommerce-order-overview li:nth-child(4n) {
        border-bottom: none;
    }

    .woocommerce-order-overview li:not(:nth-child(2n))  {
        border-right: none;
    }

    .woocommerce-order-overview li:not(:nth-child(3n))  {
        border-right: 1px solid #ccc;
    }

    .order-review__header {
        display: flex;
        align-items: center;
    
        .btn {
            margin-bottom: 0;
        }
    }    
}

@media (min-width: 1200px) {
    /* Root */
    .woocommerce-checkout.checkout {
        margin-top: 50px;
    }

    /* Order Review */
    .woocommerce-checkout-cart-form {
        margin-top: 50px;
    }
    
    /* Payments */
    .woocommerce-checkout-payment {
        margin-top: 50px;
        position: sticky;
        top: 230px;
    }

    .woocommerce-checkout-payment-inner {
        margin-top: 0;
    }

    /* Notice Group */
    .woocommerce-NoticeGroup-checkout {
        margin-top: -40px;
        margin-bottom: 50px;
    }

    /* Order Received */
    .woocommerce-order-overview li {
        width: 20%;
    }

    .woocommerce-order-overview li:not(:last-child) {
        border-bottom: none;
    }

    .woocommerce-order-overview li:not(:nth-child(3n)) {
        border-right: none;
    }

    .woocommerce-order-overview li:not(:last-child) {
        border-right: 1px solid #ccc;
    }

    .order-review__header {
        display: flex;
        align-items: center;
    
        .btn {
            margin-bottom: 0;
        }
    }
}