.woocommerce-cart h1.entry-title {
    color: #0f172a !important;
    margin-bottom: 32px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f172a !important;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    align-items: start;
    gap: 30px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid form.woocommerce-cart-form {
    grid-column: span 2 / span 2;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-items-header {
    display: grid !important;
    color: #2D161E;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgb(45 22 30 / 20%);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-items-header .custom-cart-header-product.col-span-6 {
    grid-column: span 6 / span 6;
    align-items: center;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .col-span-2 {
    grid-column: span 2 / span 2;
    text-align: center;

}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #4C0F2E !important;
    background: #ffffff;
    padding: 16px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card .custom-cart-card-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 16px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column {
    grid-column: span 6 / span 6;
    align-items: center;
    display: flex;
    gap: 16px;
    width: fit-content;
    align-items: flex-start;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-image {
    position: relative;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-image .custom-product-thumbnail-link {
    width: 96px;
    height: 96px;
    display: block;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-image .custom-product-thumbnail-link img {
    width: 96px;
    height: 96px;
    object-fit: cover !important;
    border: 1px solid #c5b9b5;
    display: block;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-image .custom-remove-item {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444 !important;
    color: #ffffff !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06) !important;
    z-index: 20;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-info h3 {
    color: #2D161E;
    margin-bottom: 8px;
    line-height: 1;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-info h3 a {
    font-weight: 500;
    font-size: 20px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-product-meta {
    color: #2D161E;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-product-meta .meta-item .meta-label {
    font-weight: 600;
}

/* Quantity Input Styling (Hiding native arrows) */
.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card .custom-cart-card-inner .qty-input::-webkit-outer-spin-button,
.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card .custom-cart-card-inner .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card .custom-cart-card-inner .qty-input[type=number] {
    -moz-appearance: textfield;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card .custom-cart-card-inner .custom-quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db !important;
    background: #ffffff;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card .custom-cart-card-inner .qty-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem 0.75rem !important;
    transition: background-color 0.2s, color 0.2s;
    outline: none;
    box-shadow: none;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card .custom-cart-card-inner .qty-btn:hover {
    color: #111827;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-cards-stack .custom-cart-card .custom-cart-card-inner .qty-input {
    border: none !important;
    width: 2.5rem !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-actions {
    margin-top: 16px;
    padding-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-actions .custom-update-cart-action {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-actions .continue-shopping-btn {
    border: 1px solid #2D161E !important;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-actions .custom-update-cart-action .clear-cart-btn {
    border: 1px solid #2D161E;
    background: #4c0f2e;
    opacity: unset;
    color: #ffffff;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-actions .custom-update-cart-action .clear-cart-btn {
    border: 1px solid #2D161E;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-actions .custom-btn {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    padding: 8px 16px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-sidebar .custom-cart-totals-card {
    width: 100%;
    background: #ffffffb8 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 8px 32px rgba(45, 22, 30, 0.08), 0 2px 8px rgba(45, 22, 30, 0.04) !important;
    padding: 24px !important;
    position: sticky;
    top: 30px;
}

.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-sidebar .cart-collaterals::before,
.woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-sidebar .cart-collaterals::after {
    display: none;
}

.custom-totals-title {
    background: unset !important;
    border: none !important;
    margin-bottom: 10px;
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Cart sidebar: hide shipping row only (flat rate still included in order total). */
.woocommerce-cart .custom-cart-totals-card .custom-totals-table tr.woocommerce-shipping-totals,
.woocommerce-cart .custom-cart-totals-card .custom-totals-table tr.shipping {
    display: none !important;
}

.woocommerce-cart .custom-cart-totals-card .order-total .woocommerce-Price-amount {
    font-weight: 700;
}


.cart-shipping-amount.free-shipping .shipping-value {
    color: #16a34a !important;
}

/* Reset default WooCommerce sidebar table */
.custom-cart-totals-card table.shop_table {
    border: none !important;
    background: transparent !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
}

.custom-cart-totals-card table.shop_table tr {
    background: transparent !important;
}

.custom-cart-totals-card table.shop_table tr th,
.custom-cart-totals-card table.shop_table tr td {
    border: none !important;
    background: transparent !important;
}

.custom-cart-totals-card table.shop_table tr th {
    font-weight: 400 !important;
    color: #4b5563 !important;
    text-align: left;
    font-size: 0.875rem !important;
    padding: 0px !important;
}

.custom-cart-totals-card table.shop_table tr td {
    text-align: right;
    color: #111827 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding-bottom: 10px !important;
    padding: 0px;
}

/* Highlights for Discount and Shipping */
.custom-cart-totals-card table.shop_table tr.cart-discount th,
.custom-cart-totals-card table.shop_table tr.cart-discount td {
    color: #16a34a !important;
    /* Green-600 */
    font-weight: 500 !important;
}

/* Total Row Specifics */
.custom-cart-totals-card table.shop_table tr.order-total {
    border-bottom: none !important;
}

.custom-cart-totals-card table.shop_table tr.order-total th {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    padding-top: 1rem !important;
}

.custom-cart-totals-card table.shop_table tr.order-total td {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #5c2e2e !important;
    /* Premium Maroon */
    padding-top: 1rem !important;
}

.custom-cart-totals-card table.shop_table tr.order-total td span.woocommerce-Price-amount {
    color: #5c2e2e !important;
}

/* Checkout Button Customization */
.wc-proceed-to-checkout {
    padding: 0px !important;
}

.wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background-color: #4C0F2E !important;
    color: #ffffff !important;
    font-family: "Manrope", Serif;
    font-size: 14px !important;
    text-transform: uppercase;
    line-height: 1.6 !important;
    letter-spacing: 3px;
    padding: 16px 32px !important;
    box-shadow: 0 8px 32px rgba(45, 22, 30, 0.08), 0 2px 8px rgba(45, 22, 30, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.wc-proceed-to-checkout a.checkout-button::after {
    content: "\2192" !important;
    /* Unicode right arrow */
    margin-left: 0.5rem !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    font-weight: bold !important;
    display: inline-block !important;
    transition: transform 0.25s ease !important;
}

.wc-proceed-to-checkout a.checkout-button:hover::after {
    transform: translateX(4px) !important;
}

/* Trust Badges Styles */
.custom-trust-badges ul {
    padding-top: 24px;
    border-top: 1px solid #cabcb4;
}


.custom-trust-badges ul li {
    margin: 0 !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 18px !important;
}

@media (max-width: 991px) {
    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-sidebar .custom-cart-totals-card {
        max-width: 500px;
        margin: 35px auto;
        float: unset;
    }

    .woocommerce-cart .custom-cart-container .custom-cart-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 0px;
    }
}


/* Responsive Overrides to Clean Up Default WooCommerce Structures */
@media (max-width: 767px) {
    .custom-cart-card .grid {
        row-gap: 0.75rem;
    }

    .custom-cart-card h3 {
        font-size: 0.95rem !important;
    }



    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-items-header {
        display: none !important;
    }

    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column {
        grid-column: span 12 / span 12;
    }


    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .col-span-2 {
        grid-column: span 4 / span 4;
        text-align: center;
    }


    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-actions {
        justify-content: center;
    }

    .custom-cart-container .custom-cart-sidebar>.cm-cart-coupon-fragment {
        margin-top: 20px !important;
    }



    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-sidebar .custom-cart-totals-card {
        padding: 20px;
    }
}

@media (max-width: 424.98px) {

    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-price,
    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-subtotal {
        font-size: 14px;
    }

    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .col-span-2 {
        grid-column: span 3 / span 3;
    }

    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-quantity-column {
        grid-column: span 6 / span 6;
    }
}

/* Cart page: single centered loader (no per-product spinners) */
.custom-cart-container {
    position: relative;
}

.custom-cart-container.cm-is-loading {
    pointer-events: none;
}

.custom-cart-container .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.75) !important;
    opacity: 1 !important;
}

.custom-cart-container .cm-cart-page-loader-msg {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: auto !important;
}

.custom-cart-container .custom-cart-card .blockUI {
    display: none !important;
}

.custom-cart-container .custom-cart-grid.cart-is-empty {
    grid-template-columns: 1fr;
}

/* ===================================================================
   PREMIUM CUSTOM WOOCOMMERCE CHECKOUT STYLING
   =================================================================== */

.custom-checkout-container {
    position: relative;
}

.custom-checkout-container .checkout-login-form .woocommerce-form-login-toggle .woocommerce-info {
    color: #2D161E;
}

.custom-checkout-container .checkout-login-form .woocommerce-form-login-toggle .woocommerce-info a {
    font-weight: 700;
}

.custom-checkout-container .checkout-login-form .woocommerce-form {
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF5F0 100%) !important;
    box-shadow: 0 8px 32px rgba(45, 22, 30, 0.08), 0 2px 8px rgba(45, 22, 30, 0.04);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 20px;
    margin-bottom: 30px;
}

.custom-checkout-container .checkout-login-form .woocommerce-form .lost_password {
    margin-bottom: 0px;
}

.custom-checkout-container .checkout-login-form .woocommerce-form label.woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px !important;
}

input[type="checkbox"],
input[type="radio"]:checked,
input[type=reset],
input[type="checkbox"]:hover:checked,
input[type="checkbox"]:focus:checked,
input[type=range]::-webkit-slider-thumb {
    accent-color: #4c0f2e;
}

.custom-checkout-container .checkout-login-form .woocommerce-form label.woocommerce-form-login__rememberme span {
    line-height: 0;
}


/* Top Header Bar */
.checkout-header-bar {
    display: flex;
    margin-bottom: 30px;
    flex-direction: column;
    justify-content: start;
    gap: 16px;
}

.back-to-shopping-link {
    color: rgb(45 22 30 / 0.7) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.back-to-shopping-link:hover {
    transform: translateX(-3px);
}

.secure-badge,
.secure-tag-badge {
    background: rgba(76, 15, 46, 0.08);
    color: #4C0F2E;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

/* Hero Section */
.checkout-hero-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-text-wrap {
    max-width: 550px;
}

.checkout-main-title .highlight-span {
    color: #2d161e !important;
}

.checkout-main-title {
    font-weight: 500 !important;
    color: #4C0F2E !important;
    margin: 0 0 10px 0 !important;
}

.checkout-main-subtitle {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #2D161E !important;
    margin: 0 !important;
}

.hero-badges-wrap {
    display: flex;
    gap: 12px;
}

.hero-badge {
    background: #FFFFFF;
    border: 1px solid #E3D9D5;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #2D161E;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
}

.hero-badge .badge-icon svg {
    display: block;
}

/* Form Grid */
.custom-checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Left Column Step Cards */
.checkout-card {
    background: #FFFFFF !important;
    border: 1px solid #EFEBE9 !important;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06) !important;
    padding: 30px !important;
    margin-bottom: 24px !important;
    transition: all 0.3s ease;
}

.checkout-order-pay-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px !important;
}

.checkout-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.checkout-card #order_review {
    float: none !important;
    width: 100% !important;
    padding: 0px !important;
    border: none !important;
}

.card-step-num {
    background: #4C0F2E;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
}

.card-header-text h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #4C0F2E !important;
    margin: 0 0 4px 0 !important;
}

.card-header-text p {
    font-size: 13px !important;
    color: #2D161E !important;
    margin: 0 !important;
}

/* Fields Grid & WooCommerce form layout overrides */
.fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fields-grid p.form-row {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Specific wide elements in grid */
.fields-grid p.form-row-wide,
.fields-grid p.form-row#billing_email_field,
.fields-grid p.form-row#billing_company_field,
.fields-grid p.form-row#billing_address_1_field,
.fields-grid p.form-row#billing_address_2_field,
.fields-grid p.form-row#billing_country_field,
.fields-grid p.form-row#billing_postcode_field {
    grid-column: span 2;
}

/* Input Fields Styles */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout .woocommerce-billing-fields input[type="email"],
.woocommerce-checkout .woocommerce-billing-fields input[type="tel"],
.woocommerce-checkout textarea,
.woocommerce-checkout .woocommerce-billing-fields select {
    background-color: #FFFFFF !important;
    border: 1px solid #E3D9D5 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #2D161E !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    height: 48px !important;
    box-shadow: none !important;
}

.woocommerce-checkout textarea {
    height: auto !important;
    min-height: 100px !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #4C0F2E !important;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06) !important;
}

/* Labels */
.woocommerce-checkout p.form-row label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #2D161E !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout p.form-row label .required {
    color: #b85c6e !important;
    text-decoration: none !important;
    font-weight: bold;
}

/* Select2 wrapper styling (for country/state selector) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    border: 1px solid #E3D9D5 !important;
    height: 48px !important;
    outline: none !important;
    padding: 10px 14px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    color: #2D161E !important;
    padding: 0 !important;
    font-size: 14px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

/* IOS Switch Toggle for Ship to Different Address */
.ship-to-different-address-wrapper {
    margin: 15px 0 24px 0;
    padding: 0 10px;
}

.custom-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: #2D161E;
}

.custom-switch-input {
    display: none !important;
}

.custom-switch-slider {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    background-color: #E3D9D5;
    transition: background-color 0.25s ease;
    border-radius: 99px;
}

.custom-switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    transition: transform 0.25s ease;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
    border-radius: 50%;
}

.custom-switch-input:checked+.custom-switch-slider {
    background-color: #4C0F2E;
}

.custom-switch-input:checked+.custom-switch-slider::before {
    transform: translateX(22px);
}

.custom-switch-text {
    font-size: 14px;
    font-weight: 500;
    color: #2D161E;
}

/* Right Column Sidebar */
.checkout-right-sidebar {
    position: sticky;
    top: 40px;
}

/* Order Review Card */
.order-review-card {
    padding: 24px !important;
	background: #ffffffb8 !important;
}

.checkout-card.order-review-card,
.checkout-card.payment-method-card {
    background: #ffffffb8 !important;
}

.checkout-card.payment-method-card .place-order {
    padding: 0px !important;
}

.woocommerce-checkout .select2-container--open .select2-dropdown {
    top: 0px !important;
    left: 0px !important;
}

.woocommerce-checkout .select2-container--open .select2-dropdown .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #4C0F2E;
    color: #fff !important;
}

.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-card-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    color: #2D161E !important;
    margin: 0 !important;
}

.item-summary-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4C0F2E;
    cursor: pointer;
    user-select: none;

}

.item-summary-trigger .toggle-icon {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    transform: rotate(180deg);
}

.item-summary-trigger.active .toggle-icon svg {
    transform: rotate(0deg);

}

/* Optional: Make it look better when collapsed */
.order-review-card .woocommerce-checkout-review-order {
    overflow: hidden;
}

/* Review Items Row */
.review-items-stack {
    margin-block: 20px;

}

.review-order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #F0EDE9;
}

.review-order-item:last-child {
    border-bottom: none;
}

.review-item-image-wrap {
    position: relative;
    flex-shrink: 0;
}

.review-product-img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border: 1px solid #E5E0DD !important;
}

.review-item-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #4C0F2E;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
}

.review-item-details {
    flex-grow: 1;
}

.review-item-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2D161E !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.3;
}

