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

.woocommerce-checkout.checkout {
    margin-top: 1.25rem;
}

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

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

.woocommerce-form-coupon-toggle .woocommerce-info {
    padding-left: 1.25rem;
    border-color: #0b4696;
    background-color: #fff;
}

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

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

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

.woocommerce-billing-fields__field-wrapper {
    margin-top: 0.75rem;
}

#ship-to-different-address {
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: capitalize;
}

.checkout-inline-error-message {
    margin-top: -0.5rem;
    text-align: right;
    color: #c00d1e;
}

/* Order Review */
.woocommerce-checkout-cart-form {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Cart Totals */

/* Payments */
.woocommerce-checkout-payment {
    margin-top: 1rem;
}

.woocommerce-checkout-payment-inner {
    margin-top: 2rem;
    padding: 1rem;
    position: relative;
    border-radius: 0.5rem;
    background-color: #f7f7f7;
}

.woocommerce-checkout-payment-inner__heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    position: absolute;
    right: 0;
    bottom: 100%;
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
    background-color: #f7f7f7;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c00d1e;
}

.woocommerce-checkout-payment-inner__heading i {
    font-size: 1.5rem;
}

/* Shipping Methods */

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

.payment_methods {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.payment_methods li input,
.wc-saved-payment-methods li input {
    transform: translateY(0.25rem);
}

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

.payment_box {
    margin-top: 1.25rem;
}

/* 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: 1.25rem !important;
}

/* Notice Group */
.woocommerce-NoticeGroup-checkout {
    margin-top: -0.75rem;
    margin-bottom: 1.5px;
}

/* Cart Totals */
.woocommerce-checkout .cart_totals {
    margin-top: 0;
}

/* Order Received */
.woocommerce-thankyou-order-received {
    font-size: 1rem;
    font-weight: 600;
}

.woocommerce-order-overview-wrapper,
.woocommerce-order-other-details,
.woocommerce-order-details {
    margin-bottom: 1rem;
}

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

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

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

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

.order-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-review__header :where(h2, h3, .btn) {
    margin-bottom: 0;
}

#billing_shipping_carrier_account_number_field {
    display: none;
}

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

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

@media (min-width: 600px) {
    /* Notices */
    .woocommerce-form-login-toggle {
        margin-bottom: 1rem;
    }
    
    .woocommerce-form-coupon-toggle {
        margin-bottom: 1rem;
    }

    /* 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 #e0e0e0;
    }

    .order-review__header {
        display: flex;
        align-items: center;
    }

    .woocommerce-checkout-payment-inner {
        margin-top: 1rem;
        padding: 1rem;
    }
}

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

    /* Order Review */
    .woocommerce-checkout-cart-form {
        margin-top: 2.875rem;
    }
    
    /* Payments */
    .woocommerce-checkout-payment {
        margin-top: 3rem;
        position: sticky;
        top: 15rem;
    }

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

    /* Notice Group */
    .woocommerce-NoticeGroup-checkout {
        margin-top: -3rem;
        margin-bottom: 3.5rem;
    }

    /* 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 #e0e0e0;
    }

    .order-review__header {
        display: flex;
        align-items: center;
    }
}