/* ==========================================================================
   Modern Cart & Checkout Styling for Nimvajabi Theme
   ========================================================================== */

/* -------------------------------------
   1. Page Header & Title (Cart & Checkout)
   ------------------------------------- */

.woocommerce-checkout .page-header,
.woocommerce-cart .page-header {
    background: transparent !important;
    padding: 20px 0 30px !important;
    text-align: center !important;
    margin-bottom: 40px !important;
}

.woocommerce-checkout .page-title,
.woocommerce-cart .page-title {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    display: inline-block !important;
    position: relative !important;
    color: var(--secondary-color) !important;
    margin-bottom: 0 !important;
}

.woocommerce-checkout .page-title::after,
.woocommerce-cart .page-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 5px !important;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #7c3aed 100%) !important;
    border-radius: 4px !important;
}

/* -------------------------------------
   2. Cart Page Styles
   ------------------------------------- */

/* Cart Items Table */
.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.woocommerce-cart-form__contents thead th {
    font-weight: 600;
    color: var(--secondary-color);
    border: none;
    padding-bottom: 10px;
    font-size: 0.95rem;
}

.woocommerce-cart-form__cart-item td {
    border: none;
    background: #fdfdfd;
    padding: 15px;
    vertical-align: middle;
}

.woocommerce-cart-form__cart-item td:first-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.woocommerce-cart-form__cart-item td:last-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.woocommerce-cart-form__cart-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-cart-form__cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Product Thumbnail */
.product-thumbnail img {
    border-radius: 12px;
    width: 80px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Product Name */
.product-name a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.product-name a:hover {
    color: var(--primary-color);
}

/* Remove Button */
.product-remove a.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff1f2;
    color: #e11d48 !important;
    font-size: 1.2rem;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-remove a.remove:hover {
    background: #e11d48;
    color: #ffffff !important;
}

/* Quantity Input */
.woocommerce-cart-form__cart-item .quantity input.qty {
    width: 60px;
    text-align: center;
    border: 2px solid #eef0fb;
    border-radius: 10px;
    padding: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    background: #ffffff;
}

/* Coupon & Actions Row */
.woocommerce-cart-form td.actions {
    padding-top: 2rem !important;
    border-top: 1px dashed #eef0fb !important;
    background: transparent !important;
}

.woocommerce-cart-form .coupon {
    display: flex;
    gap: 10px;
    float: right;
    /* RTL */
}

.woocommerce-cart-form .coupon input.input-text {
    border: 2px solid #eef0fb;
    border-radius: 12px;
    padding: 10px 15px;
    width: 200px;
    outline: none;
    transition: border-color 0.3s;
}

.woocommerce-cart-form .coupon input.input-text:focus {
    border-color: var(--primary-color);
}

/* Standard Buttons inside Cart/Checkout */
.woocommerce-cart-form .button,
.cart-collaterals .checkout-button {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #9333ea 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(90, 111, 220, 0.2);
}

.woocommerce-cart-form .button:hover,
.cart-collaterals .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 111, 220, 0.3);
    color: #ffffff;
}

.woocommerce-cart-form button[name="update_cart"] {
    background: #f8f9fa;
    color: var(--secondary-color);
    box-shadow: none;
    float: left;
    /* RTL */
}

.woocommerce-cart-form button[name="update_cart"]:hover {
    background: #e9ecef;
}

/* Cart Totals Sidebar */
.cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef0fb;
}

.shop_table.shop_table_responsive.cart {
    border: none;
}

.cart_totals table {
    width: 100%;
    margin-bottom: 20px;
}

.cart_totals table th,
.cart_totals table td {
    padding: 15px 0;
    border-bottom: 1px dashed #eef0fb;
}

.cart_totals table th {
    font-weight: 600;
    color: var(--secondary-color);
    text-align: right;
}

.cart_totals table td {
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
}

.cart_totals .wc-proceed-to-checkout {
    margin-top: 25px;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 50px;
    font-size: 1.1rem;
    padding: 15px;
}


/* -------------------------------------
   2. Checkout Page Styles
   ------------------------------------- */

/* Checkout Coupon Custom Styles */
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: #fdfdfd;
    border: 1px dashed #eef0fb;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none;
}

.woocommerce-form-coupon-toggle .woocommerce-info a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-form-coupon-toggle .woocommerce-info a:hover {
    text-decoration: underline;
}