.review-item-meta {
    font-size: 11px;
    color: #2D161E;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-item-meta strong {
    font-weight: 500;
}

.review-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #2D161E;
    text-align: right;
}

/* Custom Coupon Box inside Sidebar Review */
.checkout-promo-box {
    background: #FAF8F6;
    border: 1px solid #EFEBE9;
    padding: 16px;
    margin-bottom: 24px;
}

.promo-title-label {
    display: block;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #2D161E !important;
    letter-spacing: 1px;
    margin-bottom: 10px !important;
}

.promo-input-group {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.promo-input-group .promo-input-group-wrap {
    display: flex;
    gap: 8px;
}

.promo-input-group .coupon-error-notice {
    display: flex;
    font-size: 12px;
    line-height: 16px;
    color: #cf2e2e;
    padding: 0px;
    margin: 0px;
}

.promo-input-group #checkout-promo-input {
    flex-grow: 1;
    background: #FFFFFF !important;
    border: 1px solid #E3D9D5 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    height: 40px !important;
}

.promo-input-group button {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    padding: 0 16px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
    box-shadow: none !important;
}

#checkout-promo-apply:hover {
    background: #4C0F2E !important;
    color: #FFFFFF !important;
    border-color: #4C0F2E !important;
}

/* Coupon notices hiding standard forms */
.woocommerce-form-coupon-toggle,
form.checkout_coupon {
    display: none !important;
}

