/* =========================================================
   Relevant Checkout Experience
   Version: 1.2.0
   Designed by Relevant Web Designer
   ========================================================= */

:root {
    --rce-dark: #081417;
    --rce-dark-soft: #102226;
    --rce-teal: #00c2a8;
    --rce-teal-dark: #009c88;
    --rce-bg: #f5f8f8;
    --rce-card: #ffffff;
    --rce-border: rgba(8, 20, 23, 0.10);
    --rce-muted: #667579;
    --rce-text: #102226;
    --rce-soft: #f2fbf9;
    --rce-shadow: 0 18px 45px rgba(8, 20, 23, 0.10);
    --rce-radius: 22px;
}

/* Page base */

.rce-cart-page,
.rce-checkout-page,
.rce-thankyou-page {
    background: var(--rce-bg);
}

.rce-cart-page .site-main,
.rce-checkout-page .site-main,
.rce-thankyou-page .site-main,
.rce-cart-page main,
.rce-checkout-page main,
.rce-thankyou-page main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 18px 56px;
}

/* Hero */

.rce-hero {
    background:
        radial-gradient(circle at top right, rgba(0, 194, 168, 0.22), transparent 36%),
        linear-gradient(135deg, var(--rce-dark), var(--rce-dark-soft));
    color: #ffffff;
    border-radius: 28px;
    padding: 34px;
    margin: 18px 0 14px;
    box-shadow: var(--rce-shadow);
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
}

.rce-hero-content {
    min-width: 0;
}

.rce-hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    flex-shrink: 0;
}

.rce-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rce-teal);
    margin-bottom: 10px;
}

.rce-hero h1 {
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
    margin: 0 0 12px;
    letter-spacing: -0.045em;
}

.rce-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
}

/* Checkout journey */

.rce-checkout-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.rce-checkout-steps a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    font-size: 13px;
    padding: 9px 15px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: 0.2s ease;
}

.rce-checkout-steps a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
}

.rce-checkout-steps .is-active {
    background: #ffffff;
    color: var(--rce-dark) !important;
}

.rce-checkout-steps .is-done {
    color: var(--rce-teal) !important;
}

/* Hero support + points */

.rce-mini-support {
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
}

.rce-mini-support:hover {
    color: #ffffff !important;
}

.rce-points-pill {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(0, 194, 168, 0.35);
    border-radius: 18px;
    padding: 12px 16px;
    min-width: 220px;
}

.rce-points-pill span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.rce-points-pill strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
}

/* Relevant Promise Bar */

.rce-promise-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--rce-border);
    border-radius: 20px;
    padding: 16px 20px;
    margin: 0 0 22px;
    box-shadow: 0 10px 28px rgba(8, 20, 23, 0.05);
    backdrop-filter: blur(10px);
}

.rce-promise-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 260px;
}

.rce-promise-kicker {
    color: var(--rce-teal-dark);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.rce-promise-main strong {
    color: var(--rce-text);
    font-size: 15px;
}

.rce-promise-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.rce-promise-items span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--rce-soft);
    color: var(--rce-text);
    font-size: 13px;
    font-weight: 700;
}

/* Hide old v1/v1.1 trust strip if any cache keeps markup */
.rce-trust-strip {
    display: none !important;
}

/* Notices */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
    border-radius: 18px;
    border: 1px solid var(--rce-border);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 20, 23, 0.06);
}

/* Cart main layout fix */

.rce-cart-page .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.rce-cart-page .woocommerce-notices-wrapper,
.rce-cart-page .rce-hero,
.rce-cart-page .rce-promise-bar {
    grid-column: 1 / -1;
}

.rce-cart-page .woocommerce-cart-form {
    grid-column: 1;
    background: var(--rce-card);
    border: 1px solid var(--rce-border);
    border-radius: var(--rce-radius);
    padding: 18px;
    box-shadow: var(--rce-shadow);
    min-width: 0;
}

.rce-cart-page .cart-collaterals {
    grid-column: 2;
    margin-top: 0;
    min-width: 0;
}

.rce-cart-page .cart-collaterals::before,
.rce-cart-page .cart-collaterals::after {
    display: none !important;
}

.rce-cart-page .cart_totals {
    width: 100% !important;
    float: none !important;
    background: var(--rce-card);
    border: 1px solid var(--rce-border);
    border-radius: var(--rce-radius);
    padding: 24px;
    box-shadow: var(--rce-shadow);
    position: sticky;
    top: 24px;
}