form.checkout_coupon {
    background: #ffffff;
    border: 1px solid #eef0fb;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

form.checkout_coupon p {
    margin-bottom: 0;
}

form.checkout_coupon p:first-child {
    width: 100%;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

form.checkout_coupon p.form-row-first {
    flex: 1;
    min-width: 250px;
}

form.checkout_coupon p.form-row-last {
    flex-shrink: 0;
}

form.checkout_coupon input.input-text {
    width: 100%;
    border: 2px solid #eef0fb;
    border-radius: 12px;
    padding: 12px 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

form.checkout_coupon input.input-text:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(90, 111, 220, 0.1);
}

form.checkout_coupon button.button {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

form.checkout_coupon button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* -------------------------------------

/* Form Input Layout */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
    width: 100%;
}

.woocommerce-checkout .form-row label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: block;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eef0fb;
    border-radius: 12px;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(90, 111, 220, 0.1);
}

/* Select2 overrides for WC Country/State fields */
.select2-container--default .select2-selection--single {
    border: 2px solid #eef0fb !important;
    border-radius: 12px !important;
    height: 50px !important;
    background-color: #fcfcfc !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-right: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
}

/* Checkout Review Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 2rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 15px 0;
    border-bottom: 1px dashed #eef0fb;
}

.woocommerce-checkout-review-order-table thead th {
    border-bottom: 2px solid #eef0fb;
    font-weight: 700;
}

.woocommerce-checkout-review-order-table .product-name {
    text-align: right;
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: left;
    font-weight: 700;
}

.woocommerce-checkout-review-order-table tfoot th {
    text-align: right;
    font-weight: 600;
}

.woocommerce-checkout-review-order-table tfoot td {
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
}

/* Payment Gateway Box */
#payment {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #eef0fb;
}

#payment ul.payment_methods li {
    margin-bottom: 15px;
}

#payment ul.payment_methods li input[type="radio"] {
    margin-left: 10px;
}

#payment ul.payment_methods li label {
    font-weight: 700;
    cursor: pointer;
}

#payment div.payment_box {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
    position: relative;
    border: 1px solid #eef0fb;
}

#payment div.payment_box::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

/* Place Order Area */

#payment button#place_order {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #9333ea 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(90, 111, 220, 0.3) !important;
    transition: all 0.3s ease;
}

#payment button#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 111, 220, 0.4) !important;
}

/* Style the Return to Cart link */
#payment .return-to-cart-btn {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#payment .return-to-cart-btn:hover {
    color: var(--primary-color);
    background: #f8f9fa;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .woocommerce-cart-form__cart-item {
        display: block !important;
        text-align: center;
        background: #fdfdfd;
        border-radius: 15px;
        margin-bottom: 20px;
        padding: 15px;
    }

    .woocommerce-cart-form__cart-item td {
        display: block;
        text-align: center !important;
        padding: 10px;
    }

    .product-remove a.remove {
        margin: 0 auto;
    }

    .woocommerce-cart-form__contents thead {
        display: none;
        /* Hide table headers on mobile */
    }

    .woocommerce-cart-form .coupon {
        float: none;
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
    }

    .woocommerce-cart-form .coupon input.input-text {
        width: 100%;
    }

    .woocommerce-cart-form button[name="update_cart"] {
        float: none;
        width: 100%;
    }
}

/* -------------------------------------
   3. WooCommerce Blocks Compatibility
   ------------------------------------- */

/* Proceed to Checkout / Place Order Blocks */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #a251ea 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(90, 111, 220, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(90, 111, 220, 0.35) !important;
    color: #ffffff !important;
}

/* Secondary Block Buttons (e.g. Apply Coupon) */
.wc-block-components-totals-coupon__button {
    background: #f8f9fa !important;
    color: var(--secondary-color) !important;
    border: 2px solid #eef0fb !important;
    border-radius: 50px !important;
    box-shadow: none !important;
}

.wc-block-components-totals-coupon__button:hover {
    background: #eef0fb !important;
    color: var(--primary-color) !important;
}

/* Checkout Block Form Inputs & Selects */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-textarea textarea,
.wc-blocks-components-select__select {
    width: 100% !important;
    display: block !important;
    border: 2px solid #eef0fb !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    background-color: #fcfcfc !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    color: var(--secondary-color) !important;
    font-family: inherit !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus,
.wc-blocks-components-select__select:focus {
    border-color: var(--primary-color) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(90, 111, 220, 0.1) !important;
    outline: none !important;
}

/* Floating labels in WC blocks */
.wc-block-components-text-input label,
.wc-blocks-components-select__label {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding-right: 15px !important;
    /* RTL context */
    background: transparent !important;
    z-index: 2 !important;
    transition: all 0.2s ease !important;
}

/* Fix overlapping floating labels when active */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input.has-value label {
    background: #ffffff !important;
    padding: 0 8px !important;
    z-index: 5 !important;
    transform: translateY(-80%) scale(0.9) !important;
    color: var(--primary-color) !important;
}

/* Checkout step containers (Cards) */
.wc-block-components-checkout-step {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
    border: 1px solid #eef0fb !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease;
}

.wc-block-components-checkout-step:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04) !important;
}