/* Totals Stack Styling */
.review-order-totals {
    border-top: 1px solid #EFEBE9;
    padding-top: 16px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    color: #2D161E;
}

.totals-row .totals-value {
    color: #2D161E;
    font-weight: 600;
}

.totals-row.discount-row {
    color: #16A34A;
}

.totals-row.discount-row .totals-value {
    color: #16A34A;
}

.totals-row.discount-row a.woocommerce-remove-coupon {
    color: #EF4444;
    font-size: 10px;
    text-decoration: none;
    margin-left: 6px;
    font-weight: normal;
}

.totals-row.discount-row a.woocommerce-remove-coupon:hover {
    text-decoration: underline;
}

.totals-row.grand-total-row {
    border-top: 1px solid #EFEBE9;
    padding-top: 16px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #2D161E;
}

.totals-row.grand-total-row .totals-label {
    letter-spacing: 1px;
}

.totals-row.grand-total-row .totals-value {
    font-size: 26px;
    font-family: 'Cormorant Garamond', serif;
    color: #4C0F2E !important;
    font-weight: bold;
}

/* CARD 2: Payment Gateways Section */
.payment-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.secure-tag-badge {
    background: #EFE6E8;
    color: #4C0F2E;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 0.5px;
    margin-left: auto;
}

/* Custom Payment Radios List styling */
ul.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