.rce-cart-page .cart_totals h2 {
    font-size: 24px;
    letter-spacing: -0.03em;
    color: var(--rce-text);
    margin-bottom: 18px;
}

.rce-cart-page table.shop_table {
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0 14px;
    background: transparent;
}

.rce-cart-page table.shop_table th {
    color: var(--rce-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 0 !important;
}

.rce-cart-page table.shop_table td {
    background: #ffffff;
    border-top: 1px solid var(--rce-border) !important;
    border-bottom: 1px solid var(--rce-border) !important;
    padding: 18px 14px !important;
    vertical-align: middle;
}

.rce-cart-page table.shop_table tr.cart_item td:first-child {
    border-left: 1px solid var(--rce-border) !important;
    border-radius: 18px 0 0 18px;
}

.rce-cart-page table.shop_table tr.cart_item td:last-child {
    border-right: 1px solid var(--rce-border) !important;
    border-radius: 0 18px 18px 0;
}

.rce-cart-page .product-thumbnail img {
    width: 82px !important;
    height: 82px !important;
    object-fit: contain;
    border-radius: 16px;
    background: #f7f9f9;
    padding: 8px;
}

.rce-cart-page .product-name a {
    color: var(--rce-text);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.35;
}

.rce-cart-page .product-name .variation,
.rce-cart-page .product-name .variation * {
    color: var(--rce-muted);
    font-size: 13px;
}

.rce-cart-page .product-remove a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f4f6f6;
    color: var(--rce-muted) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.rce-cart-page .product-remove a:hover {
    background: #ffecec;
    color: #c0392b !important;
}

/* Cart shipping calculator + dropdown fix */

.rce-cart-page .shipping-calculator-form {
    margin-top: 18px;
    background: #fbfdfd;
    border: 1px solid var(--rce-border);
    border-radius: 18px;
    padding: 16px;
}

.rce-cart-page .shipping-calculator-form p {
    margin-bottom: 14px;
}

.rce-cart-page .shipping-calculator-form label,
.rce-cart-page .shipping-calculator-form .screen-reader-text {
    color: var(--rce-text);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.rce-cart-page .shipping-calculator-form input.input-text,
.rce-cart-page .shipping-calculator-form select,
.rce-cart-page .select2-container--default .select2-selection--single,
.rce-checkout-page .select2-container--default .select2-selection--single {
    width: 100% !important;
    border: 1px solid var(--rce-border) !important;
    border-radius: 15px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    color: var(--rce-text) !important;
    box-shadow: none !important;
    font-size: 15px;
}

.rce-cart-page .select2-container--default .select2-selection--single .select2-selection__rendered,
.rce-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
    padding-left: 0 !important;
    color: var(--rce-text) !important;
}

.rce-cart-page .select2-container--default .select2-selection--single .select2-selection__arrow,
.rce-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 10px !important;
}

.rce-cart-page .shipping-calculator-form input:focus,
.rce-cart-page .shipping-calculator-form select:focus,
.rce-cart-page .select2-container--open .select2-selection--single,
.rce-checkout-page .select2-container--open .select2-selection--single {
    border-color: rgba(0, 194, 168, 0.65) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0, 194, 168, 0.12) !important;
}

.rce-cart-page input.qty {
    border-radius: 999px;
    border: 1px solid var(--rce-border);
    height: 42px;
    width: 76px;
    text-align: center;
    font-weight: 800;
}

.rce-cart-page .actions {
    padding-top: 22px !important;
}

.rce-cart-page button[name="update_cart"],
.rce-cart-page .shipping-calculator-form button,
.rce-cart-page .checkout-button,
.rce-checkout-page #place_order {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--rce-teal), var(--rce-teal-dark)) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em;
    min-height: 52px;
    padding: 0 24px !important;
    box-shadow: 0 15px 34px rgba(0, 194, 168, 0.28);
}

.rce-cart-page .shipping-calculator-form button {
    min-height: 46px;
    width: 100%;
}

.rce-cart-page .checkout-button {
    width: 100%;
    font-size: 16px !important;
}

.rce-cart-page .wc-proceed-to-checkout {
    padding-bottom: 0;
}

.rce-cart-page .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rce-summary-note td,
.rce-cart-points-row td {
    background: var(--rce-soft) !important;
    color: var(--rce-text);
    border-radius: 16px !important;
    font-size: 13px;
    line-height: 1.5;
}