.wc-block-components-checkout-step__title {
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
    border-bottom: 2px dashed #eef0fb !important;
    padding-bottom: 15px !important;
    margin-bottom: 25px !important;
    font-size: 1.25rem !important;
}

/* Payment Methods Radio Buttons */
.wc-block-components-radio-control {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    border: 1px solid #eef0fb !important;
    transition: all 0.3s ease !important;
}

.wc-block-components-radio-control:hover {
    border-color: rgba(90, 111, 220, 0.3) !important;
    background: #ffffff !important;
}

/* Payment description box */
.wc-block-components-payment-method-description {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    padding-top: 10px !important;
}

/* Sidebar Order Summary (Right Column) */
.wc-block-checkout__sidebar {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    border: 1px solid #eef0fb !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

/* Fix RTL alignment and width of WooCommerce Checkout Block container */
.wp-block-woocommerce-checkout .wc-block-checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    width: 100% !important;
}

[dir="rtl"] .wp-block-woocommerce-checkout .wc-block-checkout {
    flex-direction: row !important;
    /* In RTL, row makes the first item naturally appear on the right */
    justify-content: space-between !important;
}

.wp-block-woocommerce-checkout .wc-block-checkout__main {
    flex: 1 1 60% !important;
    max-width: none !important;
}

.wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
    flex: 1 1 35% !important;
    max-width: none !important;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .wp-block-woocommerce-checkout .wc-block-checkout {
        flex-direction: column !important;
    }

    .wp-block-woocommerce-checkout .wc-block-checkout__main,
    .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
}

/* Checkout step actions (bottom buttons layout) */
.wc-block-components-checkout-step__actions,
.wc-block-checkout__actions,
.wp-block-woocommerce-checkout-order-summary-block {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* Put buttons on opposite ends */
    gap: 15px !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    /* Standard row, RTL will naturally place first item on right */
    padding-top: 25px !important;
    border-top: 1px dashed #eef0fb !important;
    margin-top: 20px !important;
    width: 100% !important;
}

.wc-block-components-checkout-place-order-button {
    width: auto !important;
    min-width: 200px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 14px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #7c3aed 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Return to Cart Button override */
.wc-block-components-checkout-return-to-cart-button {
    background: transparent !important;
    color: #6b7280 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--primary-color) !important;
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
}

/* Hide WooCommerce Block Checkout Terms & Privacy Policy */
.wc-block-checkout__terms,
.wc-block-components-checkout-terms,
.wc-block-components-checkout-terms-and-conditions,
.wc-terms-and-conditions {
    display: none !important;
}

/* Mobile optimizations for bottom buttons */
@media (max-width: 768px) {

    .wc-block-components-checkout-step__actions,
    .wc-block-checkout__actions,
    .wp-block-woocommerce-checkout-order-summary-block {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        background: transparent !important;
        gap: 1.5rem !important;
        /* Increased gap on mobile */
        justify-content: center !important;
        align-items: stretch !important;
    }

    .wc-block-components-checkout-place-order-button {
        width: 100% !important;
        min-width: unset !important;
        padding: 12px 15px !important;
        font-size: 1.1rem !important;
        flex: unset !important;
        white-space: normal !important;
    }

    .wc-block-components-checkout-return-to-cart-button {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 10px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        flex-shrink: 0 !important;
    }
}

/* Fix default woocommerce layouts */
.woocommerce-checkout .col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    flex: 1;
    min-width: 300px;
}

/* Checkout step actions (bottom buttons layout - Blocks & Normal) */
.wc-block-components-checkout-step__actions,
.wc-block-checkout__actions,
.wp-block-woocommerce-checkout-order-summary-block,
div.nimvajabi-checkout-actions {
    display: flex !important;
    flex-direction: column !important;
    /* Stack vertically */
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    padding-top: 25px !important;
    border-top: 1px dashed #eef0fb !important;
    margin-top: 20px !important;
    width: 100% !important;
}

/* Make sure place order is full width or well sized */
.wc-block-components-checkout-place-order-button,
#payment button#place_order,
#payment input#place_order {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #7c3aed 100%) !important;
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: normal !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 1 !important;
}

#payment button#place_order,
#payment input#place_order {
    display: flex !important;
}

/* Return to Cart Button override */
.wc-block-components-checkout-return-to-cart-button,
a.return-to-cart-btn {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
    margin: 0 auto !important;
    background: transparent !important;
    color: var(--secondary-color) !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    gap: 5px !important;
    transition: all 0.3s ease !important;
    order: 2 !important;
}

.wc-block-components-checkout-return-to-cart-button:hover,
a.return-to-cart-btn:hover {
    color: var(--primary-color) !important;
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
}