ul.wc_payment_methods li.wc_payment_method {
    margin-bottom: 12px !important;
    padding: 0 !important;
    background: transparent !important;
}

ul.wc_payment_methods li.wc_payment_method:last-child {
    margin-bottom: 0 !important;
}

.custom-payment-label {
    display: flex;
    align-items: center;
    padding: 16px !important;
    border: 1.5px solid #E3D9D5 !important;
    background: #FFFFFF !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    user-select: none !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Radio circle indicator */
.custom-radio-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #C5B9B5;
    position: relative;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-radio-indicator::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4C0F2E;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

/* Checked/active state */

li.wc_payment_method:hover .custom-payment-label {
    border-color: rgba(76, 15, 46, 0.35);
}


li.wc_payment_method.active-gateway .custom-payment-label {
    border-color: #4C0F2E !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF5F0 100%) !important;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06) !important;
}

li.wc_payment_method.active-gateway .custom-radio-indicator {
    border-color: #4C0F2E !important;
}

li.wc_payment_method.active-gateway .custom-radio-indicator::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Inner payment method wrap */
.custom-payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-card-icon {
    font-size: 20px;
    background: #F5EFEF;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-payment-text-wrap {
    display: flex;
    flex-direction: column;
}

.custom-payment-title {
    font-size: 14px;
    font-weight: 600;
    color: #2D161E;
}

.custom-payment-subtitle {
    font-size: 11px;
    color: #2D161E;
    margin-top: 1px;
}

/* Core Payment fields box */
.wc_payment_method .payment_box {
    background: #FAF8F6 !important;
    border: 1px solid #EFEBE9 !important;
    padding: 16px !important;
    margin: 10px 0 0 0 !important;
    font-size: 13px !important;
    color: #2D161E !important;
    line-height: 1.5 !important;
}

.wc_payment_method .payment_box::before {
    display: none !important;
}

/* SUBMIT BUTTON PLACE ORDER */
.custom-place-order-btn {
    font-weight: 600 !important;
    width: fit-content !important;
    margin: 0 auto !important;
    min-width: 240px;
    display: flex !important;
    text-align: center;
    align-items: center;
    justify-content: center;
    float: unset !important;
}

.payment-method-card .woocommerce-privacy-policy-text {
    font-size: 11px !important;
    color: #2D161E !important;
    line-height: 1.5 !important;
    text-align: center;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    padding: 0 10px;
}

.payment-method-card .woocommerce-privacy-policy-text a {
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-align: center;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    font-weight: 700;
    color: #4C0F2E !important;
    text-decoration: underline !important;
}

.checkout-order-pay-main .woocommerce-privacy-policy-text {
    font-size: 14px !important;
    line-height: 18px !important;
    color: #2D161E !important;
    text-align: center;
    margin-top: 0px !important;
}

.checkout-order-pay-main .woocommerce-privacy-policy-text a {
    font-size: 14px !important;
    line-height: 18px !important;
    font-weight: 700;
    color: #2D161E !important;
}

/* Bottom Sidebar Trust Footer */
.sidebar-trust-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding: 0 10px;
    gap: 10px;
}