/* Checkout layout */

.rce-checkout-page form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.rce-checkout-page #customer_details,
.rce-checkout-page #order_review_heading,
.rce-checkout-page #order_review {
    background: var(--rce-card);
    border: 1px solid var(--rce-border);
    border-radius: var(--rce-radius);
    box-shadow: var(--rce-shadow);
}

.rce-checkout-page #customer_details {
    padding: 24px;
}

.rce-checkout-page #customer_details .col-1,
.rce-checkout-page #customer_details .col-2 {
    width: 100%;
    float: none;
}

.rce-checkout-page #customer_details .col-2 {
    margin-top: 22px;
}

.rce-checkout-page #order_review_heading {
    display: none;
}

.rce-checkout-page #order_review {
    padding: 22px;
    position: sticky;
    top: 24px;
}

.rce-checkout-page .woocommerce-billing-fields h3,
.rce-checkout-page .woocommerce-shipping-fields h3,
.rce-checkout-page .woocommerce-additional-fields h3 {
    color: var(--rce-text);
    font-size: 22px;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}

.rce-checkout-page .form-row label {
    color: var(--rce-text);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.rce-checkout-page .form-row input.input-text,
.rce-checkout-page .form-row textarea,
.rce-checkout-page .form-row select {
    border: 1px solid var(--rce-border) !important;
    border-radius: 15px !important;
    min-height: 48px;
    padding: 11px 14px;
    background: #fbfdfd;
    color: var(--rce-text);
    box-shadow: none !important;
}

.rce-checkout-page .form-row textarea {
    min-height: 100px;
}

.rce-checkout-page .form-row input:focus,
.rce-checkout-page .form-row textarea:focus {
    border-color: rgba(0, 194, 168, 0.65) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0, 194, 168, 0.12) !important;
}

.rce-checkout-page .woocommerce-checkout-review-order-table {
    border: 0 !important;
    margin-bottom: 20px;
}

.rce-checkout-page .woocommerce-checkout-review-order-table th,
.rce-checkout-page .woocommerce-checkout-review-order-table td {
    border-color: var(--rce-border) !important;
    padding: 14px 0 !important;
}

.rce-checkout-page .woocommerce-checkout-review-order-table .product-name {
    color: var(--rce-text);
    font-weight: 800;
    line-height: 1.35;
}

.rce-checkout-page .order-total th,
.rce-checkout-page .order-total td {
    font-size: 20px;
    color: var(--rce-text);
}

/* Payment */

.rce-payment-intro {
    background: var(--rce-soft);
    border: 1px solid rgba(0, 194, 168, 0.18);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}

.rce-payment-intro h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--rce-text);
}

.rce-payment-intro p {
    margin: 0;
    color: var(--rce-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rce-checkout-page #payment {
    background: transparent !important;
}

.rce-checkout-page #payment ul.payment_methods {
    border: 0 !important;
    padding: 0 !important;
}

.rce-checkout-page #payment ul.payment_methods li {
    background: #ffffff;
    border: 1px solid var(--rce-border);
    border-radius: 18px;
    padding: 15px !important;
    margin-bottom: 12px !important;
    transition: 0.2s ease;
}

.rce-checkout-page #payment ul.payment_methods li:hover {
    border-color: rgba(0, 194, 168, 0.45);
    box-shadow: 0 12px 28px rgba(8, 20, 23, 0.07);
}

.rce-checkout-page #payment ul.payment_methods li label {
    color: var(--rce-text);
    font-weight: 900;
}

.rce-checkout-page #payment div.payment_box {
    background: #f7faf9 !important;
    border-radius: 14px !important;
    color: var(--rce-muted);
    font-size: 13px;
    line-height: 1.55;
}

.rce-checkout-page #payment div.payment_box::before {
    display: none !important;
}

.rce-checkout-page .woocommerce-privacy-policy-text,
.rce-checkout-page .woocommerce-terms-and-conditions-wrapper {
    color: var(--rce-muted);
    font-size: 13px;
    line-height: 1.6;
}

.rce-support-card {
    margin-top: 18px;
    background:
        radial-gradient(circle at top right, rgba(0, 194, 168, 0.16), transparent 38%),
        #0d1d21;
    color: #ffffff;
    border-radius: 20px;
    padding: 18px;
}

.rce-support-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.rce-support-card p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px;
}