.trust-footer-col {
    background: #FFFFFF;
    border: 1px solid #E3D9D5;
    padding: 10px 8px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
}

.trust-footer-col .icon {
    font-size: 16px;
}

.trust-footer-col .text {
    font-size: 10px;
    font-weight: 600;
    color: #2D161E;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* Clear notices margins and formatting on checkout */
.woocommerce-NoticeGroup-checkout {
    grid-column: span 2;
    margin-bottom: 20px;
}

/* ---------------------------- Order Received --------------------------------- */

.woocommerce-order-received .entry-header {
    display: none;
}

.woocommerce-order-received .ast-container #primary {
    margin-top: 0px !important;
}

/* Breakout helper to force sections to span the full viewport width */
.woocommerce-order-received .hero-section {
    width: 100dvw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50dvw !important;
    margin-right: -50dvw !important;
    box-sizing: border-box;
    background: linear-gradient(135deg, #2D161E 0%, #4C0F2E 100%) !important;
    padding: 100px 20px;
    overflow: hidden;
}

.woocommerce-order-received .hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.woocommerce-order-received .hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.woocommerce-order-received .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.woocommerce-order-received .success-badge {
    width: 120px;
    height: 120px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
    animation: successPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.woocommerce-order-received .success-badge::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes successPulse {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.woocommerce-order-received .success-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-order-received .success-icon svg {
    width: 35px;
    height: 35px;
}

.woocommerce-order-received .hero-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 72px;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.woocommerce-order-received .hero-subtitle {
    font-size: 20px;
    color: #FFFFFF !important;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.8;
}

.woocommerce-order-received .hero-subtitle p {
    color: #FFFFFF !important;
    margin: 0;
}

.woocommerce-order-received .order-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 16px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.woocommerce-order-received .order-badge-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    opacity: 0.8;
}

.woocommerce-order-received .order-badge-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
}



/* Premium Horizontal Layout */
.woocommerce-order-received .content-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    margin-bottom: 40px;
}

.woocommerce-order-received .premium-card.order-product-card {
    padding: 15px;
}

.woocommerce-order-received .premium-card.order-product-card .card-header {
    padding: 20px 20px 10px;
}

/* Premium White Card */
.woocommerce-order-received .premium-card {
    background: #FFFFFF !important;
    padding: 35px;
    box-shadow: 0 8px 32px rgba(45, 22, 30, 0.08), 0 2px 8px rgba(45, 22, 30, 0.04);
    position: relative;
    overflow: hidden;
}

/* .woocommerce-order-received .premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4C0F2E 0%, #2D161E 100%);
} */

/* Card Header */
.woocommerce-order-received .card-header {
    padding-bottom: 30px;
    text-align: left;
}

.woocommerce-order-received .card-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 600;
    color: #2D161E !important;
    margin-bottom: 8px;
    line-height: 1.2;
}

.woocommerce-order-received .card-subtitle {
    font-size: 15px;
    color: #2D161E;
    opacity: 0.6;
    margin: 0;
}

/* Order Items */
.woocommerce-order-received .order-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(45, 22, 30, 0.08);
    transition: background 0.3s ease;
    text-align: left;
}

.woocommerce-order-received .order-item:hover {
    background: rgba(235, 226, 219, 0.3);
}

.woocommerce-order-received .order-item:first-child {
    padding-top: 0;
}

.woocommerce-order-received .order-item:last-child {
    border-bottom: none;
}

.woocommerce-order-received .item-image {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #EBE2DB 0%, #f5ede5 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
}

.woocommerce-order-received .item-image img,
.woocommerce-order-received .item-image .item-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.woocommerce-order-received .item-placeholder {
    font-size: 48px;
    color: #4C0F2E;
    opacity: 0.3;
}

.woocommerce-order-received .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.woocommerce-order-received .item-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 600;
    color: #2D161E !important;
    margin-bottom: 8px;
    line-height: 1.3;
}

.woocommerce-order-received .item-description {
    font-size: 14px;
    color: #2D161E;
    opacity: 0.6;
    margin-bottom: 16px;
}

.woocommerce-order-received .item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.woocommerce-order-received .item-quantity {
    font-size: 14px;
    color: #2D161E;
    opacity: 0.7;
    font-weight: 500;
}

.woocommerce-order-received .item-price {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 700;
    color: #4C0F2E !important;
}

/* Order Summary Card - Sticky */
.woocommerce-order-received .summary-card {
    position: sticky;
    top: 24px;
    height: fit-content;
    margin-bottom: 0;
}

.woocommerce-order-received .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}

.woocommerce-order-received .summary-row:last-of-type:not(.total-row) {
    border-bottom: none;
}

.woocommerce-order-received .summary-label {
    color: #2D161E;
    opacity: 0.7;
    font-weight: 400;
}

.woocommerce-order-received .summary-value {
    font-weight: 600;
    color: #2D161E;
}