.rce-support-card a,
.rce-thankyou-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--rce-teal), var(--rce-teal-dark));
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(0, 194, 168, 0.28);
}

/* Thank you */

.rce-thankyou-card {
    background:
        radial-gradient(circle at top right, rgba(0, 194, 168, 0.22), transparent 35%),
        linear-gradient(135deg, var(--rce-dark), var(--rce-dark-soft));
    color: #ffffff;
    border-radius: 28px;
    padding: 34px;
    margin: 20px 0;
    box-shadow: var(--rce-shadow);
}

.rce-thankyou-card h2 {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 40px);
    margin: 0 0 12px;
    letter-spacing: -0.04em;
}

.rce-thankyou-card p {
    color: rgba(255, 255, 255, 0.76);
    max-width: 760px;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 1024px) {
    .rce-cart-page .woocommerce,
    .rce-checkout-page form.checkout {
        grid-template-columns: 1fr;
    }

    .rce-cart-page .woocommerce-cart-form,
    .rce-cart-page .cart-collaterals {
        grid-column: 1;
    }

    .rce-cart-page .cart_totals,
    .rce-checkout-page #order_review {
        position: static;
    }
}

@media (max-width: 900px) {
    .rce-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }

    .rce-hero-side {
        width: 100%;
        align-items: flex-start;
    }

    .rce-checkout-steps {
        width: 100%;
        justify-content: space-between;
    }

    .rce-checkout-steps a {
        flex: 1;
        text-align: center;
    }

    .rce-points-pill {
        width: 100%;
    }

    .rce-promise-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .rce-promise-main {
        min-width: 0;
    }

    .rce-promise-items {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .rce-cart-page .site-main,
    .rce-checkout-page .site-main,
    .rce-thankyou-page .site-main,
    .rce-cart-page main,
    .rce-checkout-page main,
    .rce-thankyou-page main {
        padding: 18px 12px 42px;
    }

    .rce-hero {
        border-radius: 22px;
        padding: 22px;
    }

    .rce-hero h1 {
        font-size: 30px;
    }

    .rce-checkout-steps {
        gap: 6px;
        padding: 6px;
    }

    .rce-checkout-steps a {
        font-size: 12px;
        padding: 8px 8px;
    }

    .rce-promise-bar {
        border-radius: 18px;
        padding: 15px;
    }

    .rce-promise-items span {
        width: 100%;
        justify-content: center;
    }

    .rce-cart-page .woocommerce-cart-form,
    .rce-cart-page .cart_totals,
    .rce-checkout-page #customer_details,
    .rce-checkout-page #order_review {
        border-radius: 20px;
        padding: 16px;
    }

    .rce-cart-page table.shop_table thead {
        display: none;
    }

    .rce-cart-page table.shop_table,
    .rce-cart-page table.shop_table tbody,
    .rce-cart-page table.shop_table tr,
    .rce-cart-page table.shop_table td {
        display: block;
        width: 100%;
    }

    .rce-cart-page table.shop_table tr.cart_item {
        background: #ffffff;
        border: 1px solid var(--rce-border);
        border-radius: 20px;
        padding: 14px;
        margin-bottom: 14px;
    }

    .rce-cart-page table.shop_table tr.cart_item td {
        border: 0 !important;
        border-radius: 0 !important;
        padding: 7px 0 !important;
        background: transparent;
    }

    .rce-cart-page .product-remove {
        text-align: right;
    }

    .rce-cart-page .product-thumbnail {
        text-align: left;
    }

    .rce-cart-page .product-thumbnail img {
        width: 96px !important;
        height: 96px !important;
    }

    .rce-cart-page .product-name a {
        font-size: 16px;
    }

    .rce-cart-page .product-price,
    .rce-cart-page .product-quantity,
    .rce-cart-page .product-subtotal {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
    }

    .rce-cart-page .product-price::before {
        content: "Price";
        color: var(--rce-muted);
        font-weight: 800;
    }

    .rce-cart-page .product-quantity::before {
        content: "Quantity";
        color: var(--rce-muted);
        font-weight: 800;
    }

    .rce-cart-page .product-subtotal::before {
        content: "Subtotal";
        color: var(--rce-muted);
        font-weight: 800;
    }

    .rce-cart-page .actions .coupon,
    .rce-cart-page .actions button {
        width: 100% !important;
        margin: 0 0 10px !important;
    }
}