.woocommerce-order-received .summary-divider {
    height: 2px;
    background: linear-gradient(90deg, #4C0F2E 0%, #2D161E 100%);
    margin: 24px 0;
}

.woocommerce-order-received .total-row {
    border-bottom: none;
}

.woocommerce-order-received .total-row .summary-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 600;
    color: #2D161E !important;
    opacity: 1;
}

.woocommerce-order-received .total-row .summary-value {
    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 700;
    color: #4C0F2E !important;
}

/* Order Details Grid */
.woocommerce-order-received .details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: left;
}

.woocommerce-order-received .detail-box {
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF5F0 100%) !important;
    backdrop-filter: blur(10px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(45, 22, 30, 0.08), 0 2px 8px rgba(45, 22, 30, 0.04);
}

.woocommerce-order-received .detail-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
}

.woocommerce-order-received .detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #4C0F2E;
    margin-bottom: 16px;
    font-weight: 700;
}

.woocommerce-order-received .detail-value {
    font-size: 16px;
    color: #2D161E;
    line-height: 1.8;
    font-weight: 400;
}

.woocommerce-order-received .detail-value address {
    font-style: normal;
    margin: 0;
    line-height: inherit;
}

.woocommerce-order-received .detail-value strong {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Premium CTA Button */
.woocommerce-order-received .cta-section {
    margin-top: 45px;
}

.woocommerce-order-received .cta-section.woocommerce-thankyou-order-failed-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0px;
}

.woocommerce-order-received .premium-button {
    display: block;
    width: fit-content;
    margin-inline: auto;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 240px;
}

.woocommerce-order-received .premium-button-primary {
    background: #4C0F2E;
    color: #EBE2DB !important;
    border: none;
}

.woocommerce-order-received .premium-button-secondary {
    background: transparent;
    color: #2d161e !important;
    border: 1.5px solid #2d161e;
}


/* .woocommerce-order-received .premium-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.woocommerce-order-received .premium-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
}

.woocommerce-order-received .premium-button:hover::before {
    left: 100%;
} */

/* Info Section */
.woocommerce-order-received .info-section {
    margin-top: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.woocommerce-order-received .info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.woocommerce-order-received .info-card {
    text-align: center;
    padding: 30px;
    background: #FFFFFF;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.woocommerce-order-received .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4C0F2E 0%, #2D161E 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.woocommerce-order-received .info-card:hover {
    transform: translateY(-8px);
}

/* .woocommerce-order-received .info-card:hover::before {
    transform: scaleX(1);
} */

.woocommerce-order-received .info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #EBE2DB 0%, #f5ede5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 36px;
    box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
}

.woocommerce-order-received .info-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 600;
    color: #2D161E !important;
    margin-bottom: 12px;
}

.woocommerce-order-received .info-text {
    font-size: 15px;
    color: #2D161E;
    opacity: 0.7;
    line-height: 1.7;
    margin: 0;
}

.woocommerce-order-received .main-content {
    padding: 60px 0 0;
}

.woocommerce-order-received .thankyou-container.thankyou-container-failed {
    max-width: 600px;
    margin: 0 auto;
}

/* ----------- 404 -------------- */

.page-not-found .hero-inner {
    position: relative;
    align-items: center;
}

.page-not-found .hero-inner .hero-inner-wrap {
    text-align: center;
}

/* Left */
.page-not-found .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    color: #4c0f2e;
    text-align: left;
}

.page-not-found .eyebrow .rule {
    height: 1px;
    width: 40px;
    background: #4c0f2e;
}

.page-not-found .eyebrow span {
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    font-weight: 500;
}

.page-not-found .display {
    margin: 10px 0 0;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(112px, 18vw, 260px);
    line-height: 0.85;
    letter-spacing: -0.02em;
    color: #2D161E;
}

.page-not-found .display .zero {
    display: inline-block;
    position: relative;
}

.page-not-found .divider {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.page-not-found .divider .line {
    height: 1px;
    flex: 1;
    max-width: 80px;
    background: rgba(45, 22, 30, 0.3);
}

.page-not-found .divider .star {
    color: #4c0f2e;
}

.page-not-found .heading {
    margin-top: 28px;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #2D161E;
}

.page-not-found .heading em {
    color: #4c0f2e;
    font-weight: 300;
    font-style: italic;
}

.page-not-found .desc {
    margin: 0 auto;
    max-width: 600px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(45, 22, 30, 0.75);
}

.page-not-found .cta-row {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.page-not-found .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #4c0f2e;
    color: #ebe2db;
    padding: 16px 32px;
    transition: all 0.5s ease;
    text-transform: uppercase;
}

.page-not-found .btn-primary .arrow {
    transition: transform 0.4s ease;
}

.page-not-found .btn-primary:hover .arrow {
    transform: translateX(4px);
}

.page-not-found .btn-link {
    background-color: #00000000;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    padding: 16px 32px;
    fill: #2D161E;
    color: #2D161E;
    border: 1px solid #CABCB4;
    text-transform: uppercase;
}


@media (max-width: 1199.98px) {

    /* Maixn Content Area */
    .woocommerce-order-received .main-content {
        padding: 60px 0;
    }
}

@media (max-width: 1023.98px) {

    .woocommerce-order-received .premium-button,
    .page-not-found .btn-primary,
    .page-not-found .btn-link {
        padding: 14px 28px;
    }
}

/* Mobile Responsive Grid Overrides */
@media (max-width: 991.98px) {

    .checkout-hero-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 30px;
    }

    .hero-badges-wrap {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .custom-checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkout-right-sidebar {
        position: static;
    }

    .woocommerce-NoticeGroup-checkout {
        grid-column: 1;
    }

    .woocommerce-order-received .content-grid {
        grid-template-columns: 1fr;
    }

    .woocommerce-order-received .summary-card {
        position: relative;
        top: 0;
    }

    .woocommerce-order-received .info-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    /* Info Section */
    .woocommerce-order-received .info-section {
        margin-top: 60px;
    }

    .woocommerce-order-received .main-content {
        padding: 50px 0;
    }

    .woocommerce-order-received .item-image {
        width: 120px;
        height: 120px;
    }

    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-image .custom-product-thumbnail-link,
    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-image .custom-product-thumbnail-link img {
        width: 86px;
        height: 86px;
    }
}

@media (max-width: 767.98px) {

    .woocommerce-order-received .premium-button,
    .page-not-found .btn-primary,
    .page-not-found .btn-link {
        padding: 12px 22px;
    }
}

@media (max-width: 599.98px) {

    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-image .custom-product-thumbnail-link,
    .woocommerce-cart .custom-cart-container .custom-cart-grid .custom-cart-items-wrapper .custom-cart-card .custom-cart-product-column .custom-cart-product-image .custom-product-thumbnail-link img {
        width: 76px;
        height: 76px;
    }


    .checkout-main-title {
        font-size: 40px !important;
    }

    .fields-grid {
        grid-template-columns: 1fr;
    }

    .fields-grid p.form-row-wide,
    .fields-grid p.form-row#billing_email_field,
    .fields-grid p.form-row#billing_company_field,
    .fields-grid p.form-row#billing_address_1_field,
    .fields-grid p.form-row#billing_address_2_field,
    .fields-grid p.form-row#billing_country_field,
    .fields-grid p.form-row#billing_postcode_field {
        grid-column: span 1;
    }

    .checkout-card {
        padding: 20px !important;
    }

    .sidebar-trust-footer {
        flex-direction: column;
        gap: 8px;
    }

    .trust-footer-col {
        flex-direction: row;
        gap: 8px;
        padding: 12px;
    }

    .woocommerce-order-received .hero-title {
        font-size: 48px;
    }

    .woocommerce-order-received .card-title {
        font-size: 28px;
    }

    .woocommerce-order-received .premium-card {
        padding: 32px 24px;
    }

    .woocommerce-order-received .order-item {
        flex-direction: column;
    }

    .woocommerce-order-received .item-image {
        width: 100px;
        height: 100px;
    }

    .woocommerce-order-received .details-grid {
        grid-template-columns: 1fr;
    }

    .woocommerce-order-received .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .woocommerce-order-received .custom-thankyou-header .header-nav {
        display: none;
    }

    .woocommerce-order-received .custom-thankyou-footer .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .woocommerce-order-received .premium-card,
    .woocommerce-order-received .detail-box,
    .woocommerce-order-received .info-card {
        padding: 25px;
    }

    .woocommerce-order-received .premium-card.order-product-card {
        padding: 10px;
    }

    .woocommerce-order-received .premium-card.order-product-card .card-header {
        padding: 15px 15px 5px;
    }
}