:root {
    --sp-clay: #8B7353;
    --sp-cream: #F3EEE5;
    --sp-cream-2: #FBF7F0;
    --sp-ink: #2A2520;
    --sp-muted: #6E6256;
    --sp-rust: #8A3A2B;
    --sp-line: rgba(42, 37, 32, .12);
    --sp-line-strong: rgba(139, 115, 83, .28);
    --sp-card: #fffaf3;
    --sp-white: #ffffff;
    --sp-radius: 24px;
    --sp-shadow: 0 18px 55px rgba(42, 37, 32, .075);
    --sp-shadow-soft: 0 10px 28px rgba(42, 37, 32, .055);
}

body.sp-checkout-page {
    background:
        radial-gradient(circle at 18% 6%, rgba(139, 115, 83, .10), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(138, 58, 43, .07), transparent 28%),
        linear-gradient(180deg, #f7f1e8 0%, #fbf7f0 48%, #f3eee5 100%);
}

body.sp-checkout-page .entry-content,
body.sp-checkout-page .wp-site-blocks,
body.sp-checkout-page main,
body.sp-checkout-page .site-main {
    overflow: visible !important;
}

.sp-checkout-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 42px auto 64px;
    color: var(--sp-ink);
}

.sp-checkout-hero {
    position: relative;
    overflow: hidden;
    margin: 24px 0 26px;
    padding: 30px 32px;
    border: 1px solid rgba(139, 115, 83, .18);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 250, 243, .96), rgba(243, 238, 229, .72));
    box-shadow: var(--sp-shadow);
}

.sp-checkout-hero::after {
    content: '';
    position: absolute;
    right: -48px;
    bottom: -64px;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    border: 1px solid rgba(139, 115, 83, .14);
    background: radial-gradient(circle, rgba(139, 115, 83, .09), transparent 64%);
    pointer-events: none;
}

.sp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--sp-rust);
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .76rem;
}

.sp-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--sp-rust);
    opacity: .75;
}

.sp-checkout-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
    color: var(--sp-ink);
}

.sp-checkout-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--sp-muted);
    font-size: 1.04rem;
}

.sp-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 28px;
    align-items: start;
}

.sp-checkout-main,
.sp-checkout-sidebar {
    min-width: 0;
}

.sp-order-sticky {
    position: sticky;
    top: 24px;
}

.sp-checkout-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(42, 37, 32, .10);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.sp-checkout-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(139, 115, 83, .55), rgba(138, 58, 43, .26), rgba(139, 115, 83, .08));
    pointer-events: none;
}

.sp-order-card {
    padding: 28px 28px 24px;
}

.sp-section-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.sp-section-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbf7f0, #efe6d9);
    color: var(--sp-rust);
    border: 1px solid rgba(139, 115, 83, .24);
    font-weight: 950;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 18px rgba(42, 37, 32, .06);
}

.sp-section-icon::after {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -5px;
    width: 18px;
    height: 18px;
    border-radius: 100% 0 100% 0;
    border: 1px solid rgba(139, 115, 83, .24);
    transform: rotate(25deg);
    opacity: .55;
}

.sp-section-head h2,
.sp-checkout-card h3 {
    margin: 0 0 5px;
    color: var(--sp-ink);
    font-size: clamp(1.3rem, 2vw, 1.58rem);
    line-height: 1.12;
    font-weight: 950;
}

.sp-section-head p {
    margin: 0;
    color: var(--sp-muted);
    font-size: .98rem;
    line-height: 1.45;
}

.sp-checkout-form .form-row,
.sp-checkout-form .sp-field-wrap {
    margin-bottom: 16px;
}

.sp-checkout-form .form-row-first,
.sp-checkout-form .form-row-last {
    width: calc(50% - 8px);
}

.sp-checkout-form .form-row-first {
    margin-right: 16px;
}

.sp-checkout-form label {
    color: var(--sp-ink);
    font-weight: 850;
    margin-bottom: 7px;
    line-height: 1.25;
}

.sp-checkout-form .required,
.sp-required {
    color: var(--sp-rust);
    text-decoration: none;
}

.sp-checkout-form input.input-text,
.sp-checkout-form textarea,
.sp-checkout-form select,
.sp-checkout-form .select2-container .select2-selection--single {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(42, 37, 32, .14) !important;
    border-radius: 17px !important;
    background: #fff !important;
    color: var(--sp-ink) !important;
    padding: 13px 15px !important;
    box-shadow: inset 0 1px 0 rgba(42, 37, 32, .02) !important;
    outline: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.sp-checkout-form textarea {
    min-height: 112px;
}

.sp-checkout-form input:focus,
.sp-checkout-form textarea:focus,
.sp-checkout-form select:focus,
.sp-checkout-form .select2-container--open .select2-selection--single {
    border-color: rgba(139, 115, 83, .58) !important;
    box-shadow: 0 0 0 4px rgba(139, 115, 83, .12) !important;
}

.sp-checkout-form .select2-container .select2-selection__rendered {
    line-height: 25px !important;
    padding-left: 0 !important;
    color: var(--sp-ink) !important;
}

.sp-checkout-form .select2-container .select2-selection__arrow {
    height: 50px !important;
}

.sp-coupon-card .checkout_coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.sp-coupon-card .checkout_coupon p {
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}

.sp-coupon-card .checkout_coupon .form-row-first,
.sp-coupon-card .checkout_coupon .form-row-last {
    width: auto !important;
    margin-right: 0 !important;
}

.sp-coupon-card .checkout_coupon .button {
    white-space: nowrap;
}

.sp-checkout-form button,
.sp-checkout-form .button,
.sp-place-order-btn {
    min-height: 52px;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 13px 24px !important;
    background: linear-gradient(135deg, var(--sp-ink), #1f1a16) !important;
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: .01em;
    text-decoration: none !important;
    box-shadow: 0 13px 30px rgba(42, 37, 32, .19) !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sp-checkout-form button:hover,
.sp-checkout-form .button:hover,
.sp-place-order-btn:hover {
    background: linear-gradient(135deg, var(--sp-rust), #6f2d21) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(42, 37, 32, .24) !important;
}

.sp-review-table {
    width: 100%;
    border: 0 !important;
    margin: 0 !important;
    border-collapse: collapse;
}

.sp-review-table thead {
    display: none;
}

.sp-review-table th,
.sp-review-table td {
    border: 0 !important;
    border-bottom: 1px solid var(--sp-line) !important;
    padding: 15px 0 !important;
    vertical-align: top;
}

.sp-review-table td.product-total,
.sp-review-table tfoot td {
    text-align: right;
    white-space: nowrap;
    font-weight: 850;
}

.sp-mini-product {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.sp-mini-thumb {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--sp-cream);
    border: 1px solid rgba(139, 115, 83, .18);
    flex: 0 0 auto;
    box-shadow: var(--sp-shadow-soft);
}

.sp-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-mini-info strong {
    display: block;
    font-size: .98rem;
    line-height: 1.35;
    color: var(--sp-ink);
}

.sp-mini-qty,
.sp-mini-info .variation {
    display: block;
    color: var(--sp-muted);
    font-size: .86rem;
    margin-top: 4px;
}

.sp-review-table tfoot tr.order-total th,
.sp-review-table tfoot tr.order-total td {
    border-bottom: 0 !important;
    font-size: 1.22rem;
    color: var(--sp-rust);
    font-weight: 950;
}

.sp-payment-box {
    margin-top: 18px;
    background: linear-gradient(180deg, rgba(255, 250, 243, .96), rgba(243, 238, 229, .52)) !important;
    border: 1px solid rgba(139, 115, 83, .16);
    border-radius: 20px;
    padding: 18px;
}

.sp-payment-methods {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.sp-payment-methods li.wc_payment_method {
    margin: 0 0 12px !important;
    padding: 14px !important;
    border: 1px solid rgba(42, 37, 32, .12);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(42, 37, 32, .035);
}

.sp-payment-methods label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sp-payment-methods .payment_box {
    margin: 12px 0 0 !important;
    padding: 13px !important;
    border-radius: 15px !important;
    background: var(--sp-cream) !important;
    color: var(--sp-muted) !important;
}

.sp-place-order-row {
    margin: 16px 0 0 !important;
    padding: 0 !important;
}

.sp-place-order-btn {
    width: 100%;
    font-size: 1.02rem !important;
}

.sp-checkout-form .woocommerce-NoticeGroup,
.sp-checkout-form .woocommerce-error,
.sp-checkout-form .woocommerce-info,
.sp-checkout-form .woocommerce-message,
body.sp-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
body.sp-checkout-page .woocommerce-form-login-toggle .woocommerce-info {
    border-radius: 18px !important;
    border: 1px solid rgba(139, 115, 83, .18) !important;
    background: rgba(255, 250, 243, .86) !important;
    color: var(--sp-ink) !important;
    padding: 16px 18px !important;
    margin: 0 0 20px !important;
    box-shadow: var(--sp-shadow-soft);
}

body.sp-checkout-page .woocommerce-form-login-toggle .woocommerce-info {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 20px !important;
}

body.sp-checkout-page .woocommerce-form-login-toggle a,
body.sp-checkout-page .woocommerce-form-coupon-toggle a {
    color: var(--sp-rust) !important;
    font-weight: 800;
    text-decoration: none;
}

.sp-checkout-form .woocommerce-terms-and-conditions-wrapper {
    color: var(--sp-muted);
    font-size: .92rem;
    margin-bottom: 14px;
}

.sp-checkout-form ul#shipping_method,
.sp-review-table ul#shipping_method,
.woocommerce-checkout-review-order-table ul#shipping_method,
#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 0 !important;
}

.sp-checkout-form ul#shipping_method li,
.sp-review-table ul#shipping_method li,
.woocommerce-checkout-review-order-table ul#shipping_method li,
#shipping_method li {
    position: relative;
    display: block;
    padding: 0 !important;
    margin: 0 0 12px !important;
    border: 0 !important;
    background: transparent !important;
}

.sp-checkout-form ul#shipping_method input[type="radio"],
.sp-review-table ul#shipping_method input[type="radio"],
.woocommerce-checkout-review-order-table ul#shipping_method input[type="radio"],
#shipping_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sp-checkout-form ul#shipping_method label,
.sp-review-table ul#shipping_method label,
.woocommerce-checkout-review-order-table ul#shipping_method label,
#shipping_method label {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    margin: 0 !important;
    padding: 14px 16px 14px 50px !important;
    border: 1px solid rgba(42, 37, 32, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    color: var(--sp-ink);
    font-weight: 850 !important;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(42, 37, 32, .045);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sp-checkout-form ul#shipping_method label:hover,
.sp-review-table ul#shipping_method label:hover,
.woocommerce-checkout-review-order-table ul#shipping_method label:hover,
#shipping_method label:hover {
    border-color: rgba(139, 115, 83, .45);
    background: rgba(243, 238, 229, .50);
    transform: translateY(-1px);
}

.sp-checkout-form ul#shipping_method label::before,
.sp-review-table ul#shipping_method label::before,
.woocommerce-checkout-review-order-table ul#shipping_method label::before,
#shipping_method label::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(139, 115, 83, .72);
    background: #fff;
    transform: translateY(-50%);
    box-shadow: inset 0 0 0 4px #fff;
}

.sp-checkout-form ul#shipping_method input[type="radio"]:checked + label,
.sp-review-table ul#shipping_method input[type="radio"]:checked + label,
.woocommerce-checkout-review-order-table ul#shipping_method input[type="radio"]:checked + label,
#shipping_method input[type="radio"]:checked + label,
#shipping_method li.sp-shipping-selected label {
    border-color: rgba(139, 115, 83, .78);
    background: linear-gradient(135deg, rgba(243, 238, 229, .92), rgba(255, 250, 243, .94));
    box-shadow: 0 0 0 3px rgba(139, 115, 83, .13), 0 12px 28px rgba(42, 37, 32, .075);
}

.sp-checkout-form ul#shipping_method input[type="radio"]:checked + label::before,
.sp-review-table ul#shipping_method input[type="radio"]:checked + label::before,
.woocommerce-checkout-review-order-table ul#shipping_method input[type="radio"]:checked + label::before,
#shipping_method input[type="radio"]:checked + label::before,
#shipping_method li.sp-shipping-selected label::before {
    background: var(--sp-clay);
    border-color: var(--sp-clay);
}

.sp-checkout-form ul#shipping_method label .amount,
.sp-review-table ul#shipping_method label .amount,
.woocommerce-checkout-review-order-table ul#shipping_method label .amount,
#shipping_method label .amount {
    color: var(--sp-ink);
    font-weight: 950;
    white-space: nowrap;
}

.sp-checkout-form ul#shipping_method label br,
.sp-review-table ul#shipping_method label br,
.woocommerce-checkout-review-order-table ul#shipping_method label br,
#shipping_method label br {
    display: none;
}

.sp-checkout-form ul#shipping_method .woocommerce-Price-amount,
.sp-review-table ul#shipping_method .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table ul#shipping_method .woocommerce-Price-amount,
#shipping_method .woocommerce-Price-amount {
    margin-left: auto;
}

.sp-checkout-form ul#shipping_method input[type="hidden"] + label,
.sp-review-table ul#shipping_method input[type="hidden"] + label,
.woocommerce-checkout-review-order-table ul#shipping_method input[type="hidden"] + label,
#shipping_method input[type="hidden"] + label {
    padding-left: 18px !important;
}

.sp-checkout-form ul#shipping_method input[type="hidden"] + label::before,
.sp-review-table ul#shipping_method input[type="hidden"] + label::before,
.woocommerce-checkout-review-order-table ul#shipping_method input[type="hidden"] + label::before,
#shipping_method input[type="hidden"] + label::before {
    display: none;
}

.sp-checkout-form .blockUI.blockOverlay,
.sp-review-order .blockUI.blockOverlay {
    border-radius: var(--sp-radius);
}

body.sp-checkout-page footer,
body.sp-checkout-page .site-footer,
body.sp-checkout-page #colophon {
    width: 100% !important;
    max-width: none !important;
    clear: both !important;
}

@media (max-width: 991px) {
    .sp-checkout-shell {
        width: min(100% - 24px, 780px);
        margin-bottom: 42px;
    }

    .sp-checkout-grid {
        grid-template-columns: 1fr;
    }

    .sp-order-sticky {
        position: static;
    }

    .sp-checkout-sidebar {
        order: initial;
    }
}

@media (max-width: 575px) {
    body.sp-checkout-page .woocommerce-form-login-toggle .woocommerce-info {
        width: calc(100% - 18px);
    }

    .sp-checkout-shell {
        width: calc(100% - 18px);
    }

    .sp-checkout-hero,
    .sp-checkout-card {
        padding: 18px;
        border-radius: 20px;
    }

    .sp-checkout-hero {
        margin-top: 16px;
    }

    .sp-section-head {
        gap: 11px;
        margin-bottom: 18px;
    }

    .sp-section-icon {
        width: 38px;
        height: 38px;
    }

    .sp-section-head h2,
    .sp-checkout-card h3 {
        font-size: 1.22rem;
    }

    .sp-section-head p {
        font-size: .92rem;
    }

    .sp-coupon-card .checkout_coupon {
        display: block !important;
    }

    .sp-coupon-card .checkout_coupon p {
        margin-bottom: 10px !important;
    }

    .sp-coupon-card .checkout_coupon .button {
        width: 100%;
    }

    .sp-checkout-form .form-row-first,
    .sp-checkout-form .form-row-last {
        width: 100%;
        margin-right: 0;
    }

    .sp-review-table td.product-total,
    .sp-review-table tfoot td {
        white-space: normal;
    }

    .sp-mini-thumb {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .sp-checkout-form ul#shipping_method label,
    .sp-review-table ul#shipping_method label,
    .woocommerce-checkout-review-order-table ul#shipping_method label,
    #shipping_method label {
        align-items: flex-start;
        flex-wrap: wrap;
        min-height: 58px;
        padding: 14px 14px 14px 44px !important;
        border-radius: 16px;
        font-size: .95rem;
    }

    .sp-checkout-form ul#shipping_method label::before,
    .sp-review-table ul#shipping_method label::before,
    .woocommerce-checkout-review-order-table ul#shipping_method label::before,
    #shipping_method label::before {
        left: 15px;
        top: 18px;
        transform: none;
    }
}

/* v1.0.4: order summary containment + safer shipping option cards. Design-only. */
.sp-checkout-sidebar,
.sp-order-sticky,
.sp-order-card,
.sp-review-order,
.sp-review-table,
.sp-review-table tbody,
.sp-review-table tfoot {
    min-width: 0 !important;
    max-width: 100% !important;
}

.sp-order-card {
    overflow: hidden;
}

.sp-order-card .sp-section-head {
    align-items: center;
}

.sp-order-card .sp-section-head > div {
    min-width: 0;
}

.sp-review-table {
    table-layout: fixed;
}

.sp-review-table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: start;
    border-bottom: 1px solid var(--sp-line) !important;
    padding: 16px 0 !important;
}

.sp-review-table tbody tr.cart_item td {
    display: block !important;
    border-bottom: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

.sp-review-table tbody tr.cart_item td.product-name {
    overflow: hidden;
}

.sp-review-table tbody tr.cart_item td.product-total {
    align-self: start;
    justify-self: end;
    min-width: 72px;
    text-align: right !important;
    color: var(--sp-ink);
    font-weight: 950;
    white-space: nowrap !important;
}

.sp-mini-product {
    min-width: 0;
}

.sp-mini-info {
    min-width: 0;
    flex: 1 1 auto;
}

.sp-mini-info strong,
.sp-mini-info a {
    overflow-wrap: anywhere;
    word-break: normal;
}

.sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--sp-line) !important;
    padding: 15px 0 !important;
}

.sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) th,
.sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) td {
    display: block !important;
    border-bottom: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

.sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) td {
    justify-self: end;
    text-align: right !important;
    white-space: nowrap !important;
}

.sp-review-table tfoot tr.woocommerce-shipping-totals,
.sp-review-table tfoot tr.shipping {
    display: block !important;
    border-bottom: 1px solid var(--sp-line) !important;
    padding: 15px 0 16px !important;
}

.sp-review-table tfoot tr.woocommerce-shipping-totals th,
.sp-review-table tfoot tr.shipping th,
.sp-review-table tfoot tr.woocommerce-shipping-totals td,
.sp-review-table tfoot tr.shipping td {
    display: block !important;
    width: 100% !important;
    border-bottom: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.sp-review-table tfoot tr.woocommerce-shipping-totals th,
.sp-review-table tfoot tr.shipping th {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 950;
}

.sp-review-table tfoot tr.order-total {
    border-bottom: 0 !important;
    margin-top: 2px;
}

.sp-review-table tfoot tr.order-total td {
    color: var(--sp-rust);
}

.sp-checkout-form ul#shipping_method label,
.sp-review-table ul#shipping_method label,
.woocommerce-checkout-review-order-table ul#shipping_method label,
#shipping_method label {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.sp-checkout-form ul#shipping_method label .woocommerce-Price-amount,
.sp-review-table ul#shipping_method label .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table ul#shipping_method label .woocommerce-Price-amount,
#shipping_method label .woocommerce-Price-amount,
.sp-checkout-form ul#shipping_method label .amount,
.sp-review-table ul#shipping_method label .amount,
.woocommerce-checkout-review-order-table ul#shipping_method label .amount,
#shipping_method label .amount {
    justify-self: end;
    margin-left: 0 !important;
    white-space: nowrap !important;
}

.sp-checkout-form ul#shipping_method label small,
.sp-review-table ul#shipping_method label small,
.woocommerce-checkout-review-order-table ul#shipping_method label small,
#shipping_method label small {
    grid-column: 1 / -1;
    margin-top: 5px;
    color: var(--sp-muted);
    font-weight: 650;
}

.sp-checkout-form ul#shipping_method li,
.sp-review-table ul#shipping_method li,
.woocommerce-checkout-review-order-table ul#shipping_method li,
#shipping_method li {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 575px) {
    .sp-review-table tbody tr.cart_item {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
    }

    .sp-review-table tbody tr.cart_item td.product-total {
        justify-self: start;
        min-width: 0;
        padding-left: 67px !important;
        text-align: left !important;
    }

    .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sp-checkout-form ul#shipping_method label,
    .sp-review-table ul#shipping_method label,
    .woocommerce-checkout-review-order-table ul#shipping_method label,
    #shipping_method label {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

/* v1.0.5: collapsed coupon card + cleaner icon. Design-only. */
.sp-coupon-card::after,
.sp-customer-card::after,
.sp-order-card::after {
    display: none !important;
    content: none !important;
}

.sp-coupon-card {
    padding: 0;
}

.sp-coupon-toggle {
    appearance: none;
    width: 100%;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 26px 28px !important;
    border: 0 !important;
    border-radius: var(--sp-radius) !important;
    background: transparent !important;
    color: var(--sp-ink) !important;
    text-align: left;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
}

.sp-coupon-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 250, 243, .96), rgba(243, 238, 229, .50)) !important;
    color: var(--sp-ink) !important;
    transform: none !important;
    box-shadow: none !important;
}

.sp-coupon-toggle:focus-visible {
    outline: 3px solid rgba(139, 115, 83, .24);
    outline-offset: -6px;
}

.sp-section-icon--coupon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.sp-coupon-title {
    display: block;
    margin: 0 0 5px;
    color: var(--sp-ink);
    font-size: clamp(1.3rem, 2vw, 1.58rem);
    line-height: 1.12;
    font-weight: 950;
}

.sp-coupon-subtitle {
    display: block;
    margin: 0;
    color: var(--sp-muted);
    font-size: .98rem;
    line-height: 1.45;
    font-weight: 500;
}

.sp-coupon-chevron {
    width: 13px;
    height: 13px;
    border-right: 2px solid rgba(139, 115, 83, .9);
    border-bottom: 2px solid rgba(139, 115, 83, .9);
    transform: rotate(45deg);
    transition: transform .18s ease;
    margin-right: 4px;
}

.sp-coupon-card--open .sp-coupon-chevron {
    transform: rotate(225deg);
}

.sp-coupon-panel[hidden] {
    display: none !important;
}

.sp-coupon-panel {
    padding: 0 28px 28px;
}

.sp-coupon-card .checkout_coupon {
    display: grid !important;
}

.sp-coupon-card--collapsed {
    margin-bottom: 18px;
}

@media (max-width: 575px) {
    .sp-coupon-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 11px;
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .sp-coupon-panel {
        padding: 0 18px 18px;
    }

    .sp-coupon-title {
        font-size: 1.22rem;
    }

    .sp-coupon-subtitle {
        font-size: .9rem;
    }
}

/* v1.0.6: theme-matched coupon toggle. Design-only; no checkout or shipping logic changed. */
body.sp-checkout-page .sp-checkout-form .sp-coupon-card { padding: 0 !important; overflow: hidden !important; background: rgba(255,255,255,.93) !important; border: 1px solid rgba(42,37,32,.10) !important; border-radius: var(--sp-radius) !important; box-shadow: var(--sp-shadow) !important; }
body.sp-checkout-page .sp-checkout-form .sp-coupon-card::before { height: 5px !important; background: linear-gradient(90deg, rgba(139,115,83,.55), rgba(138,58,43,.22), rgba(139,115,83,.08)) !important; }
body.sp-checkout-page .sp-checkout-form button.sp-coupon-toggle, body.sp-checkout-page .sp-checkout-form .sp-coupon-toggle, body.sp-checkout-page .sp-coupon-toggle { appearance: none !important; -webkit-appearance: none !important; width: 100% !important; min-height: unset !important; display: grid !important; grid-template-columns: auto minmax(0,1fr) auto !important; align-items: center !important; gap: 16px !important; padding: 24px 28px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; background-image: none !important; color: var(--sp-ink) !important; text-align: left !important; text-decoration: none !important; box-shadow: none !important; text-shadow: none !important; transform: none !important; cursor: pointer !important; }
body.sp-checkout-page .sp-checkout-form button.sp-coupon-toggle:hover, body.sp-checkout-page .sp-checkout-form button.sp-coupon-toggle:focus, body.sp-checkout-page .sp-checkout-form button.sp-coupon-toggle:active, body.sp-checkout-page .sp-coupon-toggle:hover, body.sp-checkout-page .sp-coupon-toggle:focus, body.sp-checkout-page .sp-coupon-toggle:active { background: linear-gradient(135deg, rgba(255,250,243,.72), rgba(243,238,229,.38)) !important; color: var(--sp-ink) !important; text-decoration: none !important; box-shadow: none !important; transform: none !important; }
body.sp-checkout-page .sp-coupon-toggle * { text-decoration: none !important; }
body.sp-checkout-page .sp-coupon-toggle .sp-section-icon, body.sp-checkout-page .sp-section-icon--coupon { width: 46px !important; height: 46px !important; border-radius: 999px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; background: linear-gradient(135deg, #fbf7f0, #efe6d9) !important; color: var(--sp-rust) !important; border: 1px solid rgba(139,115,83,.24) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px rgba(42,37,32,.06) !important; }
body.sp-checkout-page .sp-coupon-toggle .sp-section-icon::after, body.sp-checkout-page .sp-section-icon--coupon::after { display: none !important; content: none !important; }
body.sp-checkout-page .sp-section-icon--coupon svg { width: 21px !important; height: 21px !important; display: block !important; stroke: currentColor !important; }
body.sp-checkout-page .sp-coupon-title { display: block !important; margin: 0 0 5px !important; color: var(--sp-ink) !important; font-size: clamp(1.28rem, 2vw, 1.55rem) !important; line-height: 1.12 !important; font-weight: 950 !important; text-decoration: none !important; }
body.sp-checkout-page .sp-coupon-subtitle { display: block !important; margin: 0 !important; color: var(--sp-muted) !important; font-size: .98rem !important; line-height: 1.45 !important; font-weight: 500 !important; text-decoration: none !important; }
body.sp-checkout-page .sp-coupon-chevron { width: 12px !important; height: 12px !important; border-right: 2px solid rgba(139,115,83,.9) !important; border-bottom: 2px solid rgba(139,115,83,.9) !important; transform: rotate(45deg) !important; transition: transform .18s ease !important; margin-right: 4px !important; }
body.sp-checkout-page .sp-coupon-card--open .sp-coupon-chevron { transform: rotate(225deg) !important; }
body.sp-checkout-page .sp-coupon-panel { padding: 0 28px 28px !important; border-top: 1px solid rgba(42,37,32,.08) !important; }
body.sp-checkout-page .sp-coupon-panel[hidden] { display: none !important; }
body.sp-checkout-page .sp-coupon-card .checkout_coupon { padding-top: 20px !important; }
body.sp-checkout-page .sp-coupon-card .checkout_coupon input.input-text { border-radius: 17px !important; }
@media (max-width:575px) { body.sp-checkout-page .sp-checkout-form button.sp-coupon-toggle, body.sp-checkout-page .sp-checkout-form .sp-coupon-toggle, body.sp-checkout-page .sp-coupon-toggle { gap: 12px !important; padding: 18px !important; } body.sp-checkout-page .sp-coupon-toggle .sp-section-icon, body.sp-checkout-page .sp-section-icon--coupon { width: 40px !important; height: 40px !important; } body.sp-checkout-page .sp-coupon-title { font-size: 1.2rem !important; } body.sp-checkout-page .sp-coupon-subtitle { font-size: .9rem !important; } body.sp-checkout-page .sp-coupon-panel { padding: 0 18px 18px !important; } }

/* v1.0.9 billing field layout refinement - design only */
.sp-checkout-form .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
    align-items: start;
}

.sp-checkout-form .woocommerce-billing-fields__field-wrapper::before,
.sp-checkout-form .woocommerce-billing-fields__field-wrapper::after {
    content: none !important;
    display: none !important;
}

.sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row,
.sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-wrap {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

.sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-wide,
.sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-wide {
    grid-column: span 6;
}

.sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-half,
.sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-first,
.sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-last {
    grid-column: span 3;
}

.sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-third {
    grid-column: span 2;
}

.sp-checkout-form #billing_email_field,
.sp-checkout-form #billing_phone_field,
.sp-checkout-form #billing_first_name_field,
.sp-checkout-form #billing_last_name_field {
    grid-column: span 3 !important;
}

.sp-checkout-form #billing_city_field,
.sp-checkout-form #billing_state_field,
.sp-checkout-form #billing_postcode_field {
    grid-column: span 2 !important;
}

.sp-checkout-form #billing_company_field,
.sp-checkout-form #billing_country_field,
.sp-checkout-form #billing_address_1_field,
.sp-checkout-form #billing_address_2_field {
    grid-column: span 6 !important;
}

.sp-checkout-form .woocommerce-billing-fields h3 {
    margin-bottom: 18px;
}

.sp-checkout-form .woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper,
.sp-checkout-form .woocommerce-billing-fields__field-wrapper input.input-text,
.sp-checkout-form .woocommerce-billing-fields__field-wrapper select,
.sp-checkout-form .woocommerce-billing-fields__field-wrapper .select2-container {
    display: block;
    width: 100% !important;
}

@media (max-width: 820px) {
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-wide,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-wide,
    .sp-checkout-form #billing_company_field,
    .sp-checkout-form #billing_country_field,
    .sp-checkout-form #billing_address_1_field,
    .sp-checkout-form #billing_address_2_field {
        grid-column: span 2 !important;
    }

    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-half,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-third,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-first,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-last,
    .sp-checkout-form #billing_email_field,
    .sp-checkout-form #billing_phone_field,
    .sp-checkout-form #billing_first_name_field,
    .sp-checkout-form #billing_last_name_field,
    .sp-checkout-form #billing_city_field,
    .sp-checkout-form #billing_state_field,
    .sp-checkout-form #billing_postcode_field {
        grid-column: span 1 !important;
    }
}

@media (max-width: 575px) {
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-wrap,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-wide,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-half,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .sp-field-third,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-wide,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-first,
    .sp-checkout-form .woocommerce-billing-fields__field-wrapper .form-row-last,
    .sp-checkout-form #billing_email_field,
    .sp-checkout-form #billing_phone_field,
    .sp-checkout-form #billing_first_name_field,
    .sp-checkout-form #billing_last_name_field,
    .sp-checkout-form #billing_city_field,
    .sp-checkout-form #billing_state_field,
    .sp-checkout-form #billing_postcode_field,
    .sp-checkout-form #billing_company_field,
    .sp-checkout-form #billing_country_field,
    .sp-checkout-form #billing_address_1_field,
    .sp-checkout-form #billing_address_2_field {
        grid-column: 1 / -1 !important;
    }
}

/* =========================================================
   v1.1.1 Performance + Shipping Collapse Fixes
   Design-only. No shipping calculation or payment logic touched.
   ========================================================= */

body.sp-checkout-page {
    background: #f7f1e8 !important;
}

body.sp-checkout-page .sp-checkout-card,
body.sp-checkout-page .sp-coupon-card,
body.sp-checkout-page .sp-order-card,
body.sp-checkout-page .sp-shipping-card {
    background: #fffaf3 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 26px rgba(42, 37, 32, .055) !important;
    transform: none !important;
    will-change: auto !important;
}

body.sp-checkout-page .sp-order-sticky {
    position: static !important;
    top: auto !important;
}

body.sp-checkout-page .sp-checkout-hero,
body.sp-checkout-page .sp-checkout-hero::after,
body.sp-checkout-page .sp-checkout-card::before,
body.sp-checkout-page .sp-section-icon::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
}

body.sp-checkout-page .sp-checkout-hero::after,
body.sp-checkout-page .sp-section-icon::after {
    display: none !important;
}

body.sp-checkout-page .sp-checkout-card,
body.sp-checkout-page .sp-checkout-card *,
body.sp-checkout-page .sp-coupon-card,
body.sp-checkout-page .sp-coupon-card *,
body.sp-checkout-page .sp-shipping-card,
body.sp-checkout-page .sp-shipping-card * {
    transition-property: color, background-color, border-color, box-shadow, opacity !important;
}

body.sp-checkout-page .sp-shipping-card {
    padding: 0 !important;
    overflow: hidden !important;
}

body.sp-checkout-page .sp-shipping-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 24px 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--sp-ink) !important;
    text-align: left !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

body.sp-checkout-page .sp-shipping-toggle:hover,
body.sp-checkout-page .sp-shipping-toggle:focus {
    background: linear-gradient(135deg, rgba(255,250,243,.75), rgba(243,238,229,.45)) !important;
    outline: none !important;
}

body.sp-checkout-page .sp-shipping-title {
    display: block !important;
    color: var(--sp-ink) !important;
    font-family: inherit !important;
    font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    margin: 0 0 5px !important;
}

body.sp-checkout-page .sp-shipping-subtitle {
    display: block !important;
    color: var(--sp-muted) !important;
    font-size: .98rem !important;
    line-height: 1.4 !important;
}

body.sp-checkout-page .sp-shipping-panel {
    padding: 0 28px 28px !important;
}

body.sp-checkout-page .sp-shipping-card--open .sp-coupon-chevron {
    transform: rotate(225deg) !important;
}

@media (max-width: 767px) {
    body.sp-checkout-page .sp-shipping-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        padding: 20px !important;
        gap: 12px !important;
    }

    body.sp-checkout-page .sp-shipping-panel {
        padding: 0 20px 22px !important;
    }
}

/* =========================================================
   v1.1.2 Checkout compatibility fixes
   Coupon form is now outside the checkout <form>, preventing invalid nested forms.
   Wallet/payment express containers are kept visible and safely contained.
   ========================================================= */

body.sp-checkout-page .sp-coupon-card {
    margin-bottom: 24px !important;
}

body.sp-checkout-page .woocommerce-form-coupon,
body.sp-checkout-page form.checkout_coupon {
    display: block !important;
    margin: 0 !important;
}

body.sp-checkout-page .wc-stripe-payment-request-wrapper,
body.sp-checkout-page #wc-stripe-payment-request-wrapper,
body.sp-checkout-page .wc-stripe-payment-request-button,
body.sp-checkout-page .wc-stripe-express-checkout-element,
body.sp-checkout-page .wcpay-express-checkout-wrapper,
body.sp-checkout-page .wcpay-payment-request-wrapper,
body.sp-checkout-page .wc-block-components-express-payment,
body.sp-checkout-page .ppc-button-wrapper,
body.sp-checkout-page .paypal-buttons,
body.sp-checkout-page .smart-button-container {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.sp-checkout-page .sp-checkout-shell iframe,
body.sp-checkout-page .sp-checkout-shell button,
body.sp-checkout-page .sp-checkout-shell [role="button"] {
    max-width: 100%;
}

body.sp-checkout-page .sp-checkout-shell,
body.sp-checkout-page .sp-checkout-grid,
body.sp-checkout-page .sp-checkout-main,
body.sp-checkout-page .sp-checkout-sidebar,
body.sp-checkout-page .sp-order-card {
    contain: none !important;
}

/* v1.2.1: Shippo rate label wrapping + tax/shipping row containment fixes. */
.sp-review-table ul#shipping_method label,
.woocommerce-checkout-review-order-table ul#shipping_method label,
#shipping_method label {
    grid-template-columns: minmax(0, 1fr) auto !important;
    overflow: visible !important;
}

.sp-rate-label-text {
    display: block;
    min-width: 0;
    max-width: 100%;
    padding-right: 10px;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.28;
}

.sp-rate-label-price {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    white-space: nowrap;
    font-weight: 950;
    color: var(--sp-ink);
}

.sp-rate-label-price .amount,
.sp-rate-label-price .woocommerce-Price-amount {
    margin-left: 0 !important;
}

.sp-review-table tfoot tr.tax-rate,
.sp-review-table tfoot tr.tax-total {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: center;
}

@media (max-width: 575px) {
    .sp-review-table ul#shipping_method label,
    .woocommerce-checkout-review-order-table ul#shipping_method label,
    #shipping_method label {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 8px;
    }

    .sp-rate-label-price {
        justify-self: start;
    }
}

/* v1.2.2: hard fix for Shippo/Woo shipping rate card overlap. */
body.sp-checkout-page #order_review ul#shipping_method,
body.sp-checkout-page .sp-review-table ul#shipping_method,
body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method {
    width: 100% !important;
    max-width: 100% !important;
}

body.sp-checkout-page #order_review ul#shipping_method li,
body.sp-checkout-page .sp-review-table ul#shipping_method li,
body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

body.sp-checkout-page #order_review ul#shipping_method li > label,
body.sp-checkout-page .sp-review-table ul#shipping_method li > label,
body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li > label {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    column-gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 16px 18px 16px 64px !important;
    overflow: hidden !important;
    white-space: normal !important;
}

body.sp-checkout-page #order_review ul#shipping_method li > label::before,
body.sp-checkout-page .sp-review-table ul#shipping_method li > label::before,
body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li > label::before {
    left: 24px !important;
}

body.sp-checkout-page #order_review ul#shipping_method li > label .sp-rate-label-text,
body.sp-checkout-page .sp-review-table ul#shipping_method li > label .sp-rate-label-text,
body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li > label .sp-rate-label-text {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.3 !important;
}

body.sp-checkout-page #order_review ul#shipping_method li > label .sp-rate-label-price,
body.sp-checkout-page .sp-review-table ul#shipping_method li > label .sp-rate-label-price,
body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li > label .sp-rate-label-price,
body.sp-checkout-page #order_review ul#shipping_method li > label .woocommerce-Price-amount,
body.sp-checkout-page .sp-review-table ul#shipping_method li > label .woocommerce-Price-amount,
body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li > label .woocommerce-Price-amount {
    display: inline-flex !important;
    justify-self: end !important;
    align-items: center !important;
    min-width: max-content !important;
    max-width: max-content !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
    font-weight: 950 !important;
}

@media (max-width: 575px) {
    body.sp-checkout-page #order_review ul#shipping_method li > label,
    body.sp-checkout-page .sp-review-table ul#shipping_method li > label,
    body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li > label {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 7px !important;
        padding: 15px 16px 15px 58px !important;
    }

    body.sp-checkout-page #order_review ul#shipping_method li > label .sp-rate-label-price,
    body.sp-checkout-page .sp-review-table ul#shipping_method li > label .sp-rate-label-price,
    body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li > label .sp-rate-label-price,
    body.sp-checkout-page #order_review ul#shipping_method li > label .woocommerce-Price-amount,
    body.sp-checkout-page .sp-review-table ul#shipping_method li > label .woocommerce-Price-amount,
    body.sp-checkout-page .woocommerce-checkout-review-order-table ul#shipping_method li > label .woocommerce-Price-amount {
        justify-self: start !important;
    }
}


/* v1.2.3: shipping card label containment + order received styling. */
.sp-checkout-form ul#shipping_method label,
.sp-review-table ul#shipping_method label,
.woocommerce-checkout-review-order-table ul#shipping_method label,
#shipping_method label {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sp-checkout-form ul#shipping_method label .sp-rate-label-text,
.sp-review-table ul#shipping_method label .sp-rate-label-text,
.woocommerce-checkout-review-order-table ul#shipping_method label .sp-rate-label-text,
#shipping_method label .sp-rate-label-text {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    padding-right: 8px !important;
}

.sp-checkout-form ul#shipping_method label .sp-rate-label-price,
.sp-review-table ul#shipping_method label .sp-rate-label-price,
.woocommerce-checkout-review-order-table ul#shipping_method label .sp-rate-label-price,
#shipping_method label .sp-rate-label-price {
    justify-self: end !important;
    align-self: center !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    text-align: right !important;
    font-weight: 950 !important;
    color: var(--sp-ink) !important;
}

.sp-checkout-form ul#shipping_method label .sp-rate-label-price .amount,
.sp-review-table ul#shipping_method label .sp-rate-label-price .amount,
.woocommerce-checkout-review-order-table ul#shipping_method label .sp-rate-label-price .amount,
#shipping_method label .sp-rate-label-price .amount {
    margin-left: 0 !important;
}

@media (max-width: 575px) {
    .sp-checkout-form ul#shipping_method label,
    .sp-review-table ul#shipping_method label,
    .woocommerce-checkout-review-order-table ul#shipping_method label,
    #shipping_method label {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 7px !important;
    }

    .sp-checkout-form ul#shipping_method label .sp-rate-label-price,
    .sp-review-table ul#shipping_method label .sp-rate-label-price,
    .woocommerce-checkout-review-order-table ul#shipping_method label .sp-rate-label-price,
    #shipping_method label .sp-rate-label-price {
        justify-self: start !important;
        text-align: left !important;
    }
}

body.sp-order-received-page .woocommerce {
    width: min(1180px, calc(100% - 32px)) !important;
    margin: 32px auto 56px !important;
}

body.sp-order-received-page .woocommerce-order {
    display: block !important;
    max-width: 100% !important;
}

body.sp-order-received-page .woocommerce-notice,
body.sp-order-received-page .woocommerce-order-overview,
body.sp-order-received-page .woocommerce-order-details,
body.sp-order-received-page .woocommerce-customer-details {
    background: rgba(255, 250, 243, .96) !important;
    border: 1px solid rgba(139, 115, 83, .16) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 45px rgba(42, 37, 32, .08) !important;
    padding: 22px !important;
    margin: 0 0 20px !important;
}

body.sp-order-received-page .woocommerce-notice {
    color: var(--sp-rust) !important;
    font-weight: 900 !important;
}

body.sp-order-received-page .woocommerce-order-overview {
    list-style: none !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body.sp-order-received-page .woocommerce-order-overview li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid rgba(42, 37, 32, .10) !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: var(--sp-muted) !important;
    font-size: .86rem !important;
}

body.sp-order-received-page .woocommerce-order-overview strong {
    display: block !important;
    color: var(--sp-ink) !important;
    font-size: 1rem !important;
    margin-top: 4px !important;
}

body.sp-order-received-page .woocommerce h2,
body.sp-order-received-page .woocommerce h3 {
    color: var(--sp-ink) !important;
    font-family: inherit !important;
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
}

body.sp-order-received-page .woocommerce table.shop_table {
    width: 100% !important;
    border: 1px solid rgba(42, 37, 32, .10) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #fff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.sp-order-received-page .woocommerce table.shop_table th,
body.sp-order-received-page .woocommerce table.shop_table td {
    padding: 14px 16px !important;
    border-color: rgba(42, 37, 32, .10) !important;
}

body.sp-order-received-page .woocommerce-customer-details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

body.sp-order-received-page .woocommerce-customer-details > h2 {
    grid-column: 1 / -1 !important;
}

body.sp-order-received-page .woocommerce-column {
    width: auto !important;
    float: none !important;
    max-width: none !important;
}

body.sp-order-received-page .woocommerce-column__title {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

body.sp-order-received-page address {
    width: auto !important;
    max-width: none !important;
    display: block !important;
    padding: 16px !important;
    border: 1px solid rgba(42, 37, 32, .10) !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: var(--sp-ink) !important;
    line-height: 1.65 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 782px) {
    body.sp-order-received-page .woocommerce-order-overview,
    body.sp-order-received-page .woocommerce-customer-details {
        grid-template-columns: 1fr !important;
    }

    body.sp-order-received-page .woocommerce {
        width: calc(100% - 20px) !important;
        margin-top: 18px !important;
    }
}

/* v1.2.4 — Order received / confirmation page polish.
   Broadened selectors because some themes do not preserve the plugin body class on endpoint pages. */
body.sp-order-received-page,
body.sp-thankyou-page,
body.woocommerce-order-received,
body.woocommerce-checkout.woocommerce-order-received {
    background: #faf5ec !important;
}

body.sp-order-received-page .site-main,
body.sp-thankyou-page .site-main,
body.woocommerce-order-received .site-main,
body.sp-order-received-page main,
body.sp-thankyou-page main,
body.woocommerce-order-received main {
    overflow: visible !important;
}

body.sp-order-received-page .woocommerce,
body.sp-thankyou-page .woocommerce,
body.woocommerce-order-received .woocommerce,
body.woocommerce-checkout .woocommerce .woocommerce-order {
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    margin: 34px auto 64px !important;
    color: #2A2520 !important;
    font-family: inherit !important;
}

body.sp-order-received-page .woocommerce-order,
body.sp-thankyou-page .woocommerce-order,
body.woocommerce-order-received .woocommerce-order {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.sp-order-received-page .woocommerce-notice,
body.sp-thankyou-page .woocommerce-notice,
body.woocommerce-order-received .woocommerce-notice {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px 22px !important;
    margin: 0 !important;
    border-radius: 24px !important;
    border: 1px solid rgba(139, 115, 83, .18) !important;
    background: linear-gradient(135deg, #fffaf3, #f3eee5) !important;
    box-shadow: 0 18px 45px rgba(42, 37, 32, .08) !important;
    color: #8A3A2B !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

body.sp-order-received-page .woocommerce-order-overview,
body.sp-thankyou-page .woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.sp-order-received-page .woocommerce-order-overview li,
body.sp-thankyou-page .woocommerce-order-overview li,
body.woocommerce-order-received .woocommerce-order-overview li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 16px !important;
    min-height: 86px !important;
    border: 1px solid rgba(42, 37, 32, .10) !important;
    border-radius: 20px !important;
    background: rgba(255, 250, 243, .96) !important;
    box-shadow: 0 12px 28px rgba(42, 37, 32, .055) !important;
    color: #6E6256 !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}

body.sp-order-received-page .woocommerce-order-overview strong,
body.sp-thankyou-page .woocommerce-order-overview strong,
body.woocommerce-order-received .woocommerce-order-overview strong {
    display: block !important;
    margin-top: 7px !important;
    color: #2A2520 !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    word-break: break-word !important;
}

body.sp-order-received-page .woocommerce-order-details,
body.sp-thankyou-page .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-order-details,
body.sp-order-received-page .woocommerce-customer-details,
body.sp-thankyou-page .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-customer-details {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid rgba(139, 115, 83, .16) !important;
    border-radius: 26px !important;
    background: rgba(255, 250, 243, .96) !important;
    box-shadow: 0 18px 45px rgba(42, 37, 32, .08) !important;
    overflow: hidden !important;
}

body.sp-order-received-page .woocommerce h2,
body.sp-thankyou-page .woocommerce h2,
body.woocommerce-order-received .woocommerce h2,
body.sp-order-received-page .woocommerce h3,
body.sp-thankyou-page .woocommerce h3,
body.woocommerce-order-received .woocommerce h3,
body.sp-order-received-page .woocommerce-column__title,
body.sp-thankyou-page .woocommerce-column__title,
body.woocommerce-order-received .woocommerce-column__title {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    color: #2A2520 !important;
    font-family: inherit !important;
    font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

body.sp-order-received-page .woocommerce table.shop_table,
body.sp-thankyou-page .woocommerce table.shop_table,
body.woocommerce-order-received .woocommerce table.shop_table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 1px solid rgba(42, 37, 32, .10) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #fff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: none !important;
}

body.sp-order-received-page .woocommerce table.shop_table th,
body.sp-thankyou-page .woocommerce table.shop_table th,
body.woocommerce-order-received .woocommerce table.shop_table th,
body.sp-order-received-page .woocommerce table.shop_table td,
body.sp-thankyou-page .woocommerce table.shop_table td,
body.woocommerce-order-received .woocommerce table.shop_table td {
    padding: 16px 18px !important;
    border-color: rgba(42, 37, 32, .10) !important;
    color: #2A2520 !important;
    vertical-align: middle !important;
}

body.sp-order-received-page .woocommerce table.shop_table tfoot th,
body.sp-thankyou-page .woocommerce table.shop_table tfoot th,
body.woocommerce-order-received .woocommerce table.shop_table tfoot th,
body.sp-order-received-page .woocommerce table.shop_table tfoot td,
body.sp-thankyou-page .woocommerce table.shop_table tfoot td,
body.woocommerce-order-received .woocommerce table.shop_table tfoot td {
    background: #f3eee5 !important;
    font-weight: 900 !important;
}

body.sp-order-received-page .woocommerce-customer-details,
body.sp-thankyou-page .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-customer-details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

body.sp-order-received-page .woocommerce-customer-details > h2,
body.sp-thankyou-page .woocommerce-customer-details > h2,
body.woocommerce-order-received .woocommerce-customer-details > h2 {
    grid-column: 1 / -1 !important;
}

body.sp-order-received-page .woocommerce-columns,
body.sp-thankyou-page .woocommerce-columns,
body.woocommerce-order-received .woocommerce-columns,
body.sp-order-received-page .woocommerce-columns--addresses,
body.sp-thankyou-page .woocommerce-columns--addresses,
body.woocommerce-order-received .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.sp-order-received-page .woocommerce-column,
body.sp-thankyou-page .woocommerce-column,
body.woocommerce-order-received .woocommerce-column,
body.sp-order-received-page .woocommerce-column--billing-address,
body.sp-thankyou-page .woocommerce-column--billing-address,
body.woocommerce-order-received .woocommerce-column--billing-address,
body.sp-order-received-page .woocommerce-column--shipping-address,
body.sp-thankyou-page .woocommerce-column--shipping-address,
body.woocommerce-order-received .woocommerce-column--shipping-address {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid rgba(42, 37, 32, .10) !important;
    border-radius: 22px !important;
    background: #fff !important;
}

body.sp-order-received-page address,
body.sp-thankyou-page address,
body.woocommerce-order-received address {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #2A2520 !important;
    font-style: normal !important;
    font-size: .96rem !important;
    line-height: 1.75 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 900px) {
    body.sp-order-received-page .woocommerce-order-overview,
    body.sp-thankyou-page .woocommerce-order-overview,
    body.woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    body.sp-order-received-page .woocommerce,
    body.sp-thankyou-page .woocommerce,
    body.woocommerce-order-received .woocommerce {
        width: calc(100% - 20px) !important;
        margin-top: 18px !important;
    }

    body.sp-order-received-page .woocommerce-order-overview,
    body.sp-thankyou-page .woocommerce-order-overview,
    body.woocommerce-order-received .woocommerce-order-overview,
    body.sp-order-received-page .woocommerce-customer-details,
    body.sp-thankyou-page .woocommerce-customer-details,
    body.woocommerce-order-received .woocommerce-customer-details,
    body.sp-order-received-page .woocommerce-columns,
    body.sp-thankyou-page .woocommerce-columns,
    body.woocommerce-order-received .woocommerce-columns,
    body.sp-order-received-page .woocommerce-columns--addresses,
    body.sp-thankyou-page .woocommerce-columns--addresses,
    body.woocommerce-order-received .woocommerce-columns--addresses {
        grid-template-columns: 1fr !important;
    }

    body.sp-order-received-page .woocommerce-order-details,
    body.sp-thankyou-page .woocommerce-order-details,
    body.woocommerce-order-received .woocommerce-order-details,
    body.sp-order-received-page .woocommerce-customer-details,
    body.sp-thankyou-page .woocommerce-customer-details,
    body.woocommerce-order-received .woocommerce-customer-details {
        padding: 18px !important;
        border-radius: 22px !important;
    }
}

/* --------------------------------------------------------------------------
   custom thank-you page template
   -------------------------------------------------------------------------- */
body.woocommerce-order-received,
body.sp-order-received-page,
body.sp-thankyou-page {
    background: #f7f0e6 !important;
}

body.woocommerce-order-received .entry-content,
body.woocommerce-order-received .woocommerce,
body.sp-thankyou-page .entry-content,
body.sp-thankyou-page .woocommerce {
    width: 100% !important;
    max-width: none !important;
}

.sp-thankyou-wrap {
    --sp-clay: #8B7353;
    --sp-cream: #F3EEE5;
    --sp-ink: #2A2520;
    --sp-muted: #6E6256;
    --sp-rust: #8A3A2B;
    --sp-line: rgba(42, 37, 32, .12);
    width: min(1160px, calc(100% - 32px));
    margin: 34px auto 70px;
    color: var(--sp-ink);
}

.sp-thankyou-wrap *,
.sp-thankyou-wrap *::before,
.sp-thankyou-wrap *::after {
    box-sizing: border-box;
}

.sp-thankyou-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(139, 115, 83, .18);
    border-radius: 34px;
    background:
        radial-gradient(circle at 10% 20%, rgba(144, 194, 231, .18), transparent 30%),
        linear-gradient(135deg, #fffaf3 0%, #f3eee5 55%, #eadfce 100%);
    box-shadow: 0 24px 70px rgba(42, 37, 32, .10);
    overflow: hidden;
    position: relative;
}

.sp-thankyou-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(139, 115, 83, .10);
    pointer-events: none;
}

.sp-thankyou-eyebrow,
.sp-thankyou-card-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 7px 11px;
    border: 1px solid rgba(139, 115, 83, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--sp-rust);
    font-size: .76rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-thankyou-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--sp-ink);
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.045em;
}

.sp-thankyou-hero p {
    max-width: 690px;
    margin: 16px 0 0;
    color: var(--sp-muted);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.7;
}

.sp-thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.sp-thankyou-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--sp-rust);
    border-radius: 999px;
    background: var(--sp-rust);
    color: #fff !important;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(138, 58, 43, .18);
}

.sp-thankyou-btn--ghost {
    background: rgba(255, 255, 255, .72);
    color: var(--sp-rust) !important;
    box-shadow: none;
}

.sp-thankyou-hero__badge {
    display: grid;
    place-items: center;
    width: clamp(86px, 12vw, 132px);
    height: clamp(86px, 12vw, 132px);
    border-radius: 34px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(139, 115, 83, .20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 22px 42px rgba(42,37,32,.10);
    color: var(--sp-rust);
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    font-weight: 950;
    position: relative;
    z-index: 1;
}

.sp-thankyou-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.sp-thankyou-meta-card,
.sp-thankyou-card,
.sp-thankyou-address-card {
    border: 1px solid rgba(139, 115, 83, .16);
    border-radius: 24px;
    background: rgba(255, 250, 243, .96);
    box-shadow: 0 16px 42px rgba(42, 37, 32, .07);
}

.sp-thankyou-meta-card {
    min-height: 92px;
    padding: 16px;
}

.sp-thankyou-meta-card span {
    display: block;
    margin-bottom: 7px;
    color: var(--sp-muted);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.sp-thankyou-meta-card strong {
    display: block;
    color: var(--sp-ink);
    font-size: .98rem;
    font-weight: 950;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sp-thankyou-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 18px;
    align-items: start;
}

.sp-thankyou-card {
    padding: 22px;
}

.sp-thankyou-card-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sp-thankyou-card h2,
.sp-thankyou-address-card h2,
.sp-thankyou-item h3 {
    color: var(--sp-ink) !important;
    font-family: inherit !important;
    letter-spacing: -.025em;
}

.sp-thankyou-card h2,
.sp-thankyou-address-card h2 {
    margin: 0 0 14px !important;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem) !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
}

.sp-thankyou-items {
    border: 1px solid var(--sp-line);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

.sp-thankyou-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(42, 37, 32, .09);
}

.sp-thankyou-item:last-child {
    border-bottom: 0;
}

.sp-thankyou-item-media img,
.sp-thankyou-item-img {
    display: block;
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(42, 37, 32, .08);
    background: var(--sp-cream);
}

.sp-thankyou-item h3 {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    line-height: 1.25 !important;
}

.sp-thankyou-item h3 a {
    color: var(--sp-ink) !important;
    text-decoration: none !important;
}

.sp-thankyou-item-main > span,
.sp-thankyou-item-main .wc-item-meta,
.sp-thankyou-item-main .wc-item-meta p {
    color: var(--sp-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.sp-thankyou-item-total {
    color: var(--sp-ink);
    font-weight: 950;
    white-space: nowrap;
}

.sp-thankyou-totals {
    margin-top: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
}

.sp-thankyou-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(42, 37, 32, .08);
    color: var(--sp-muted);
    font-size: .94rem;
    font-weight: 800;
}

.sp-thankyou-total-row:last-child {
    border-bottom: 0;
}

.sp-thankyou-total-row strong {
    color: var(--sp-ink);
    font-weight: 950;
    text-align: right;
}

.sp-thankyou-total-row--order_total,
.sp-thankyou-total-row--order-total {
    background: var(--sp-cream);
    color: var(--sp-ink);
    font-size: 1.03rem;
}

.sp-thankyou-side {
    display: grid;
    gap: 18px;
}

.sp-thankyou-next-card {
    background: linear-gradient(180deg, #fffaf3 0%, #f3eee5 100%);
}

.sp-thankyou-steps {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.sp-thankyou-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.sp-thankyou-step span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--sp-rust);
    color: #fff;
    font-weight: 950;
}

.sp-thankyou-step p,
.sp-thankyou-help-card p,
.sp-thankyou-note-card p {
    margin: 0;
    color: var(--sp-muted);
    font-size: .96rem;
    line-height: 1.65;
}

.sp-thankyou-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.sp-thankyou-address-card {
    padding: 22px;
}

.sp-thankyou-address-card address {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--sp-ink) !important;
    font-style: normal !important;
    font-size: .97rem !important;
    line-height: 1.75 !important;
    overflow-wrap: anywhere;
}

.sp-thankyou-address-card address a {
    color: var(--sp-rust) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.sp-thankyou-hooks {
    margin-top: 18px;
}

.sp-thankyou-hooks:empty {
    display: none;
}

.sp-thankyou-hooks .woocommerce-order-details,
.sp-thankyou-hooks .woocommerce-customer-details,
.sp-thankyou-hooks .woocommerce-order-overview,
.sp-thankyou-hooks .woocommerce-notice {
    display: none !important;
}

@media (max-width: 1020px) {
    .sp-thankyou-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sp-thankyou-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sp-thankyou-wrap {
        width: calc(100% - 20px);
        margin-top: 18px;
    }
    .sp-thankyou-hero {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }
    .sp-thankyou-hero__badge {
        display: none;
    }
    .sp-thankyou-meta,
    .sp-thankyou-addresses {
        grid-template-columns: 1fr;
    }
    .sp-thankyou-card,
    .sp-thankyou-address-card {
        padding: 18px;
        border-radius: 22px;
    }
    .sp-thankyou-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }
    .sp-thankyou-item-total {
        grid-column: 2;
        justify-self: start;
    }
    .sp-thankyou-item-media img,
    .sp-thankyou-item-img {
        width: 58px !important;
        height: 58px !important;
        border-radius: 14px;
    }
}


/* v1.4.0: real delivery-method placement + flattened payment UI. */
body.sp-checkout-page .sp-delivery-card {
    text-align: left !important;
}

body.sp-checkout-page .sp-section-head--delivery {
    align-items: flex-start !important;
    text-align: left !important;
}

body.sp-checkout-page .sp-section-head--delivery h2,
body.sp-checkout-page .sp-section-head--delivery p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.sp-checkout-page .sp-delivery-methods-body {
    margin-top: 18px !important;
}

body.sp-checkout-page .sp-delivery-shipping-table,
body.sp-checkout-page .sp-delivery-shipping-table tbody,
body.sp-checkout-page .sp-delivery-shipping-table tr,
body.sp-checkout-page .sp-delivery-shipping-table th,
body.sp-checkout-page .sp-delivery-shipping-table td {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body.sp-checkout-page .sp-delivery-shipping-table th {
    display: none !important;
}

body.sp-checkout-page .sp-delivery-shipping-table td::before,
body.sp-checkout-page .sp-delivery-shipping-table td::after {
    display: none !important;
    content: none !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method li {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method li > label {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 16px 20px 16px 72px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(42, 37, 32, .13) !important;
    border-radius: 18px !important;
    background: rgba(255, 250, 243, .72) !important;
    box-shadow: none !important;
    overflow: visible !important;
    color: var(--sp-ink) !important;
    font-weight: 850 !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    white-space: normal !important;
    transform: none !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method li > label::before {
    content: '' !important;
    position: absolute !important;
    left: 26px !important;
    top: 50% !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    border: 2px solid rgba(139, 115, 83, .72) !important;
    background: #fff !important;
    transform: translateY(-50%) !important;
    box-shadow: inset 0 0 0 5px #fff !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method input[type="radio"]:checked + label,
body.sp-checkout-page .sp-delivery-card ul#shipping_method li.sp-shipping-selected > label {
    border-color: rgba(139, 115, 83, .48) !important;
    background: rgba(243, 238, 229, .68) !important;
    box-shadow: 0 0 0 3px rgba(139, 115, 83, .10) !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method input[type="radio"]:checked + label::before,
body.sp-checkout-page .sp-delivery-card ul#shipping_method li.sp-shipping-selected > label::before {
    background: var(--sp-clay) !important;
    border-color: var(--sp-clay) !important;
}

body.sp-checkout-page .sp-delivery-card .sp-rate-label-text {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: normal !important;
    padding-right: 12px !important;
}

body.sp-checkout-page .sp-delivery-card .sp-rate-label-price,
body.sp-checkout-page .sp-delivery-card .woocommerce-Price-amount,
body.sp-checkout-page .sp-delivery-card .amount {
    justify-self: end !important;
    align-self: center !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    margin-left: 0 !important;
    color: var(--sp-ink) !important;
    font-weight: 950 !important;
}

body.sp-checkout-page .sp-delivery-card .woocommerce-shipping-destination,
body.sp-checkout-page .sp-delivery-card .woocommerce-shipping-calculator {
    margin-top: 12px !important;
    color: var(--sp-muted) !important;
}

body.sp-checkout-page .sp-delivery-empty {
    border: 1px solid rgba(42, 37, 32, .10) !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    background: rgba(255, 250, 243, .72) !important;
    color: var(--sp-muted) !important;
}

/* Keep the old order summary from showing shipping selectors if another template re-adds them. */
body.sp-checkout-page #order_review tr.woocommerce-shipping-totals,
body.sp-checkout-page #order_review tr.shipping {
    display: none !important;
}

/* Flatten payment containers added by this plugin. Stripe's own iframe/Payment Element internals are left intact. */
body.sp-checkout-page #payment.sp-payment-box,
body.sp-checkout-page .woocommerce-checkout-payment.sp-payment-box {
    margin-top: 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.sp-checkout-page .sp-payment-methods,
body.sp-checkout-page #payment ul.payment_methods,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.sp-checkout-page .sp-payment-methods li.wc_payment_method,
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method {
    padding: 0 !important;
    margin: 0 0 14px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label,
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 0 10px !important;
    margin: 0 !important;
    color: var(--sp-ink) !important;
    font-weight: 850 !important;
}

body.sp-checkout-page .sp-payment-methods .payment_box,
body.sp-checkout-page #payment div.payment_box,
body.sp-checkout-page .woocommerce-checkout-payment div.payment_box {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--sp-ink) !important;
}

body.sp-checkout-page #payment div.payment_box::before,
body.sp-checkout-page .woocommerce-checkout-payment div.payment_box::before {
    display: none !important;
    content: none !important;
}

body.sp-checkout-page #payment .wc-stripe-upe-element,
body.sp-checkout-page #payment .wc-stripe-elements-field,
body.sp-checkout-page #payment .stripe-source-errors,
body.sp-checkout-page #payment .wc-stripe-upe-form,
body.sp-checkout-page #payment .wc-stripe-upe-form .form-row {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 575px) {
    body.sp-checkout-page .sp-delivery-card ul#shipping_method li > label {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 7px !important;
        padding: 15px 16px 15px 62px !important;
    }

    body.sp-checkout-page .sp-delivery-card ul#shipping_method li > label::before {
        left: 24px !important;
    }

    body.sp-checkout-page .sp-delivery-card .sp-rate-label-price,
    body.sp-checkout-page .sp-delivery-card .woocommerce-Price-amount,
    body.sp-checkout-page .sp-delivery-card .amount {
        justify-self: start !important;
    }
}


/* v1.4.1: standardized checkout section number/title alignment. */
body.sp-checkout-page .sp-section-head,
body.sp-checkout-page .sp-section-head--delivery,
body.sp-checkout-page .sp-shipping-toggle,
body.sp-checkout-page .sp-coupon-toggle {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    column-gap: 18px !important;
    align-items: center !important;
    text-align: left !important;
}

body.sp-checkout-page .sp-section-head,
body.sp-checkout-page .sp-section-head--delivery {
    margin: 0 0 22px !important;
}

body.sp-checkout-page .sp-section-icon,
body.sp-checkout-page .sp-coupon-toggle .sp-section-icon,
body.sp-checkout-page .sp-section-icon--coupon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

body.sp-checkout-page .sp-section-head__content,
body.sp-checkout-page .sp-section-head > div,
body.sp-checkout-page .sp-shipping-toggle-text,
body.sp-checkout-page .sp-coupon-toggle-text {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
    justify-self: stretch !important;
}

body.sp-checkout-page .sp-section-head h2,
body.sp-checkout-page .sp-section-head--delivery h2,
body.sp-checkout-page .sp-shipping-title,
body.sp-checkout-page .sp-coupon-title {
    display: block !important;
    margin: 0 0 6px !important;
    color: var(--sp-ink) !important;
    font-size: clamp(1.32rem, 2vw, 1.62rem) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    text-align: left !important;
}

body.sp-checkout-page .sp-section-head p,
body.sp-checkout-page .sp-section-head--delivery p,
body.sp-checkout-page .sp-shipping-subtitle,
body.sp-checkout-page .sp-coupon-subtitle {
    display: block !important;
    margin: 0 !important;
    color: var(--sp-muted) !important;
    font-size: .98rem !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    text-align: left !important;
    max-width: 62ch !important;
}

body.sp-checkout-page .sp-coupon-chevron {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
}

body.sp-checkout-page .sp-shipping-toggle,
body.sp-checkout-page .sp-coupon-toggle {
    padding: 24px 28px !important;
}

body.sp-checkout-page .sp-delivery-card .sp-section-head--delivery {
    justify-content: stretch !important;
}

body.sp-checkout-page .sp-order-card .sp-section-head {
    align-items: center !important;
}

@media (max-width: 575px) {
    body.sp-checkout-page .sp-section-head,
    body.sp-checkout-page .sp-section-head--delivery,
    body.sp-checkout-page .sp-shipping-toggle,
    body.sp-checkout-page .sp-coupon-toggle {
        grid-template-columns: 42px minmax(0, 1fr) auto !important;
        column-gap: 12px !important;
    }

    body.sp-checkout-page .sp-section-icon,
    body.sp-checkout-page .sp-coupon-toggle .sp-section-icon,
    body.sp-checkout-page .sp-section-icon--coupon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    body.sp-checkout-page .sp-section-head h2,
    body.sp-checkout-page .sp-section-head--delivery h2,
    body.sp-checkout-page .sp-shipping-title,
    body.sp-checkout-page .sp-coupon-title {
        font-size: 1.2rem !important;
    }

    body.sp-checkout-page .sp-section-head p,
    body.sp-checkout-page .sp-section-head--delivery p,
    body.sp-checkout-page .sp-shipping-subtitle,
    body.sp-checkout-page .sp-coupon-subtitle {
        font-size: .9rem !important;
    }

    body.sp-checkout-page .sp-shipping-toggle,
    body.sp-checkout-page .sp-coupon-toggle {
        padding: 18px !important;
    }
}


/* =========================================================
   Craft Checkout checkout: standardize payment gateway radios
   Matches the Delivery method selector circles.
========================================================= */
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method {
    position: relative !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input.input-radio,
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input[type="radio"],
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input.input-radio,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input[type="radio"],
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input.input-radio,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input[type="radio"] {
    position: absolute !important;
    left: 0 !important;
    top: 15px !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label {
    position: relative !important;
    min-height: 50px !important;
    padding: 12px 0 12px 36px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--sp-ink) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    cursor: pointer !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label::before,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label::before,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    border: 2px solid rgba(139, 115, 83, .72) !important;
    background: #fff !important;
    transform: translateY(-50%) !important;
    box-shadow: inset 0 0 0 5px #fff !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input.input-radio:checked + label::before,
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked + label::before,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input.input-radio:checked + label::before,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked + label::before,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input.input-radio:checked + label::before,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input[type="radio"]:checked + label::before {
    background: var(--sp-clay) !important;
    border-color: var(--sp-clay) !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input.input-radio:focus-visible + label::before,
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input[type="radio"]:focus-visible + label::before,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input.input-radio:focus-visible + label::before,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input[type="radio"]:focus-visible + label::before,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input.input-radio:focus-visible + label::before,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input[type="radio"]:focus-visible + label::before {
    outline: 3px solid rgba(139, 115, 83, .18) !important;
    outline-offset: 3px !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method.payment_method_stripe > label,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method.payment_method_stripe > label,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method.payment_method_stripe > label {
    margin-bottom: 6px !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method .payment_box,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method .payment_box,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method .payment_box {
    padding-left: 36px !important;
}

@media (max-width: 575px) {
    body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label,
    body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label,
    body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label {
        padding-left: 34px !important;
    }

    body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method .payment_box,
    body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method .payment_box,
    body.sp-checkout-page .sp-payment-methods li.wc_payment_method .payment_box {
        padding-left: 0 !important;
    }
}

/* =========================================================
   v1.4.3: clearer payment accordion treatment
   Goal: one clean accordion shell, stronger active method,
   less visual nesting, and mobile-friendly spacing.
========================================================= */
body.sp-checkout-page #payment.sp-payment-box,
body.sp-checkout-page .woocommerce-checkout-payment.sp-payment-box {
    margin-top: 18px !important;
}

body.sp-checkout-page #payment ul.payment_methods,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods,
body.sp-checkout-page .sp-payment-methods {
    overflow: hidden !important;
    background: rgba(255, 250, 243, .74) !important;
    border: 1px solid rgba(139, 115, 83, .22) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(42, 37, 32, .055) !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method + li.wc_payment_method,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method + li.wc_payment_method,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method + li.wc_payment_method {
    border-top: 1px solid rgba(139, 115, 83, .16) !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label {
    min-height: 62px !important;
    padding: 16px 18px 16px 58px !important;
    background: rgba(243, 238, 229, .36) !important;
    transition: background .18s ease, color .18s ease !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label::before,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label::before,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label::before {
    left: 22px !important;
    width: 22px !important;
    height: 22px !important;
    border-width: 2px !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input.input-radio:checked + label,
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked + label,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input.input-radio:checked + label,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked + label,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input.input-radio:checked + label,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input[type="radio"]:checked + label {
    background: linear-gradient(180deg, rgba(255, 250, 243, .96), rgba(243, 238, 229, .64)) !important;
    color: var(--sp-rust) !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method .payment_box,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method .payment_box,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method .payment_box {
    margin: 0 !important;
    padding: 0 22px 22px 22px !important;
    background: linear-gradient(180deg, rgba(255, 250, 243, .96), rgba(243, 238, 229, .38)) !important;
    border-top: 1px solid rgba(139, 115, 83, .13) !important;
}

body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method .payment_box > p:first-child,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method .payment_box > p:first-child,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method .payment_box > p:first-child {
    margin-top: 14px !important;
}

body.sp-checkout-page #payment .wc-stripe-upe-element,
body.sp-checkout-page #payment .wc-stripe-upe-form,
body.sp-checkout-page #payment .wc-stripe-elements-field,
body.sp-checkout-page #payment .stripe-card-group,
body.sp-checkout-page #payment .StripeElement,
body.sp-checkout-page #payment .__PrivateStripeElement {
    border-radius: 16px !important;
}

body.sp-checkout-page #payment .wc-stripe-upe-element {
    margin-top: 14px !important;
}

body.sp-checkout-page #payment .wc-stripe-upe-element iframe,
body.sp-checkout-page #payment .__PrivateStripeElement iframe {
    border-radius: 16px !important;
}

body.sp-checkout-page #payment .sp-place-order-row {
    margin-top: 18px !important;
}

@media (max-width: 575px) {
    body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label,
    body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label,
    body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label {
        min-height: 58px !important;
        padding: 14px 14px 14px 52px !important;
    }

    body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label::before,
    body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label::before,
    body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label::before {
        left: 18px !important;
    }

    body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method .payment_box,
    body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method .payment_box,
    body.sp-checkout-page .sp-payment-methods li.wc_payment_method .payment_box {
        padding: 0 14px 16px 14px !important;
    }
}

/* =========================================================
   v1.4.4: payment accordion polish
========================================================= */
body.sp-checkout-page .sp-order-card #payment.sp-payment-box { margin-top: 16px !important; }
body.sp-checkout-page .sp-payment-box::before { content: 'Secure payment'; display: block; margin: 0 0 10px; color: var(--sp-rust); font-size: .78rem; font-weight: 900; letter-spacing: .075em; text-transform: uppercase; }
body.sp-checkout-page #payment ul.payment_methods, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods, body.sp-checkout-page .sp-payment-methods { display: grid !important; gap: 12px !important; padding: 0 !important; overflow: visible !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method, body.sp-checkout-page .sp-payment-methods li.wc_payment_method { position: relative !important; overflow: hidden !important; background: linear-gradient(180deg, rgba(255,250,243,.96), rgba(243,238,229,.54)) !important; border: 1px solid rgba(139,115,83,.20) !important; border-radius: 20px !important; box-shadow: 0 12px 28px rgba(42,37,32,.052) !important; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method + li.wc_payment_method, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method + li.wc_payment_method, body.sp-checkout-page .sp-payment-methods li.wc_payment_method + li.wc_payment_method { border-top: 1px solid rgba(139,115,83,.20) !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method:hover, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method:hover, body.sp-checkout-page .sp-payment-methods li.wc_payment_method:hover { border-color: rgba(139,115,83,.36) !important; box-shadow: 0 16px 36px rgba(42,37,32,.07) !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method.sp-payment-method-selected, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method.sp-payment-method-selected, body.sp-checkout-page .sp-payment-methods li.wc_payment_method.sp-payment-method-selected { background: linear-gradient(180deg, #fffaf3 0%, #fbf7f0 54%, rgba(243,238,229,.76) 100%) !important; border-color: rgba(139,115,83,.44) !important; box-shadow: 0 18px 42px rgba(42,37,32,.085) !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method.sp-payment-method-selected::before, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method.sp-payment-method-selected::before, body.sp-checkout-page .sp-payment-methods li.wc_payment_method.sp-payment-method-selected::before { content: '' !important; position: absolute !important; inset: 0 auto 0 0 !important; width: 5px !important; background: linear-gradient(180deg, var(--sp-rust), var(--sp-clay)) !important; pointer-events: none !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label, body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label { min-height: 68px !important; padding: 17px 18px 17px 62px !important; background: transparent !important; color: var(--sp-ink) !important; font-size: 1.02rem !important; font-weight: 900 !important; letter-spacing: -.01em !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label::before, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label::before, body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label::before { left: 24px !important; width: 22px !important; height: 22px !important; background: #fffaf3 !important; border: 2px solid rgba(139,115,83,.72) !important; box-shadow: inset 0 0 0 5px #fffaf3, 0 3px 10px rgba(42,37,32,.08) !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input.input-radio:checked + label::before, body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked + label::before, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input.input-radio:checked + label::before, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked + label::before, body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input.input-radio:checked + label::before, body.sp-checkout-page .sp-payment-methods li.wc_payment_method > input[type="radio"]:checked + label::before { background: var(--sp-clay) !important; border-color: var(--sp-clay) !important; box-shadow: inset 0 0 0 5px #fffaf3, 0 3px 10px rgba(42,37,32,.08) !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method.sp-payment-method-selected > label, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method.sp-payment-method-selected > label, body.sp-checkout-page .sp-payment-methods li.wc_payment_method.sp-payment-method-selected > label { color: var(--sp-rust) !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method .payment_box, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method .payment_box, body.sp-checkout-page .sp-payment-methods li.wc_payment_method .payment_box { margin: 0 !important; padding: 0 22px 22px !important; background: transparent !important; border-top: 1px solid rgba(139,115,83,.13) !important; }
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method .payment_box::before, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method .payment_box::before, body.sp-checkout-page .sp-payment-methods li.wc_payment_method .payment_box::before { display: none !important; }
body.sp-checkout-page #payment .wc-stripe-upe-element, body.sp-checkout-page #payment .wc-stripe-upe-form, body.sp-checkout-page #payment .wc-stripe-elements-field, body.sp-checkout-page #payment .stripe-card-group, body.sp-checkout-page #payment .StripeElement, body.sp-checkout-page #payment .__PrivateStripeElement { width: 100% !important; margin-top: 14px !important; border-radius: 18px !important; background: #fffaf3 !important; }
body.sp-checkout-page #payment .wc-stripe-upe-element, body.sp-checkout-page #payment .wc-stripe-elements-field, body.sp-checkout-page #payment .StripeElement { border: 1px solid rgba(139,115,83,.16) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 24px rgba(42,37,32,.045) !important; }
body.sp-checkout-page #payment .wc-stripe-upe-element iframe, body.sp-checkout-page #payment .__PrivateStripeElement iframe { border-radius: 18px !important; }
body.sp-checkout-page .sp-payment-helper { display: flex !important; align-items: center !important; gap: 9px !important; margin: -2px 0 12px !important; padding: 10px 12px !important; color: var(--sp-muted) !important; background: rgba(255,255,255,.62) !important; border: 1px solid rgba(139,115,83,.13) !important; border-radius: 14px !important; font-size: .88rem !important; font-weight: 700 !important; line-height: 1.35 !important; }
body.sp-checkout-page .sp-payment-helper::before { content: '' !important; flex: 0 0 8px !important; width: 8px !important; height: 8px !important; border-radius: 999px !important; background: var(--sp-clay) !important; box-shadow: 0 0 0 4px rgba(139,115,83,.12) !important; }
body.sp-checkout-page #payment .woocommerce-terms-and-conditions-wrapper { margin-top: 18px !important; }
@media (max-width: 575px) {
    body.sp-checkout-page .sp-payment-box::before { margin-bottom: 8px !important; font-size: .72rem !important; }
    body.sp-checkout-page #payment ul.payment_methods, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods, body.sp-checkout-page .sp-payment-methods { gap: 10px !important; }
    body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label, body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label { min-height: 62px !important; padding: 15px 14px 15px 54px !important; font-size: .98rem !important; }
    body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label::before, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label::before, body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label::before { left: 18px !important; }
    body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method .payment_box, body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method .payment_box, body.sp-checkout-page .sp-payment-methods li.wc_payment_method .payment_box { padding: 0 14px 16px !important; }
    body.sp-checkout-page .sp-payment-helper { font-size: .82rem !important; padding: 9px 10px !important; }
}

/* v1.4.5: compact order coupon placement */
body.sp-checkout-page .sp-order-card .sp-order-coupon {
    margin: 16px 0 18px !important;
    padding: 0 !important;
    border: 1px solid rgba(139, 115, 83, .18) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255, 250, 243, .9), rgba(243, 238, 229, .52)) !important;
    box-shadow: 0 10px 24px rgba(42, 37, 32, .045) !important;
    overflow: hidden !important;
}

body.sp-checkout-page .sp-order-coupon-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 14px !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--sp-ink) !important;
    text-align: left !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.sp-checkout-page .sp-order-coupon-toggle:hover,
body.sp-checkout-page .sp-order-coupon-toggle:focus-visible {
    background: rgba(255, 255, 255, .52) !important;
}

body.sp-checkout-page .sp-order-coupon-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 250, 243, .9) !important;
    color: var(--sp-rust) !important;
    border: 1px solid rgba(139, 115, 83, .22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74), 0 6px 14px rgba(42, 37, 32, .05) !important;
}

body.sp-checkout-page .sp-order-coupon-icon svg {
    width: 17px !important;
    height: 17px !important;
    display: block !important;
}

body.sp-checkout-page .sp-order-coupon-title {
    display: block !important;
    margin: 0 !important;
    color: var(--sp-ink) !important;
    font-size: .98rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -.01em !important;
}

body.sp-checkout-page .sp-order-coupon-subtitle {
    display: block !important;
    margin-top: 2px !important;
    color: var(--sp-muted) !important;
    font-size: .82rem !important;
    line-height: 1.32 !important;
    font-weight: 600 !important;
}

body.sp-checkout-page .sp-order-coupon-chevron {
    width: 10px !important;
    height: 10px !important;
    border-right: 2px solid rgba(139, 115, 83, .88) !important;
    border-bottom: 2px solid rgba(139, 115, 83, .88) !important;
    transform: rotate(45deg) !important;
    transition: transform .18s ease !important;
}

body.sp-checkout-page .sp-order-coupon--open .sp-order-coupon-chevron {
    transform: rotate(225deg) !important;
}

body.sp-checkout-page .sp-order-coupon-panel {
    padding: 0 14px 14px !important;
    border-top: 1px solid rgba(42, 37, 32, .08) !important;
}

body.sp-checkout-page .sp-order-coupon-panel[hidden] {
    display: none !important;
}

body.sp-checkout-page .sp-order-coupon-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding-top: 12px !important;
}

body.sp-checkout-page .sp-order-coupon-input {
    min-height: 44px !important;
    width: 100% !important;
    border: 1px solid rgba(42, 37, 32, .14) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--sp-ink) !important;
    padding: 10px 12px !important;
    font-size: .95rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78) !important;
}

body.sp-checkout-page .sp-order-coupon-input:focus {
    border-color: rgba(139, 115, 83, .58) !important;
    box-shadow: 0 0 0 4px rgba(139, 115, 83, .12) !important;
    outline: 0 !important;
}

body.sp-checkout-page .sp-order-coupon-apply {
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    background: var(--sp-rust) !important;
    color: #fff !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 22px rgba(138, 58, 43, .18) !important;
}

body.sp-checkout-page .sp-order-coupon-apply:hover,
body.sp-checkout-page .sp-order-coupon-apply:focus {
    background: var(--sp-clay) !important;
    color: #fff !important;
}

body.sp-checkout-page .sp-order-coupon-apply[disabled] {
    opacity: .7 !important;
    cursor: wait !important;
}

body.sp-checkout-page .sp-order-coupon-message {
    margin-top: 9px !important;
    font-size: .84rem !important;
    line-height: 1.35 !important;
    color: var(--sp-muted) !important;
}

body.sp-checkout-page .sp-order-coupon-message .woocommerce-error,
body.sp-checkout-page .sp-order-coupon-message .woocommerce-message,
body.sp-checkout-page .sp-order-coupon-message .woocommerce-info {
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: .84rem !important;
}

body.sp-checkout-page .sp-checkout-form > .sp-coupon-card,
body.sp-checkout-page .sp-checkout-shell > .sp-coupon-card {
    display: none !important;
}

@media (max-width: 575px) {
    body.sp-checkout-page .sp-order-card .sp-order-coupon {
        margin: 14px 0 16px !important;
        border-radius: 16px !important;
    }

    body.sp-checkout-page .sp-order-coupon-toggle {
        grid-template-columns: 32px minmax(0, 1fr) 12px !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    body.sp-checkout-page .sp-order-coupon-icon {
        width: 32px !important;
        height: 32px !important;
    }

    body.sp-checkout-page .sp-order-coupon-row {
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-order-coupon-apply {
        width: 100% !important;
    }
}

/* v1.4.6: Mobile checkout order fix. Keep steps in numerical order on stacked layouts. */
@media (max-width: 991px) {
    body.sp-checkout-page .sp-checkout-main {
        order: 1 !important;
    }

    body.sp-checkout-page .sp-checkout-sidebar {
        order: 2 !important;
    }
}


/* v1.4.8: Standardized checkout typography with softer weights.
   Keeps one type system, but reduces the heavy/bold feeling across checkout. */
body.sp-checkout-page {
    --sp-font-sans: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --sp-type-xs: .78rem;
    --sp-type-sm: .9rem;
    --sp-type-base: 1rem;
    --sp-type-md: 1.05rem;
    --sp-type-lg: 1.18rem;
    --sp-type-xl: clamp(1.28rem, 1.65vw, 1.45rem);
    --sp-type-hero: clamp(1.9rem, 3.6vw, 2.8rem);
    --sp-weight-regular: 400;
    --sp-weight-medium: 500;
    --sp-weight-bold: 650;
    --sp-weight-heavy: 700;
    font-family: var(--sp-font-sans) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
}

body.sp-checkout-page .sp-checkout-shell,
body.sp-checkout-page .sp-checkout-form,
body.sp-checkout-page .sp-checkout-card,
body.sp-checkout-page .sp-review-order,
body.sp-checkout-page .sp-payment-box,
body.sp-checkout-page .sp-delivery-card,
body.sp-checkout-page .woocommerce,
body.sp-checkout-page .woocommerce-checkout,
body.sp-checkout-page .woocommerce-checkout-review-order,
body.sp-checkout-page input,
body.sp-checkout-page select,
body.sp-checkout-page textarea,
body.sp-checkout-page button,
body.sp-checkout-page label,
body.sp-checkout-page table,
body.sp-checkout-page th,
body.sp-checkout-page td,
body.sp-checkout-page p,
body.sp-checkout-page span,
body.sp-checkout-page strong,
body.sp-checkout-page a {
    font-family: var(--sp-font-sans) !important;
}

body.sp-checkout-page .sp-checkout-hero h1,
body.sp-checkout-page .sp-section-head h1,
body.sp-checkout-page .sp-section-head h2,
body.sp-checkout-page .sp-section-head h3,
body.sp-checkout-page .sp-shipping-title,
body.sp-checkout-page .sp-coupon-title,
body.sp-checkout-page .sp-order-coupon-title,
body.sp-checkout-page .woocommerce-billing-fields > h3,
body.sp-checkout-page .woocommerce-shipping-fields > h3,
body.sp-checkout-page #ship-to-different-address span,
body.sp-checkout-page .sp-review-table .order-total th,
body.sp-checkout-page .sp-review-table .order-total td,
body.sp-checkout-page .sp-review-table .order-total .amount {
    font-family: var(--sp-font-sans) !important;
    letter-spacing: -.025em !important;
}

body.sp-checkout-page .sp-checkout-hero h1 {
    font-size: var(--sp-type-hero) !important;
    line-height: 1.06 !important;
    font-weight: var(--sp-weight-heavy) !important;
}

body.sp-checkout-page .sp-section-head h2,
body.sp-checkout-page .sp-shipping-title,
body.sp-checkout-page .sp-coupon-title {
    font-size: var(--sp-type-xl) !important;
    line-height: 1.18 !important;
    font-weight: var(--sp-weight-heavy) !important;
    margin: 0 0 5px !important;
}

body.sp-checkout-page .woocommerce-billing-fields > h3,
body.sp-checkout-page .woocommerce-shipping-fields > h3,
body.sp-checkout-page #ship-to-different-address span {
    font-size: var(--sp-type-lg) !important;
    line-height: 1.22 !important;
    font-weight: var(--sp-weight-heavy) !important;
    color: var(--sp-ink) !important;
}

body.sp-checkout-page .sp-section-head p,
body.sp-checkout-page .sp-shipping-subtitle,
body.sp-checkout-page .sp-coupon-subtitle,
body.sp-checkout-page .sp-order-coupon-subtitle,
body.sp-checkout-page .sp-checkout-hero p {
    font-size: var(--sp-type-base) !important;
    line-height: 1.45 !important;
    font-weight: var(--sp-weight-regular) !important;
    color: var(--sp-muted) !important;
}

body.sp-checkout-page .sp-section-icon,
body.sp-checkout-page .sp-order-coupon-icon {
    font-size: var(--sp-type-base) !important;
    font-weight: var(--sp-weight-bold) !important;
    line-height: 1 !important;
}

body.sp-checkout-page .form-row label,
body.sp-checkout-page .woocommerce form .form-row label,
body.sp-checkout-page .sp-review-table th,
body.sp-checkout-page .sp-review-table td,
body.sp-checkout-page .sp-mini-product strong,
body.sp-checkout-page .sp-rate-label-text,
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label {
    font-size: var(--sp-type-base) !important;
    line-height: 1.35 !important;
    font-weight: var(--sp-weight-bold) !important;
    letter-spacing: -.01em !important;
}

body.sp-checkout-page .sp-mini-qty,
body.sp-checkout-page .sp-payment-helper,
body.sp-checkout-page .sp-order-coupon-message,
body.sp-checkout-page .woocommerce-privacy-policy-text,
body.sp-checkout-page .woocommerce-terms-and-conditions-wrapper,
body.sp-checkout-page .sp-review-table small,
body.sp-checkout-page .sp-review-table .variation {
    font-size: var(--sp-type-sm) !important;
    line-height: 1.45 !important;
    font-weight: var(--sp-weight-regular) !important;
}

body.sp-checkout-page input.input-text,
body.sp-checkout-page select,
body.sp-checkout-page textarea,
body.sp-checkout-page .select2-container .select2-selection__rendered,
body.sp-checkout-page .sp-order-coupon-input {
    font-size: var(--sp-type-base) !important;
    line-height: 1.35 !important;
    font-weight: var(--sp-weight-regular) !important;
}

body.sp-checkout-page .sp-place-order-btn,
body.sp-checkout-page .sp-order-coupon-apply,
body.sp-checkout-page .button,
body.sp-checkout-page button.button,
body.sp-checkout-page a.button {
    font-size: var(--sp-type-base) !important;
    line-height: 1.1 !important;
    font-weight: var(--sp-weight-heavy) !important;
    letter-spacing: -.01em !important;
}

body.sp-checkout-page .sp-eyebrow,
body.sp-checkout-page .sp-payment-box::before {
    font-size: var(--sp-type-xs) !important;
    line-height: 1.15 !important;
    font-weight: var(--sp-weight-heavy) !important;
    letter-spacing: .075em !important;
}

@media (max-width: 575px) {
    body.sp-checkout-page {
        --sp-type-base: .96rem;
        --sp-type-md: 1rem;
        --sp-type-lg: 1.12rem;
        --sp-type-xl: 1.22rem;
    }

    body.sp-checkout-page .sp-section-head h2,
    body.sp-checkout-page .sp-shipping-title,
    body.sp-checkout-page .sp-coupon-title {
        font-size: var(--sp-type-xl) !important;
        line-height: 1.2 !important;
    }
}


/* v1.4.8: Softer checkout weight pass. */
body.sp-checkout-page .sp-checkout-hero h1,
body.sp-checkout-page .sp-section-head h2,
body.sp-checkout-page .sp-shipping-title,
body.sp-checkout-page .sp-coupon-title,
body.sp-checkout-page .woocommerce-billing-fields > h3,
body.sp-checkout-page .woocommerce-shipping-fields > h3,
body.sp-checkout-page #ship-to-different-address span {
    font-weight: 700 !important;
    letter-spacing: -.015em !important;
}

body.sp-checkout-page .form-row label,
body.sp-checkout-page .woocommerce form .form-row label,
body.sp-checkout-page .sp-review-table th,
body.sp-checkout-page .sp-review-table td,
body.sp-checkout-page .sp-mini-product strong,
body.sp-checkout-page .sp-rate-label-text,
body.sp-checkout-page #payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method > label,
body.sp-checkout-page .sp-payment-methods li.wc_payment_method > label {
    font-weight: 600 !important;
}

body.sp-checkout-page .sp-section-head p,
body.sp-checkout-page .sp-shipping-subtitle,
body.sp-checkout-page .sp-coupon-subtitle,
body.sp-checkout-page .sp-order-coupon-subtitle,
body.sp-checkout-page .sp-checkout-hero p,
body.sp-checkout-page input.input-text,
body.sp-checkout-page select,
body.sp-checkout-page textarea,
body.sp-checkout-page .select2-container .select2-selection__rendered,
body.sp-checkout-page .sp-order-coupon-input {
    font-weight: 400 !important;
}

body.sp-checkout-page .sp-place-order-btn,
body.sp-checkout-page .sp-order-coupon-apply,
body.sp-checkout-page .button,
body.sp-checkout-page button.button,
body.sp-checkout-page a.button {
    font-weight: 700 !important;
}

body.sp-checkout-page .sp-eyebrow,
body.sp-checkout-page .sp-payment-box::before {
    font-weight: 700 !important;
    letter-spacing: .055em !important;
}

/* v1.4.9: Match the "Ship to a different address" control to the checkout radio style. */
body.sp-checkout-page #ship-to-different-address {
    margin: 0 0 18px !important;
}

body.sp-checkout-page #ship-to-different-address label.checkbox,
body.sp-checkout-page #ship-to-different-address label.woocommerce-form__label-for-checkbox {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 0 0 38px !important;
    cursor: pointer !important;
    color: var(--sp-ink) !important;
}

body.sp-checkout-page #ship-to-different-address-checkbox,
body.sp-checkout-page #ship-to-different-address input[type="checkbox"],
body.sp-checkout-page #ship-to-different-address input.input-checkbox {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 24px !important;
    height: 24px !important;
    margin: -12px 0 0 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

body.sp-checkout-page #ship-to-different-address span {
    position: static !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--sp-type-lg) !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    letter-spacing: -.01em !important;
    color: var(--sp-ink) !important;
}

body.sp-checkout-page #ship-to-different-address span::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 24px !important;
    height: 24px !important;
    transform: translateY(-50%) !important;
    border-radius: 999px !important;
    border: 2px solid var(--sp-clay) !important;
    background: #fffaf3 !important;
    box-shadow: 0 3px 10px rgba(42, 37, 32, .08) !important;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

body.sp-checkout-page #ship-to-different-address span::after {
    content: "" !important;
    position: absolute !important;
    left: 7px !important;
    top: 50% !important;
    width: 10px !important;
    height: 10px !important;
    transform: translateY(-50%) scale(.45) !important;
    border-radius: 999px !important;
    background: var(--sp-clay) !important;
    opacity: 0 !important;
    transition: opacity .16s ease, transform .16s ease !important;
}

body.sp-checkout-page #ship-to-different-address input[type="checkbox"]:checked + span::before,
body.sp-checkout-page #ship-to-different-address input.input-checkbox:checked + span::before {
    border-color: var(--sp-clay) !important;
    background: #fffaf3 !important;
    box-shadow: inset 0 0 0 5px #fffaf3, 0 3px 10px rgba(42, 37, 32, .08) !important;
}

body.sp-checkout-page #ship-to-different-address input[type="checkbox"]:checked + span::after,
body.sp-checkout-page #ship-to-different-address input.input-checkbox:checked + span::after {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1) !important;
}

body.sp-checkout-page #ship-to-different-address input[type="checkbox"]:focus-visible + span::before,
body.sp-checkout-page #ship-to-different-address input.input-checkbox:focus-visible + span::before {
    outline: 3px solid rgba(139, 115, 83, .22) !important;
    outline-offset: 3px !important;
}

body.sp-checkout-page #ship-to-different-address label.checkbox:hover span::before,
body.sp-checkout-page #ship-to-different-address label.woocommerce-form__label-for-checkbox:hover span::before {
    border-color: #8a3a2b !important;
    box-shadow: 0 5px 14px rgba(42, 37, 32, .10) !important;
}

/* v1.5.0: Make the alternate shipping address area match the billing address layout. */
body.sp-checkout-page .sp-alt-shipping-fields,
body.sp-checkout-page .sp-delivery-notes-fields {
    width: 100% !important;
}

body.sp-checkout-page .sp-alt-shipping-toggle-heading {
    margin: 0 0 18px !important;
}

body.sp-checkout-page .sp-alt-shipping-address {
    margin: 0 0 22px !important;
    padding: 22px !important;
    border: 1px solid rgba(139, 115, 83, .18) !important;
    border-radius: 22px !important;
    background: rgba(255, 250, 243, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 20px rgba(42, 37, 32, .035) !important;
}

body.sp-checkout-page .sp-alt-address-head {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 0 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(42, 37, 32, .08) !important;
}

body.sp-checkout-page .sp-alt-address-head strong {
    display: block !important;
    margin: 0 !important;
    color: var(--sp-ink) !important;
    font-family: var(--sp-font-sans) !important;
    font-size: var(--sp-type-lg) !important;
    font-weight: var(--sp-weight-bold) !important;
    line-height: 1.22 !important;
    letter-spacing: -.018em !important;
}

body.sp-checkout-page .sp-alt-address-head small {
    display: block !important;
    margin: 0 !important;
    color: var(--sp-muted) !important;
    font-family: var(--sp-font-sans) !important;
    font-size: var(--sp-type-sm) !important;
    font-weight: var(--sp-weight-regular) !important;
    line-height: 1.45 !important;
}

body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper,
body.sp-checkout-page .sp-checkout-form .sp-alt-address-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 16px !important;
    align-items: start !important;
}

body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper::before,
body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper::after {
    content: none !important;
    display: none !important;
}

body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row,
body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-wrap {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-wide,
body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-wide,
body.sp-checkout-page .sp-checkout-form #shipping_company_field,
body.sp-checkout-page .sp-checkout-form #shipping_country_field,
body.sp-checkout-page .sp-checkout-form #shipping_address_1_field,
body.sp-checkout-page .sp-checkout-form #shipping_address_2_field {
    grid-column: span 6 !important;
}

body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-half,
body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-first,
body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-last,
body.sp-checkout-page .sp-checkout-form #shipping_first_name_field,
body.sp-checkout-page .sp-checkout-form #shipping_last_name_field {
    grid-column: span 3 !important;
}

body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-third,
body.sp-checkout-page .sp-checkout-form #shipping_city_field,
body.sp-checkout-page .sp-checkout-form #shipping_state_field,
body.sp-checkout-page .sp-checkout-form #shipping_postcode_field {
    grid-column: span 2 !important;
}

body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .woocommerce-input-wrapper,
body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper input.input-text,
body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper select,
body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .select2-container {
    display: block !important;
    width: 100% !important;
}

body.sp-checkout-page .sp-delivery-notes-fields {
    margin-top: 20px !important;
}

body.sp-checkout-page .sp-delivery-notes-fields .woocommerce-additional-fields__field-wrapper,
body.sp-checkout-page .sp-delivery-notes-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

@media (max-width: 820px) {
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper,
    body.sp-checkout-page .sp-checkout-form .sp-alt-address-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-wide,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-wide,
    body.sp-checkout-page .sp-checkout-form #shipping_company_field,
    body.sp-checkout-page .sp-checkout-form #shipping_country_field,
    body.sp-checkout-page .sp-checkout-form #shipping_address_1_field,
    body.sp-checkout-page .sp-checkout-form #shipping_address_2_field {
        grid-column: span 2 !important;
    }

    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-half,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-third,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-first,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-last,
    body.sp-checkout-page .sp-checkout-form #shipping_first_name_field,
    body.sp-checkout-page .sp-checkout-form #shipping_last_name_field,
    body.sp-checkout-page .sp-checkout-form #shipping_city_field,
    body.sp-checkout-page .sp-checkout-form #shipping_state_field,
    body.sp-checkout-page .sp-checkout-form #shipping_postcode_field {
        grid-column: span 1 !important;
    }
}

@media (max-width: 575px) {
    body.sp-checkout-page .sp-alt-shipping-address {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper,
    body.sp-checkout-page .sp-checkout-form .sp-alt-address-grid {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-wrap,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-wide,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-half,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .sp-field-third,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-wide,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-first,
    body.sp-checkout-page .sp-checkout-form .woocommerce-shipping-fields__field-wrapper .form-row-last,
    body.sp-checkout-page .sp-checkout-form #shipping_first_name_field,
    body.sp-checkout-page .sp-checkout-form #shipping_last_name_field,
    body.sp-checkout-page .sp-checkout-form #shipping_company_field,
    body.sp-checkout-page .sp-checkout-form #shipping_country_field,
    body.sp-checkout-page .sp-checkout-form #shipping_address_1_field,
    body.sp-checkout-page .sp-checkout-form #shipping_address_2_field,
    body.sp-checkout-page .sp-checkout-form #shipping_city_field,
    body.sp-checkout-page .sp-checkout-form #shipping_state_field,
    body.sp-checkout-page .sp-checkout-form #shipping_postcode_field {
        grid-column: 1 / -1 !important;
    }
}


/* v1.5.5: mobile shipping refresh feedback. */
body.sp-checkout-page .sp-delivery-card--loading {
    position: relative;
}

body.sp-checkout-page .sp-delivery-card--loading::after {
    content: 'Updating shipping options...';
    display: block;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(139, 115, 83, .18);
    border-radius: 14px;
    background: rgba(243, 238, 229, .55);
    color: var(--sp-muted);
    font-size: var(--sp-type-sm, .9rem);
    font-weight: 600;
}

/* v1.6.0: Full cart page. */
body.sp-cart-page {
    background: #fffaf3;
}

body.sp-cart-page .woocommerce,
body.sp-cart-page .entry-content > .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
}

body.sp-cart-page .woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 18px auto 0;
}

body.sp-cart-page .sp-cart-shell {
    --sp-cart-cream: #F3EEE5;
    --sp-cart-soft: #FFFAF3;
    --sp-cart-ink: #2A2520;
    --sp-cart-muted: #6E6256;
    --sp-cart-clay: #8B7353;
    --sp-cart-rust: #8A3A2B;
    --sp-cart-line: rgba(42, 37, 32, .12);
    --sp-cart-shadow: 0 18px 45px rgba(42, 37, 32, .07);
    max-width: 1200px;
    margin: 28px auto 52px;
    padding: 0 18px;
    color: var(--sp-cart-ink);
    font-family: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.sp-cart-page .sp-cart-shell * {
    box-sizing: border-box;
}

body.sp-cart-page .sp-cart-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid var(--sp-cart-line);
    border-radius: 28px;
    background: linear-gradient(135deg, #fff 0%, #fffaf3 48%, var(--sp-cart-cream) 100%);
    box-shadow: var(--sp-cart-shadow);
}

body.sp-cart-page .sp-cart-kicker,
body.sp-cart-page .sp-cart-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(139, 115, 83, .12);
    color: var(--sp-cart-clay);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1;
    text-transform: uppercase;
}

body.sp-cart-page .sp-cart-eyebrow {
    margin-bottom: 8px;
    background: rgba(243, 238, 229, .75);
}

body.sp-cart-page .sp-cart-hero h1 {
    margin: 0;
    color: var(--sp-cart-ink);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.02;
}

body.sp-cart-page .sp-cart-hero p {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--sp-cart-muted);
    font-size: 16px;
    line-height: 1.65;
}

body.sp-cart-page .sp-cart-hero__meta {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 18px;
    border: 1px solid rgba(139, 115, 83, .22);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
}

body.sp-cart-page .sp-cart-hero__meta span {
    color: var(--sp-cart-rust);
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
}

body.sp-cart-page .sp-cart-hero__meta strong {
    color: var(--sp-cart-muted);
    font-size: 13px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .05em;
}

body.sp-cart-page .sp-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

body.sp-cart-page .sp-cart-sidebar {
    position: sticky;
    top: 100px;
}

body.sp-cart-page .sp-cart-card,
body.sp-cart-page .sp-cart-totals-card,
body.sp-cart-page .cross-sells {
    border: 1px solid var(--sp-cart-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--sp-cart-shadow);
}

body.sp-cart-page .sp-cart-card {
    padding: 22px;
}

body.sp-cart-page .sp-cart-card__head,
body.sp-cart-page .sp-cart-item__top,
body.sp-cart-page .sp-cart-actions-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

body.sp-cart-page .sp-cart-card__head {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sp-cart-line);
}

body.sp-cart-page .sp-cart-card__head h2,
body.sp-cart-page .sp-cart-totals-card h2,
body.sp-cart-page .cross-sells > h2 {
    margin: 0;
    color: var(--sp-cart-ink);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

body.sp-cart-page .sp-cart-continue,
body.sp-cart-page .sp-cart-secondary-btn,
body.sp-cart-page .sp-cart-update-btn,
body.sp-cart-page .shipping-calculator-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px !important;
    border: 1px solid var(--sp-cart-line) !important;
    border-radius: 999px !important;
    background: #fffaf6 !important;
    color: var(--sp-cart-ink) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

body.sp-cart-page .sp-cart-continue:hover,
body.sp-cart-page .sp-cart-secondary-btn:hover,
body.sp-cart-page .sp-cart-update-btn:hover,
body.sp-cart-page .shipping-calculator-button:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 115, 83, .42) !important;
    background: #fff !important;
}

body.sp-cart-page .sp-cart-items {
    display: grid;
    gap: 14px;
}

body.sp-cart-page .sp-cart-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--sp-cart-line);
    border-radius: 22px;
    background: #fffaf6;
}

body.sp-cart-page .sp-cart-item__media a,
body.sp-cart-page .sp-cart-item__media {
    display: block;
}

body.sp-cart-page .sp-cart-item__image,
body.sp-cart-page .sp-cart-item__media img {
    display: block;
    width: 118px;
    height: 118px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(42, 37, 32, .08);
    background: #fff;
}

body.sp-cart-page .sp-cart-item__body {
    min-width: 0;
}

body.sp-cart-page .sp-cart-item__title {
    margin: 0;
    color: var(--sp-cart-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

body.sp-cart-page .sp-cart-item__title a {
    color: inherit;
    text-decoration: none;
}

body.sp-cart-page .sp-cart-item__title a:hover {
    color: var(--sp-cart-rust);
}

body.sp-cart-page .sp-cart-item__meta {
    margin-top: 8px;
    color: var(--sp-cart-muted);
    font-size: 13px;
    line-height: 1.5;
}

body.sp-cart-page .sp-cart-item__meta dl,
body.sp-cart-page .sp-cart-item__meta p {
    margin: 0;
}

body.sp-cart-page .sp-cart-item__meta dt,
body.sp-cart-page .sp-cart-item__meta dd {
    display: inline;
    margin: 0;
}

body.sp-cart-page .sp-cart-item__meta dt::after {
    content: ': ';
}

body.sp-cart-page .sp-cart-item__meta dd::after {
    content: ' '; 
}

body.sp-cart-page .sp-cart-remove {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(138, 58, 43, .18);
    border-radius: 999px;
    background: rgba(138, 58, 43, .06);
    color: var(--sp-cart-rust);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

body.sp-cart-page .sp-cart-remove:hover {
    border-color: rgba(138, 58, 43, .34);
    background: rgba(138, 58, 43, .1);
    color: var(--sp-cart-rust);
}

body.sp-cart-page .sp-cart-item__bottom {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(170px, 1fr) minmax(130px, .8fr);
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

body.sp-cart-page .sp-cart-item__price-block,
body.sp-cart-page .sp-cart-item__qty-block,
body.sp-cart-page .sp-cart-item__subtotal-block {
    display: grid;
    gap: 6px;
}

body.sp-cart-page .sp-cart-item__price-block span,
body.sp-cart-page .sp-cart-item__qty-block span,
body.sp-cart-page .sp-cart-item__subtotal-block span {
    color: var(--sp-cart-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body.sp-cart-page .sp-cart-item__price-block strong,
body.sp-cart-page .sp-cart-item__subtotal-block strong {
    color: var(--sp-cart-ink);
    font-size: 16px;
    font-weight: 900;
}

body.sp-cart-page .sp-cart-item__subtotal-block strong {
    color: var(--sp-cart-rust);
}

body.sp-cart-page .sp-cart-qty-control {
    display: inline-grid;
    grid-template-columns: 42px minmax(64px, 82px) 42px;
    width: fit-content;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid var(--sp-cart-line);
    border-radius: 999px;
    background: #fff;
}

body.sp-cart-page .sp-cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--sp-cart-clay);
    cursor: pointer;
}

body.sp-cart-page .sp-cart-qty-btn:hover {
    background: var(--sp-cart-cream);
    color: var(--sp-cart-rust);
}

body.sp-cart-page .sp-cart-qty-control .quantity {
    margin: 0 !important;
}

body.sp-cart-page .sp-cart-qty-input,
body.sp-cart-page .sp-cart-qty-control input.qty {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 6px !important;
    border: 0 !important;
    border-right: 1px solid var(--sp-cart-line) !important;
    border-left: 1px solid var(--sp-cart-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--sp-cart-ink) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-align: center !important;
    box-shadow: none !important;
}

body.sp-cart-page .sp-cart-actions-row {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--sp-cart-line);
}

body.sp-cart-page .sp-cart-coupon {
    display: grid;
    gap: 8px;
    width: min(100%, 450px);
}

body.sp-cart-page .sp-cart-coupon label {
    color: var(--sp-cart-ink);
    font-size: 13px;
    font-weight: 900;
}

body.sp-cart-page .sp-cart-coupon__controls {
    display: flex;
    gap: 10px;
}

body.sp-cart-page .sp-cart-coupon input.input-text,
body.sp-cart-page .shipping-calculator-form input,
body.sp-cart-page .shipping-calculator-form select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--sp-cart-line);
    border-radius: 15px;
    background: #fff;
    color: var(--sp-cart-ink);
    font-size: 15px;
    box-shadow: none;
}

body.sp-cart-page .sp-cart-update-btn {
    background: var(--sp-cart-rust) !important;
    border-color: var(--sp-cart-rust) !important;
    color: #fff !important;
}

body.sp-cart-page .sp-cart-update-btn:disabled,
body.sp-cart-page .sp-cart-update-btn[disabled] {
    opacity: .55 !important;
    cursor: not-allowed;
}

body.sp-cart-page .sp-cart-totals-card {
    padding: 22px;
}

body.sp-cart-page .sp-cart-totals-card__head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sp-cart-line);
}

body.sp-cart-page .sp-cart-totals-card__head p {
    margin: 8px 0 0;
    color: var(--sp-cart-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.sp-cart-page .sp-cart-totals-list {
    display: grid;
    gap: 10px;
}

body.sp-cart-page .sp-cart-total-row,
body.sp-cart-page .sp-cart-shipping-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--sp-cart-line);
    color: var(--sp-cart-ink);
}

body.sp-cart-page .sp-cart-total-row span,
body.sp-cart-page .sp-cart-shipping-row__label {
    color: var(--sp-cart-muted);
    font-size: 14px;
    font-weight: 900;
}

body.sp-cart-page .sp-cart-total-row strong,
body.sp-cart-page .sp-cart-total-row .amount {
    color: var(--sp-cart-ink);
    font-size: 15px;
    font-weight: 900;
}

body.sp-cart-page .sp-cart-total-row--grand {
    align-items: center;
    margin-top: 4px;
    padding: 16px;
    border: 0;
    border-radius: 18px;
    background: #fffaf6;
}

body.sp-cart-page .sp-cart-total-row--grand span,
body.sp-cart-page .sp-cart-total-row--grand strong,
body.sp-cart-page .sp-cart-total-row--grand .amount {
    color: var(--sp-cart-rust);
    font-size: 22px;
    font-weight: 900;
}

body.sp-cart-page .sp-cart-shipping-row {
    display: grid;
    grid-template-columns: 1fr;
}

body.sp-cart-page .sp-cart-shipping-row__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sp-cart-ink);
}

body.sp-cart-page .sp-cart-shipping-row__content {
    min-width: 0;
    color: var(--sp-cart-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.sp-cart-page .sp-cart-shipping-row__content ul,
body.sp-cart-page .woocommerce-shipping-methods {
    display: grid;
    gap: 9px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.sp-cart-page .sp-cart-shipping-row__content li,
body.sp-cart-page .woocommerce-shipping-methods li {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border: 1px solid var(--sp-cart-line);
    border-radius: 14px;
    background: #fffaf6;
}

body.sp-cart-page .sp-cart-shipping-row__content label {
    color: var(--sp-cart-ink);
    font-weight: 800;
}

body.sp-cart-page .woocommerce-shipping-destination,
body.sp-cart-page .woocommerce-shipping-calculator {
    margin: 10px 0 0;
}

body.sp-cart-page .shipping-calculator-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

body.sp-cart-page .shipping-calculator-form .form-row {
    margin: 0 !important;
    padding: 0 !important;
}

body.sp-cart-page .shipping-calculator-form button.button {
    width: 100%;
    min-height: 44px;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--sp-cart-clay) !important;
    color: #fff !important;
    font-weight: 900 !important;
}

body.sp-cart-page .sp-cart-checkout-cta {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

body.sp-cart-page .sp-cart-checkout-cta .checkout-button,
body.sp-cart-page .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--sp-cart-rust) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: 0 14px 28px rgba(138, 58, 43, .18) !important;
}

body.sp-cart-page .sp-cart-checkout-cta .checkout-button:hover,
body.sp-cart-page .wc-proceed-to-checkout .checkout-button:hover {
    filter: brightness(.97);
    transform: translateY(-1px);
}

body.sp-cart-page .sp-cart-help-box {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
    padding: 13px;
    border: 1px solid rgba(139, 115, 83, .18);
    border-radius: 16px;
    background: #fffaf6;
    color: var(--sp-cart-muted);
}

body.sp-cart-page .sp-cart-help-box i {
    margin-top: 3px;
    color: var(--sp-cart-clay);
}

body.sp-cart-page .sp-cart-help-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

body.sp-cart-page .cross-sells {
    margin-top: 22px;
    padding: 22px;
}

body.sp-cart-page .cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 0 !important;
    padding: 0 !important;
}

body.sp-cart-page .cross-sells ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--sp-cart-line);
    border-radius: 18px;
    background: #fffaf6;
}

body.sp-cart-page .cross-sells ul.products li.product img {
    border-radius: 14px;
}

body.sp-cart-page .return-to-shop .button,
body.sp-cart-page .wc-empty-cart-message + .return-to-shop .button,
body.sp-cart-page .cart-empty.woocommerce-info + .return-to-shop .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px !important;
    border-radius: 999px !important;
    background: var(--sp-cart-rust, #8A3A2B) !important;
    color: #fff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

@media (max-width: 1040px) {
    body.sp-cart-page .sp-cart-layout {
        grid-template-columns: 1fr;
    }

    body.sp-cart-page .sp-cart-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    body.sp-cart-page .sp-cart-shell {
        margin-top: 18px;
        padding: 0 12px;
    }

    body.sp-cart-page .sp-cart-hero {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 22px;
    }

    body.sp-cart-page .sp-cart-hero__meta {
        min-height: auto;
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
    }

    body.sp-cart-page .sp-cart-card,
    body.sp-cart-page .sp-cart-totals-card,
    body.sp-cart-page .cross-sells {
        padding: 16px;
        border-radius: 22px;
    }

    body.sp-cart-page .sp-cart-card__head,
    body.sp-cart-page .sp-cart-actions-row,
    body.sp-cart-page .sp-cart-item__top {
        align-items: flex-start;
        flex-direction: column;
    }

    body.sp-cart-page .sp-cart-item {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 13px;
        padding: 13px;
    }

    body.sp-cart-page .sp-cart-item__image,
    body.sp-cart-page .sp-cart-item__media img {
        width: 86px;
        height: 86px;
        border-radius: 15px;
    }

    body.sp-cart-page .sp-cart-item__bottom {
        grid-template-columns: 1fr;
    }

    body.sp-cart-page .sp-cart-coupon,
    body.sp-cart-page .sp-cart-update-btn {
        width: 100%;
    }

    body.sp-cart-page .sp-cart-coupon__controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.sp-cart-page .cross-sells ul.products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    body.sp-cart-page .sp-cart-item {
        grid-template-columns: 1fr;
    }

    body.sp-cart-page .sp-cart-item__image,
    body.sp-cart-page .sp-cart-item__media img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    body.sp-cart-page .sp-cart-qty-control {
        width: 100%;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }
}

body.sp-cart-page .sp-cart-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body.sp-cart-page .sp-cart-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 17px;
    border: 1px solid var(--sp-cart-rust);
    border-radius: 999px;
    background: var(--sp-cart-rust);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

body.sp-cart-page .sp-cart-empty-btn:hover {
    color: #fff;
    filter: brightness(.97);
    transform: translateY(-1px);
}

body.sp-cart-page .sp-cart-empty-btn--light {
    border-color: var(--sp-cart-line);
    background: #fff;
    color: var(--sp-cart-ink);
}

body.sp-cart-page .sp-cart-empty-btn--light:hover {
    color: var(--sp-cart-ink);
}


/* Cart page should stay a simple review step. Hide express payment surfaces if a gateway injects them anyway. */
.sp-cart-page .wcpay-payment-request-wrapper,
.sp-cart-page .wc-stripe-payment-request-wrapper,
.sp-cart-page .wc-stripe-cart-checkout-container,
.sp-cart-page #wc-stripe-payment-request-wrapper,
.sp-cart-page #wc-stripe-payment-request-button-separator,
.sp-cart-page #wc-stripe-payment-request-button,
.sp-cart-page .ppc-button-wrapper,
.sp-cart-page .ppcp-button-wrapper,
.sp-cart-page .paypal-button-container,
.sp-cart-page .paypal-buttons,
.sp-cart-page .express-payment-methods,
.sp-cart-page .wc-block-components-express-payment,
.sp-cart-page .wc-block-components-express-payment-continue-rule,
.sp-cart-page .wc-proceed-to-checkout .separator,
.sp-cart-page .wc-proceed-to-checkout .or,
.sp-cart-page .sp-cart-checkout-cta iframe[src*="paypal"],
.sp-cart-page .sp-cart-checkout-cta iframe[src*="stripe"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.sp-cart-checkout-cta--simple {
    display: grid;
    gap: 0.75rem;
}

.sp-cart-checkout-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.sp-cart-continue-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
}


/* cart automatic updates */
body.sp-cart-page .sp-cart-auto-update-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 9px 12px;
    border: 1px solid rgba(139, 115, 83, .18);
    border-radius: 999px;
    background: #fffaf6;
    color: var(--sp-cart-muted);
    font-size: 13px;
    font-weight: 800;
}

body.sp-cart-page .sp-cart-auto-update-note i {
    color: var(--sp-cart-clay);
}

body.sp-cart-page .sp-cart-auto-update-note--saving i {
    animation: spCartSpin .8s linear infinite;
}

body.sp-cart-page .sp-cart-update-btn--fallback {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


body.sp-cart-page .sp-cart-item--removing {
    opacity: .45;
    pointer-events: none;
}

@keyframes spCartSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* v1.6.5: AJAX cart page polish. Keep the summary as one clean subtotal card. */
body.sp-cart-page .sp-cart-totals-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
}

body.sp-cart-page .sp-cart-total-row--grand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-top: 0;
    padding: 18px 20px;
    border: 1px solid rgba(139, 115, 83, .14);
    background: rgba(255, 250, 246, .95);
}

body.sp-cart-page .sp-cart-total-row--grand span {
    font-size: 18px;
    line-height: 1.15;
}

body.sp-cart-page .sp-cart-total-row--grand strong,
body.sp-cart-page .sp-cart-total-row--grand .amount {
    font-size: 22px;
    line-height: 1.15;
    white-space: nowrap;
}



/* v1.6.6: keep the cart summary visually stable during AJAX updates. */
body.sp-cart-page .sp-cart-sidebar {
    align-self: start;
}

body.sp-cart-page .sp-cart-totals-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    overflow: hidden;
}

body.sp-cart-page .sp-cart-totals-card,
body.sp-cart-page .sp-cart-totals-card * {
    transition-property: color, background-color, border-color, box-shadow, opacity;
}

body.sp-cart-page .sp-cart-auto-update-note {
    min-width: 230px;
    min-height: 42px;
    justify-content: center;
    white-space: nowrap;
}

body.sp-cart-page .sp-cart-auto-update-note [data-sp-cart-auto-update-text] {
    display: inline-block;
    min-width: 180px;
}

body.sp-cart-page .sp-cart-auto-update-note--saving {
    opacity: .92;
}

body.sp-cart-page .sp-cart-auto-update-note--saving i {
    animation: spCartSpin .8s linear infinite;
}

body.sp-cart-page .sp-cart-total-row--grand strong {
    display: inline-flex;
    justify-content: flex-end;
    min-width: 92px;
}

/* Craft Checkout 1.2.0 value features */
.spc-free-shipping-bar{margin:18px 0;padding:15px 16px;border:1px solid rgba(42,37,32,.12);border-radius:var(--sp-radius,18px);background:var(--sp-card,#fff);box-shadow:var(--sp-shadow-soft,0 10px 28px rgba(42,37,32,.055))}.spc-free-shipping-bar__text{font-weight:800;color:var(--sp-ink,#2A2520);margin-bottom:10px}.spc-free-shipping-bar__track{height:10px;overflow:hidden;border-radius:999px;background:rgba(42,37,32,.10)}.spc-free-shipping-bar__track span{display:block;height:100%;border-radius:999px;background:var(--sp-rust,#8A3A2B);transition:width .25s ease}.spc-trust-badges{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:18px 0}.spc-trust-badge{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(42,37,32,.12);border-radius:16px;background:var(--sp-card,#fff);color:var(--sp-ink,#2A2520);font-weight:800}.spc-trust-badge i{color:var(--sp-rust,#8A3A2B)}.spc-cart-notices{display:grid;gap:10px;margin:18px 0}.spc-cart-notice{display:flex;gap:10px;align-items:flex-start;padding:14px 16px;border:1px solid rgba(138,58,43,.22);border-radius:16px;background:rgba(138,58,43,.07);color:var(--sp-ink,#2A2520);font-weight:700}.spc-cart-notice i{margin-top:2px;color:var(--sp-rust,#8A3A2B)}.spc-policy-agreement{padding:14px 16px;border:1px solid rgba(42,37,32,.12);border-radius:16px;background:rgba(255,255,255,.72)}body.spc-no-sticky-summaries .sp-order-sticky,body.spc-no-sticky-summaries .sp-cart-sidebar{position:static!important}@media(max-width:782px){body.spc-mobile-no-sticky .sp-order-sticky,body.spc-mobile-no-sticky .sp-cart-sidebar{position:static!important}.spc-trust-badges{grid-template-columns:1fr}.spc-free-shipping-bar,.spc-cart-notices,.spc-trust-badges{margin:14px 0}}

/* Theme-safe icons. These use inline SVG so the plugin works even when Font Awesome is not loaded. */
.spc-theme-icon{display:inline-flex;width:1em;height:1em;align-items:center;justify-content:center;line-height:1;vertical-align:-.125em;flex:0 0 auto}
.spc-theme-icon svg{width:1em;height:1em;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Craft Checkout 1.2.20: marketplace-ready cart and checkout polish. */
body.sp-checkout-page,
body.sp-cart-page {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body.sp-checkout-page .woocommerce-notices-wrapper,
body.sp-cart-page .woocommerce-notices-wrapper {
    width: min(1200px, calc(100% - 32px));
}

body.sp-checkout-page .woocommerce-error,
body.sp-checkout-page .woocommerce-message,
body.sp-checkout-page .woocommerce-info,
body.sp-cart-page .woocommerce-error,
body.sp-cart-page .woocommerce-message,
body.sp-cart-page .woocommerce-info {
    border-top: 0 !important;
    border-left: 4px solid var(--sp-rust, #8A3A2B) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(42,37,32,.07) !important;
}

body.sp-cart-page .sp-cart-flow,
body.sp-checkout-page .sp-checkout-progress {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

body.sp-checkout-page .sp-checkout-progress {
    margin: 0 0 22px;
    padding: 12px;
    border: 1px solid rgba(42,37,32,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    box-shadow: 0 10px 26px rgba(42,37,32,.045);
}

body.sp-cart-page .sp-cart-flow__step,
body.sp-checkout-page .sp-checkout-progress__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px 7px 7px;
    border: 1px solid rgba(42,37,32,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: var(--sp-muted, #6E6256);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

body.sp-cart-page .sp-cart-flow__step strong,
body.sp-checkout-page .sp-checkout-progress__item strong {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(42,37,32,.09);
    color: var(--sp-ink, #2A2520);
    font-size: 12px;
    font-weight: 950;
}

body.sp-cart-page .sp-cart-flow__step--active,
body.sp-checkout-page .sp-checkout-progress__item--active {
    border-color: rgba(138,58,43,.28);
    background: rgba(138,58,43,.075);
    color: var(--sp-rust, #8A3A2B);
}

body.sp-cart-page .sp-cart-flow__step--active strong,
body.sp-checkout-page .sp-checkout-progress__item--active strong {
    background: var(--sp-rust, #8A3A2B);
    color: #fff;
}

body.sp-cart-page .sp-cart-flow__line,
body.sp-checkout-page .sp-checkout-progress__line {
    display: block;
    width: 30px;
    height: 1px;
    background: rgba(42,37,32,.16);
}

body.sp-cart-page .sp-cart-card,
body.sp-cart-page .sp-cart-totals-card,
body.sp-checkout-page .sp-checkout-card {
    outline: 1px solid rgba(255,255,255,.68);
    outline-offset: -2px;
}

body.sp-cart-page .sp-cart-item {
    position: relative;
    overflow: hidden;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

body.sp-cart-page .sp-cart-item:hover {
    transform: translateY(-1px);
    border-color: rgba(139,115,83,.25);
    box-shadow: 0 14px 32px rgba(42,37,32,.065);
    background: #fff;
}

body.sp-cart-page .sp-cart-summary-perks {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(42,37,32,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.70);
}

body.sp-cart-page .sp-cart-summary-perks span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--sp-cart-muted, #6E6256);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

body.sp-cart-page .sp-cart-summary-perks i,
body.sp-cart-page .sp-cart-summary-perks .spc-theme-icon {
    color: var(--sp-cart-rust, #8A3A2B);
}

body.sp-cart-page .sp-cart-checkout-button {
    position: relative;
    overflow: hidden;
}

body.sp-cart-page .sp-cart-checkout-button::after,
body.sp-checkout-page .sp-place-order-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transform: translateX(-120%);
    transition: transform .45s ease;
    pointer-events: none;
}

body.sp-cart-page .sp-cart-checkout-button:hover::after,
body.sp-checkout-page .sp-place-order-btn:hover::after {
    transform: translateX(120%);
}

body.sp-checkout-page .sp-checkout-grid {
    gap: 32px;
}

body.sp-checkout-page .sp-checkout-card {
    border-color: rgba(42,37,32,.09);
}

body.sp-checkout-page .sp-checkout-card:hover {
    border-color: rgba(139,115,83,.18);
}

body.sp-checkout-page .sp-section-icon {
    font-variant-numeric: tabular-nums;
}

body.sp-checkout-page .sp-checkout-form .form-row.validate-required label::after {
    content: 'Required';
    display: inline-flex;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(138,58,43,.08);
    color: var(--sp-rust, #8A3A2B);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

body.sp-checkout-page .sp-checkout-form .form-row.woocommerce-invalid input.input-text,
body.sp-checkout-page .sp-checkout-form .form-row.woocommerce-invalid select,
body.sp-checkout-page .sp-checkout-form .form-row.woocommerce-invalid textarea,
body.sp-checkout-page .sp-checkout-form .form-row.woocommerce-invalid .select2-container .select2-selection--single {
    border-color: rgba(185,28,28,.72) !important;
    box-shadow: 0 0 0 4px rgba(185,28,28,.10) !important;
}

body.sp-checkout-page .sp-review-order {
    position: relative;
}

body.sp-checkout-page .sp-review-table tr.cart_item:last-child th,
body.sp-checkout-page .sp-review-table tr.cart_item:last-child td {
    border-bottom-color: rgba(42,37,32,.18) !important;
}

body.sp-checkout-page .sp-review-table tfoot tr th,
body.sp-checkout-page .sp-review-table tfoot tr td {
    font-size: .96rem;
}

body.sp-checkout-page .sp-review-table tfoot tr.order-total th,
body.sp-checkout-page .sp-review-table tfoot tr.order-total td {
    padding-top: 18px !important;
}

body.sp-checkout-page .sp-support-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    margin-top: 18px;
}

body.sp-checkout-page .sp-support-card::before {
    display: none;
}

body.sp-checkout-page .sp-support-card__item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(42,37,32,.09);
    border-radius: 16px;
    background: rgba(255,250,243,.72);
}

body.sp-checkout-page .sp-support-card__item i,
body.sp-checkout-page .sp-support-card__item .spc-theme-icon {
    width: 36px;
    height: 36px;
    padding: 9px;
    border-radius: 999px;
    background: rgba(138,58,43,.09);
    color: var(--sp-rust, #8A3A2B);
}

body.sp-checkout-page .sp-support-card__item strong,
body.sp-checkout-page .sp-support-card__item small {
    display: block;
}

body.sp-checkout-page .sp-support-card__item strong {
    color: var(--sp-ink, #2A2520);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
}

body.sp-checkout-page .sp-support-card__item small {
    margin-top: 3px;
    color: var(--sp-muted, #6E6256);
    font-size: 12.5px;
    line-height: 1.35;
}

body.sp-checkout-page #payment .payment_methods,
body.sp-checkout-page #payment .place-order {
    background: transparent !important;
}

body.sp-checkout-page #payment .form-row.place-order {
    margin-bottom: 0 !important;
}

body.sp-checkout-page .woocommerce-terms-and-conditions-wrapper a,
body.sp-cart-page .sp-cart-help-box a {
    color: var(--sp-rust, #8A3A2B);
    font-weight: 850;
}

@media (max-width: 1040px) {
    body.sp-checkout-page .sp-checkout-progress {
        border-radius: 24px;
    }
}

@media (max-width: 760px) {
    body.sp-cart-page .sp-cart-flow,
    body.sp-checkout-page .sp-checkout-progress {
        align-items: stretch;
        border-radius: 22px;
    }

    body.sp-cart-page .sp-cart-flow__step,
    body.sp-checkout-page .sp-checkout-progress__item {
        width: 100%;
        white-space: normal;
    }

    body.sp-cart-page .sp-cart-flow__line,
    body.sp-checkout-page .sp-checkout-progress__line {
        display: none;
    }

    body.sp-cart-page .sp-cart-item__bottom {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(42,37,32,.10);
    }

    body.sp-checkout-page .sp-checkout-shell {
        width: min(100% - 24px, 1200px);
        margin-top: 24px;
    }

    body.sp-checkout-page .sp-checkout-card {
        padding: 20px;
    }

    body.sp-checkout-page .sp-section-head {
        gap: 12px;
    }

    body.sp-checkout-page .sp-section-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 520px) {
    body.sp-cart-page .sp-cart-hero__meta {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    body.sp-checkout-page .sp-coupon-card .checkout_coupon,
    body.sp-checkout-page .sp-order-coupon-row {
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-order-coupon-apply {
        width: 100%;
    }
}


/* =========================================================
   v1.2.21 Customer-facing premium UI polish
   Scoped to Craft Checkout cart and checkout pages only.
   No cart, tax, shipping, payment, or order logic changed.
   ========================================================= */

body.sp-cart-page,
body.sp-checkout-page {
    --sp-premium-bg: #f7f1e8;
    --sp-premium-surface: #fffaf3;
    --sp-premium-surface-strong: #ffffff;
    --sp-premium-ink: var(--sp-ink, #2A2520);
    --sp-premium-muted: var(--sp-muted, #6E6256);
    --sp-premium-line: rgba(42, 37, 32, .105);
    --sp-premium-line-strong: rgba(42, 37, 32, .16);
    --sp-premium-accent: var(--sp-rust, #8A3A2B);
    --sp-premium-clay: var(--sp-clay, #8B7353);
    --sp-premium-radius-lg: 30px;
    --sp-premium-radius-md: 22px;
    --sp-premium-radius-sm: 15px;
    --sp-premium-shadow-soft: 0 18px 45px rgba(42, 37, 32, .075);
    --sp-premium-shadow-card: 0 12px 32px rgba(42, 37, 32, .065);
    --sp-premium-shadow-hover: 0 20px 46px rgba(42, 37, 32, .11);
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 115, 83, .13), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(138, 58, 43, .09), transparent 30%),
        var(--sp-premium-bg) !important;
}

body.sp-cart-page .sp-cart-shell,
body.sp-checkout-page .sp-checkout-form {
    color: var(--sp-premium-ink);
}

body.sp-cart-page .sp-cart-shell a,
body.sp-checkout-page .sp-checkout-form a {
    text-underline-offset: 3px;
}

body.sp-cart-page .sp-cart-hero,
body.sp-checkout-page .sp-checkout-progress,
body.sp-cart-page .sp-cart-card,
body.sp-cart-page .cart_totals,
body.sp-checkout-page .sp-checkout-card,
body.sp-checkout-page .sp-support-card {
    border: 1px solid var(--sp-premium-line) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,250,243,.94)) !important;
    box-shadow: var(--sp-premium-shadow-card) !important;
}

body.sp-cart-page .sp-cart-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--sp-premium-radius-lg) !important;
    padding: clamp(24px, 4vw, 46px) !important;
}

body.sp-cart-page .sp-cart-hero::before,
body.sp-checkout-page .sp-checkout-card::before,
body.sp-cart-page .sp-cart-card::before,
body.sp-cart-page .cart_totals::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(138,58,43,.58), rgba(139,115,83,.34), rgba(138,58,43,.08));
    pointer-events: none;
}

body.sp-cart-page .sp-cart-kicker,
body.sp-cart-page .sp-cart-eyebrow,
body.sp-checkout-page .sp-section-head__content > p,
body.sp-cart-page .sp-cart-item__price-block span,
body.sp-cart-page .sp-cart-item__qty-block span,
body.sp-cart-page .sp-cart-item__subtotal-block span {
    color: var(--sp-premium-muted) !important;
}

body.sp-cart-page .sp-cart-hero h1 {
    max-width: 760px;
    letter-spacing: -.045em;
}

body.sp-cart-page .sp-cart-hero p {
    max-width: 680px;
    font-size: clamp(.98rem, 1.6vw, 1.08rem) !important;
}

body.sp-cart-page .sp-cart-hero__meta {
    min-width: 130px;
    border-radius: 24px !important;
    background: rgba(255,255,255,.74) !important;
    border: 1px solid rgba(42,37,32,.1) !important;
    box-shadow: 0 16px 30px rgba(42,37,32,.07) !important;
}

body.sp-cart-page .sp-cart-flow,
body.sp-checkout-page .sp-checkout-progress {
    background: rgba(255,255,255,.74) !important;
    border: 1px solid rgba(42,37,32,.09) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 24px rgba(42,37,32,.045) !important;
}

body.sp-cart-page .sp-cart-flow__step,
body.sp-checkout-page .sp-checkout-progress__item {
    border-radius: 999px;
    font-weight: 850 !important;
}

body.sp-cart-page .sp-cart-flow__step strong,
body.sp-checkout-page .sp-checkout-progress__item strong,
body.sp-checkout-page .sp-section-icon {
    box-shadow: 0 8px 16px rgba(138,58,43,.16);
}

body.sp-cart-page .sp-cart-layout {
    align-items: start;
}

body.sp-cart-page .sp-cart-card,
body.sp-cart-page .cart_totals,
body.sp-checkout-page .sp-checkout-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--sp-premium-radius-lg) !important;
}

body.sp-cart-page .sp-cart-card__head,
body.sp-cart-page .sp-cart-summary-head,
body.sp-checkout-page .sp-section-head {
    align-items: start;
}

body.sp-cart-page .sp-cart-card__head h2,
body.sp-cart-page .cart_totals h2,
body.sp-checkout-page .sp-section-head h2,
body.sp-checkout-page .sp-section-head__content h2 {
    letter-spacing: -.025em;
}

body.sp-cart-page .sp-cart-continue,
body.sp-cart-page .sp-cart-continue-link {
    border: 1px solid rgba(42,37,32,.11) !important;
    background: rgba(255,255,255,.74) !important;
    border-radius: 999px !important;
    color: var(--sp-premium-ink) !important;
    font-weight: 850 !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

body.sp-cart-page .sp-cart-continue:hover,
body.sp-cart-page .sp-cart-continue-link:hover {
    transform: translateY(-1px);
    border-color: rgba(138,58,43,.24) !important;
    box-shadow: 0 10px 22px rgba(42,37,32,.08) !important;
}

body.sp-cart-page .sp-cart-items {
    gap: 16px !important;
}

body.sp-cart-page .sp-cart-item {
    border: 1px solid rgba(42,37,32,.095) !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg, #fff, rgba(255,250,243,.9)) !important;
    box-shadow: 0 10px 24px rgba(42,37,32,.045) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.sp-cart-page .sp-cart-item:hover {
    transform: translateY(-2px);
    border-color: rgba(139,115,83,.22) !important;
    box-shadow: var(--sp-premium-shadow-hover) !important;
}

body.sp-cart-page .sp-cart-item__image,
body.sp-cart-page .sp-cart-item__media img {
    border-radius: 18px !important;
    box-shadow: 0 10px 20px rgba(42,37,32,.07);
}

body.sp-cart-page .sp-cart-item__title a,
body.sp-cart-page .sp-cart-item__title {
    color: var(--sp-premium-ink) !important;
    font-weight: 950 !important;
}

body.sp-cart-page .sp-cart-item__bottom {
    gap: 12px !important;
}

body.sp-cart-page .sp-cart-item__price-block,
body.sp-cart-page .sp-cart-item__qty-block,
body.sp-cart-page .sp-cart-item__subtotal-block {
    padding: 13px 14px !important;
    border: 1px solid rgba(42,37,32,.08) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.68) !important;
}

body.sp-cart-page .sp-cart-item__subtotal-block {
    background: rgba(138,58,43,.055) !important;
}

body.sp-cart-page .sp-cart-qty-control,
body.sp-cart-page .sp-cart-qty-btn,
body.sp-cart-page .sp-cart-form input.qty {
    border-radius: 999px !important;
}

body.sp-cart-page .sp-cart-qty-btn {
    border: 1px solid rgba(42,37,32,.12) !important;
    background: #fff !important;
    color: var(--sp-premium-ink) !important;
    transition: transform .14s ease, background-color .14s ease, border-color .14s ease;
}

body.sp-cart-page .sp-cart-qty-btn:hover,
body.sp-cart-page .sp-cart-qty-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(138,58,43,.28) !important;
    color: var(--sp-premium-accent) !important;
}

body.sp-cart-page .sp-cart-remove {
    border-radius: 999px !important;
    border: 1px solid rgba(138,58,43,.15) !important;
    background: rgba(138,58,43,.055) !important;
    color: var(--sp-premium-accent) !important;
    font-weight: 850 !important;
}

body.sp-cart-page .sp-cart-remove:hover {
    background: rgba(138,58,43,.1) !important;
}

body.sp-cart-page .cart_totals,
body.sp-checkout-page .sp-order-sticky {
    position: sticky;
    top: 24px;
}

body.sp-cart-page .shop_table.shop_table_responsive,
body.sp-cart-page .cart_totals table,
body.sp-checkout-page .sp-review-table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

body.sp-cart-page .cart_totals tr,
body.sp-checkout-page .sp-review-table tfoot tr {
    background: rgba(255,255,255,.68) !important;
    border-radius: 16px !important;
}

body.sp-cart-page .sp-cart-summary-perks {
    padding: 14px !important;
    border-radius: 20px !important;
    background: rgba(255,250,243,.8) !important;
    border: 1px solid rgba(42,37,32,.085) !important;
}

body.sp-cart-page .sp-cart-checkout-button,
body.sp-checkout-page .sp-place-order-btn,
body.sp-checkout-page #place_order {
    min-height: 54px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background: linear-gradient(135deg, var(--sp-premium-ink), #171310) !important;
    color: #fff !important;
    font-weight: 950 !important;
    letter-spacing: .01em;
    box-shadow: 0 16px 30px rgba(42,37,32,.2) !important;
}

body.sp-cart-page .sp-cart-checkout-button:hover,
body.sp-checkout-page .sp-place-order-btn:hover,
body.sp-checkout-page #place_order:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(42,37,32,.24) !important;
}

body.sp-cart-page .sp-cart-help-box,
body.sp-checkout-page .woocommerce-terms-and-conditions-wrapper {
    border-radius: 18px !important;
    border: 1px solid rgba(42,37,32,.08) !important;
    background: rgba(255,255,255,.62) !important;
}

body.sp-cart-page .woocommerce-message,
body.sp-cart-page .woocommerce-info,
body.sp-cart-page .woocommerce-error,
body.sp-checkout-page .woocommerce-message,
body.sp-checkout-page .woocommerce-info,
body.sp-checkout-page .woocommerce-error {
    border-radius: 18px !important;
    border: 1px solid rgba(42,37,32,.11) !important;
    box-shadow: 0 12px 28px rgba(42,37,32,.06) !important;
}

body.sp-checkout-page .sp-checkout-form {
    width: min(100% - 32px, 1240px);
    margin: clamp(22px, 3.5vw, 44px) auto !important;
}

body.sp-checkout-page .sp-checkout-grid {
    gap: clamp(20px, 3vw, 34px) !important;
    align-items: start;
}

body.sp-checkout-page .sp-checkout-progress {
    border-radius: var(--sp-premium-radius-lg) !important;
    padding: 12px !important;
    margin-bottom: 24px !important;
}

body.sp-checkout-page .sp-checkout-progress__item--active,
body.sp-cart-page .sp-cart-flow__step--active {
    background: rgba(138,58,43,.075) !important;
    color: var(--sp-premium-ink) !important;
}

body.sp-checkout-page .sp-checkout-card {
    padding: clamp(20px, 2.5vw, 30px) !important;
}

body.sp-checkout-page .sp-section-icon {
    background: linear-gradient(135deg, var(--sp-premium-accent), var(--sp-premium-clay)) !important;
    color: #fff !important;
    border: 0 !important;
}

body.sp-checkout-page .sp-checkout-form .form-row label,
body.sp-checkout-page .sp-checkout-form label {
    font-weight: 850 !important;
    letter-spacing: -.005em;
}

body.sp-checkout-page .sp-checkout-form input.input-text,
body.sp-checkout-page .sp-checkout-form textarea,
body.sp-checkout-page .sp-checkout-form select,
body.sp-checkout-page .sp-checkout-form .select2-container .select2-selection--single {
    min-height: 50px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(42,37,32,.135) !important;
    background: rgba(255,255,255,.86) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88) !important;
}

body.sp-checkout-page .sp-checkout-form input.input-text:focus,
body.sp-checkout-page .sp-checkout-form textarea:focus,
body.sp-checkout-page .sp-checkout-form select:focus,
body.sp-checkout-page .sp-checkout-form .select2-container--open .select2-selection--single {
    border-color: rgba(138,58,43,.42) !important;
    box-shadow: 0 0 0 4px rgba(138,58,43,.1), inset 0 1px 0 rgba(255,255,255,.88) !important;
}

body.sp-checkout-page .sp-order-card {
    padding: 0 !important;
}

body.sp-checkout-page .sp-order-card > .sp-section-head {
    padding: 26px 26px 0 !important;
}

body.sp-checkout-page .sp-order-coupon,
body.sp-checkout-page .sp-review-order,
body.sp-checkout-page #payment {
    margin-left: 26px !important;
    margin-right: 26px !important;
}

body.sp-checkout-page #payment {
    margin-bottom: 26px !important;
}

body.sp-checkout-page .sp-review-table tbody tr.cart_item {
    border: 1px solid rgba(42,37,32,.08) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: 0 8px 18px rgba(42,37,32,.035) !important;
}

body.sp-checkout-page .sp-mini-thumb img {
    border-radius: 14px !important;
    box-shadow: 0 8px 16px rgba(42,37,32,.055);
}

body.sp-checkout-page .sp-mini-info strong {
    font-weight: 950 !important;
    letter-spacing: -.01em;
}

body.sp-checkout-page .sp-mini-qty {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(139,115,83,.1);
    color: var(--sp-premium-muted);
    font-size: 12px !important;
    font-weight: 850 !important;
}

body.sp-checkout-page .sp-payment-methods li,
body.sp-checkout-page #payment ul.payment_methods li {
    border: 1px solid rgba(42,37,32,.1) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.74) !important;
    padding: 14px 15px !important;
    margin-bottom: 10px !important;
}

body.sp-checkout-page .sp-payment-methods li label,
body.sp-checkout-page #payment ul.payment_methods li label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 900 !important;
}

body.sp-checkout-page .sp-payment-methods li input[type="radio"]:checked + label,
body.sp-checkout-page #payment ul.payment_methods li input[type="radio"]:checked + label {
    color: var(--sp-premium-accent) !important;
}

body.sp-checkout-page .payment_box {
    margin-top: 12px !important;
    padding: 14px !important;
    border-radius: 16px !important;
    background: rgba(243,238,229,.64) !important;
    color: var(--sp-premium-muted) !important;
}

body.sp-checkout-page .sp-support-card {
    border-radius: var(--sp-premium-radius-md) !important;
}

body.sp-checkout-page .sp-support-card__item {
    border-radius: 18px !important;
    background: rgba(255,255,255,.72) !important;
}

body.sp-cart-page .sp-cart-empty-hero {
    min-height: 360px;
    align-items: center;
}

body.sp-cart-page .sp-cart-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

body.sp-cart-page .sp-cart-empty-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--sp-premium-ink);
    color: #fff !important;
    font-weight: 950;
    text-decoration: none !important;
    box-shadow: 0 16px 30px rgba(42,37,32,.18);
}

body.sp-cart-page .sp-cart-empty-btn:hover {
    transform: translateY(-1px);
}

body.sp-cart-page .sp-cart-shell :focus-visible,
body.sp-checkout-page .sp-checkout-form :focus-visible {
    outline: 3px solid rgba(138,58,43,.24) !important;
    outline-offset: 3px !important;
}

@media (max-width: 1024px) {
    body.sp-cart-page .cart_totals,
    body.sp-checkout-page .sp-order-sticky {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 760px) {
    body.sp-cart-page .sp-cart-shell,
    body.sp-checkout-page .sp-checkout-form {
        width: min(100% - 22px, 1240px) !important;
    }

    body.sp-cart-page .sp-cart-hero,
    body.sp-cart-page .sp-cart-card,
    body.sp-cart-page .cart_totals,
    body.sp-checkout-page .sp-checkout-card,
    body.sp-checkout-page .sp-checkout-progress {
        border-radius: 22px !important;
    }

    body.sp-cart-page .sp-cart-card__head,
    body.sp-cart-page .sp-cart-item__top,
    body.sp-cart-page .sp-cart-item__bottom {
        gap: 12px !important;
    }

    body.sp-cart-page .sp-cart-item__price-block,
    body.sp-cart-page .sp-cart-item__qty-block,
    body.sp-cart-page .sp-cart-item__subtotal-block {
        width: 100%;
    }

    body.sp-checkout-page .sp-order-card > .sp-section-head {
        padding: 20px 20px 0 !important;
    }

    body.sp-checkout-page .sp-order-coupon,
    body.sp-checkout-page .sp-review-order,
    body.sp-checkout-page #payment {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

@media (max-width: 520px) {
    body.sp-cart-page .sp-cart-hero,
    body.sp-checkout-page .sp-checkout-card {
        padding: 18px !important;
    }

    body.sp-cart-page .sp-cart-item {
        padding: 12px !important;
    }

    body.sp-cart-page .sp-cart-item__bottom {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-checkout-progress {
        padding: 10px !important;
    }

    body.sp-checkout-page .sp-payment-methods li,
    body.sp-checkout-page #payment ul.payment_methods li {
        padding: 12px !important;
    }
}


/*
   v1.2.22 Spacious cart and checkout layout fix
   Prevents the cart and checkout from feeling squeezed inside narrow theme content wrappers.
*/
body.sp-cart-page .woocommerce,
body.sp-checkout-page .woocommerce,
body.sp-cart-page .entry-content,
body.sp-checkout-page .entry-content,
body.sp-cart-page .wp-block-post-content,
body.sp-checkout-page .wp-block-post-content {
    overflow: visible !important;
}

body.sp-cart-page .sp-cart-shell {
    width: min(1420px, calc(100vw - 56px)) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
    container-type: inline-size;
}

body.sp-cart-page .woocommerce-notices-wrapper,
body.sp-checkout-page .woocommerce-notices-wrapper {
    width: min(1420px, calc(100vw - 56px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.sp-cart-page .sp-cart-layout {
    grid-template-columns: minmax(680px, 1fr) minmax(360px, 420px) !important;
    gap: clamp(28px, 3vw, 42px) !important;
}

body.sp-checkout-page .sp-checkout-grid {
    grid-template-columns: minmax(680px, 1fr) minmax(380px, 460px) !important;
    gap: clamp(30px, 3vw, 44px) !important;
}

body.sp-cart-page .sp-cart-card,
body.sp-cart-page .sp-cart-totals-card,
body.sp-checkout-page .sp-checkout-card {
    padding: clamp(26px, 2.25vw, 36px) !important;
}

body.sp-cart-page .sp-cart-card__head,
body.sp-cart-page .sp-cart-summary-head,
body.sp-checkout-page .sp-section-head {
    margin-bottom: 24px !important;
}

body.sp-cart-page .sp-cart-items {
    gap: 18px !important;
}

body.sp-cart-page .sp-cart-item {
    grid-template-columns: 138px minmax(0, 1fr) !important;
    gap: 24px !important;
    padding: 22px !important;
}

body.sp-cart-page .sp-cart-item__image,
body.sp-cart-page .sp-cart-item__media img {
    width: 138px !important;
    height: 138px !important;
}

body.sp-cart-page .sp-cart-item__top {
    align-items: flex-start !important;
}

body.sp-cart-page .sp-cart-item__bottom {
    grid-template-columns: minmax(120px, .75fr) minmax(190px, 1fr) minmax(130px, .75fr) !important;
    gap: 16px !important;
    margin-top: 22px !important;
}

body.sp-cart-page .sp-cart-item__price-block,
body.sp-cart-page .sp-cart-item__qty-block,
body.sp-cart-page .sp-cart-item__subtotal-block {
    min-width: 0 !important;
    padding: 14px 16px !important;
}

body.sp-cart-page .sp-cart-actions-row {
    gap: 18px !important;
    align-items: end !important;
}

body.sp-cart-page .sp-cart-coupon {
    min-width: min(100%, 360px) !important;
}

body.sp-cart-page .sp-cart-coupon__controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
}

body.sp-cart-page .sp-cart-total-row--grand {
    padding: 20px 22px !important;
}

body.sp-checkout-page .sp-order-card > .sp-section-head {
    padding: 30px 30px 0 !important;
}

body.sp-checkout-page .sp-order-coupon,
body.sp-checkout-page .sp-review-order,
body.sp-checkout-page #payment {
    margin-left: 30px !important;
    margin-right: 30px !important;
}

body.sp-checkout-page #payment {
    margin-bottom: 30px !important;
}

@container (max-width: 1120px) {
    body.sp-cart-page .sp-cart-layout,
    body.sp-checkout-page .sp-checkout-grid {
        grid-template-columns: 1fr !important;
    }

    body.sp-cart-page .sp-cart-sidebar,
    body.sp-cart-page .cart_totals,
    body.sp-checkout-page .sp-order-sticky {
        position: static !important;
        top: auto !important;
    }
}

@container (max-width: 820px) {
    body.sp-cart-page .sp-cart-hero,
    body.sp-cart-page .sp-cart-card,
    body.sp-cart-page .sp-cart-totals-card,
    body.sp-checkout-page .sp-checkout-card,
    body.sp-checkout-page .sp-checkout-progress {
        border-radius: 22px !important;
    }

    body.sp-cart-page .sp-cart-item {
        grid-template-columns: 112px minmax(0, 1fr) !important;
        gap: 18px !important;
        padding: 18px !important;
    }

    body.sp-cart-page .sp-cart-item__image,
    body.sp-cart-page .sp-cart-item__media img {
        width: 112px !important;
        height: 112px !important;
    }

    body.sp-cart-page .sp-cart-item__bottom {
        grid-template-columns: 1fr 1fr !important;
    }

    body.sp-cart-page .sp-cart-item__subtotal-block {
        grid-column: 1 / -1 !important;
    }

    body.sp-cart-page .sp-cart-actions-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body.sp-cart-page .sp-cart-coupon,
    body.sp-cart-page .sp-cart-coupon__controls,
    body.sp-cart-page .sp-cart-update-btn {
        width: 100% !important;
    }
}

@container (max-width: 560px) {
    body.sp-cart-page .sp-cart-shell,
    body.sp-checkout-page .sp-checkout-form {
        width: min(100vw - 22px, 1420px) !important;
    }

    body.sp-cart-page .sp-cart-card,
    body.sp-cart-page .sp-cart-totals-card,
    body.sp-checkout-page .sp-checkout-card {
        padding: 18px !important;
    }

    body.sp-cart-page .sp-cart-item {
        grid-template-columns: 1fr !important;
    }

    body.sp-cart-page .sp-cart-item__image,
    body.sp-cart-page .sp-cart-item__media img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    body.sp-cart-page .sp-cart-item__bottom {
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-order-card > .sp-section-head {
        padding: 20px 20px 0 !important;
    }

    body.sp-checkout-page .sp-order-coupon,
    body.sp-checkout-page .sp-review-order,
    body.sp-checkout-page #payment {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

/*
   v1.2.23 Checkout layout and editable color correction
   Fixes the wonky checkout caused by widening the form independently of the shell.
   Also prevents toggles from inheriting primary action button colors.
*/
body.sp-checkout-page,
body.sp-cart-page {
    --sp-editable-primary: var(--sp-clay, #2A2520);
    --sp-editable-accent: var(--sp-rust, #8A3A2B);
    --sp-editable-bg: var(--sp-cream, #F3EEE5);
    --sp-editable-surface: var(--sp-card, #FFFAF3);
    --sp-editable-surface-2: var(--sp-cream-2, #FBF7F0);
    --sp-editable-text: var(--sp-ink, #2A2520);
    --sp-editable-muted: var(--sp-muted, #6E6256);
    --sp-editable-line: color-mix(in srgb, var(--sp-editable-text) 12%, transparent);
    --sp-editable-line-strong: color-mix(in srgb, var(--sp-editable-primary) 30%, transparent);
    --sp-editable-accent-soft: color-mix(in srgb, var(--sp-editable-accent) 10%, white);
    --sp-editable-primary-soft: color-mix(in srgb, var(--sp-editable-primary) 10%, white);
}

body.sp-checkout-page .sp-checkout-shell {
    width: min(1420px, calc(100vw - 56px)) !important;
    max-width: none !important;
    margin: clamp(22px, 3vw, 42px) auto 64px !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

body.sp-checkout-page .sp-checkout-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    container-type: inline-size;
}

body.sp-checkout-page .sp-checkout-hero,
body.sp-checkout-page .spc-free-shipping-bar,
body.sp-checkout-page .spc-cart-notices,
body.sp-checkout-page .spc-trust-badges,
body.sp-checkout-page .sp-checkout-progress,
body.sp-checkout-page .sp-checkout-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-checkout-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
    gap: clamp(24px, 2.6vw, 38px) !important;
    align-items: start !important;
}

body.sp-checkout-page .sp-checkout-main,
body.sp-checkout-page .sp-checkout-sidebar,
body.sp-checkout-page .sp-order-sticky,
body.sp-checkout-page .sp-order-card,
body.sp-checkout-page .sp-review-order,
body.sp-checkout-page #order_review,
body.sp-checkout-page #payment {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .spc-trust-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body.sp-checkout-page .spc-trust-badge {
    min-width: 0 !important;
    border-color: var(--sp-editable-line) !important;
    background: var(--sp-editable-surface) !important;
    color: var(--sp-editable-text) !important;
}

body.sp-checkout-page .spc-trust-badge i,
body.sp-checkout-page .spc-trust-badge .spc-theme-icon {
    color: var(--sp-editable-accent) !important;
}

body.sp-checkout-page .sp-checkout-progress {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    border-color: var(--sp-editable-line) !important;
    background: color-mix(in srgb, var(--sp-editable-surface) 88%, white) !important;
}

body.sp-checkout-page .sp-checkout-progress__item,
body.sp-cart-page .sp-cart-flow__step {
    border-color: var(--sp-editable-line) !important;
    background: color-mix(in srgb, var(--sp-editable-surface) 88%, white) !important;
    color: var(--sp-editable-muted) !important;
}

body.sp-checkout-page .sp-checkout-progress__item strong,
body.sp-cart-page .sp-cart-flow__step strong {
    background: color-mix(in srgb, var(--sp-editable-primary) 12%, white) !important;
    color: var(--sp-editable-primary) !important;
}

body.sp-checkout-page .sp-checkout-progress__item--active,
body.sp-cart-page .sp-cart-flow__step--active {
    border-color: color-mix(in srgb, var(--sp-editable-accent) 34%, transparent) !important;
    background: color-mix(in srgb, var(--sp-editable-accent) 10%, white) !important;
    color: var(--sp-editable-text) !important;
}

body.sp-checkout-page .sp-checkout-progress__item--active strong,
body.sp-cart-page .sp-cart-flow__step--active strong,
body.sp-checkout-page .sp-section-icon {
    background: var(--sp-editable-primary) !important;
    color: #fff !important;
    border-color: var(--sp-editable-primary) !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--sp-editable-primary) 22%, transparent) !important;
}

body.sp-checkout-page .sp-checkout-card::before,
body.sp-cart-page .sp-cart-card::before,
body.sp-cart-page .cart_totals::before,
body.sp-cart-page .sp-cart-hero::before {
    background: linear-gradient(90deg, var(--sp-editable-accent), color-mix(in srgb, var(--sp-editable-primary) 45%, transparent), transparent) !important;
}

body.sp-checkout-page .sp-checkout-card,
body.sp-checkout-page .sp-support-card,
body.sp-checkout-page .sp-delivery-card,
body.sp-cart-page .sp-cart-card,
body.sp-cart-page .cart_totals,
body.sp-cart-page .sp-cart-totals-card {
    border-color: var(--sp-editable-line) !important;
    background: var(--sp-editable-surface) !important;
    color: var(--sp-editable-text) !important;
}

body.sp-checkout-page .sp-section-head h2,
body.sp-checkout-page .sp-section-head__content h2,
body.sp-checkout-page .sp-shipping-title,
body.sp-checkout-page .sp-order-coupon-title,
body.sp-checkout-page .sp-coupon-title,
body.sp-checkout-page .sp-review-table,
body.sp-checkout-page .sp-review-table th,
body.sp-checkout-page .sp-review-table td {
    color: var(--sp-editable-text) !important;
}

body.sp-checkout-page .sp-section-head p,
body.sp-checkout-page .sp-shipping-subtitle,
body.sp-checkout-page .sp-order-coupon-subtitle,
body.sp-checkout-page .sp-coupon-subtitle,
body.sp-checkout-page .sp-support-card__item small {
    color: var(--sp-editable-muted) !important;
}

/* Non-action controls must never inherit the primary button color. */
body.sp-checkout-page .sp-checkout-form .sp-shipping-toggle,
body.sp-checkout-page .sp-checkout-form .sp-order-coupon-toggle,
body.sp-checkout-page .sp-checkout-form .sp-coupon-toggle,
body.sp-checkout-page .sp-shipping-toggle,
body.sp-checkout-page .sp-order-coupon-toggle,
body.sp-checkout-page .sp-coupon-toggle {
    min-height: unset !important;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--sp-editable-text) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
}

body.sp-checkout-page .sp-checkout-form .sp-shipping-toggle:hover,
body.sp-checkout-page .sp-checkout-form .sp-order-coupon-toggle:hover,
body.sp-checkout-page .sp-checkout-form .sp-coupon-toggle:hover,
body.sp-checkout-page .sp-shipping-toggle:hover,
body.sp-checkout-page .sp-order-coupon-toggle:hover,
body.sp-checkout-page .sp-coupon-toggle:hover {
    background: color-mix(in srgb, var(--sp-editable-primary) 7%, var(--sp-editable-surface)) !important;
    color: var(--sp-editable-text) !important;
    box-shadow: none !important;
    transform: none !important;
}

body.sp-checkout-page .sp-coupon-chevron,
body.sp-checkout-page .sp-order-coupon-chevron {
    border-color: var(--sp-editable-accent) !important;
}

body.sp-checkout-page .sp-checkout-form input.input-text:focus,
body.sp-checkout-page .sp-checkout-form textarea:focus,
body.sp-checkout-page .sp-checkout-form select:focus,
body.sp-checkout-page .sp-checkout-form .select2-container--open .select2-selection--single {
    border-color: color-mix(in srgb, var(--sp-editable-accent) 55%, transparent) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--sp-editable-accent) 13%, transparent) !important;
}

body.sp-checkout-page .sp-checkout-form .form-row.validate-required label::after {
    background: color-mix(in srgb, var(--sp-editable-accent) 10%, white) !important;
    color: var(--sp-editable-accent) !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method li > label,
body.sp-checkout-page #order_review ul#shipping_method li > label,
body.sp-checkout-page .sp-review-table ul#shipping_method li > label {
    border-color: var(--sp-editable-line) !important;
    background: color-mix(in srgb, var(--sp-editable-surface) 88%, white) !important;
    color: var(--sp-editable-text) !important;
}

body.sp-checkout-page .sp-delivery-card ul#shipping_method input[type="radio"]:checked + label,
body.sp-checkout-page .sp-delivery-card ul#shipping_method li.sp-shipping-selected > label,
body.sp-checkout-page #order_review ul#shipping_method input[type="radio"]:checked + label,
body.sp-checkout-page #order_review ul#shipping_method li.sp-shipping-selected > label,
body.sp-checkout-page .sp-review-table ul#shipping_method input[type="radio"]:checked + label,
body.sp-checkout-page .sp-review-table ul#shipping_method li.sp-shipping-selected > label {
    border-color: color-mix(in srgb, var(--sp-editable-accent) 48%, transparent) !important;
    background: color-mix(in srgb, var(--sp-editable-accent) 8%, var(--sp-editable-surface)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-editable-accent) 12%, transparent) !important;
}

body.sp-checkout-page #payment ul.payment_methods li,
body.sp-checkout-page .sp-payment-methods li,
body.sp-checkout-page .sp-support-card__item,
body.sp-cart-page .sp-cart-summary-perks {
    border-color: var(--sp-editable-line) !important;
    background: color-mix(in srgb, var(--sp-editable-surface) 88%, white) !important;
}

body.sp-checkout-page .sp-support-card__item i,
body.sp-checkout-page .sp-support-card__item .spc-theme-icon,
body.sp-cart-page .sp-cart-summary-perks i,
body.sp-cart-page .sp-cart-summary-perks .spc-theme-icon {
    background: color-mix(in srgb, var(--sp-editable-accent) 11%, white) !important;
    color: var(--sp-editable-accent) !important;
}

body.sp-checkout-page .sp-place-order-btn,
body.sp-checkout-page #place_order,
body.sp-checkout-page .sp-order-coupon-apply,
body.sp-checkout-page form.checkout_coupon .button,
body.sp-cart-page .sp-cart-checkout-button,
body.sp-cart-page .checkout-button {
    background: var(--sp-editable-primary) !important;
    border-color: var(--sp-editable-primary) !important;
}

body.sp-checkout-page .sp-place-order-btn:hover,
body.sp-checkout-page #place_order:hover,
body.sp-checkout-page .sp-order-coupon-apply:hover,
body.sp-checkout-page form.checkout_coupon .button:hover,
body.sp-cart-page .sp-cart-checkout-button:hover,
body.sp-cart-page .checkout-button:hover {
    background: var(--sp-editable-accent) !important;
    border-color: var(--sp-editable-accent) !important;
}

@media (max-width: 1180px) {
    body.sp-checkout-page .sp-checkout-grid {
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-order-sticky {
        position: static !important;
        top: auto !important;
    }

    body.sp-checkout-page .sp-checkout-sidebar {
        width: 100% !important;
    }
}

@media (max-width: 860px) {
    body.sp-checkout-page .sp-checkout-shell {
        width: calc(100vw - 24px) !important;
        margin-top: 18px !important;
    }

    body.sp-checkout-page .spc-trust-badges {
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-checkout-progress {
        border-radius: 22px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-checkout-progress__line {
        display: none !important;
    }
}

@media (max-width: 560px) {
    body.sp-checkout-page .sp-checkout-shell {
        width: calc(100vw - 18px) !important;
    }

    body.sp-checkout-page .sp-order-card > .sp-section-head,
    body.sp-checkout-page .sp-order-coupon,
    body.sp-checkout-page .sp-review-order,
    body.sp-checkout-page #payment {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    body.sp-checkout-page .sp-order-card > .sp-section-head {
        padding: 18px 0 0 !important;
    }
}


/*
   v1.2.24 Checkout centering fix
   Keeps the checkout centered as one shell and removes theme wrapper boxes behind it.
*/
body.sp-checkout-page .entry-content,
body.sp-checkout-page .wp-block-post-content,
body.sp-checkout-page .woocommerce,
body.sp-checkout-page main,
body.sp-checkout-page .site-main {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    overflow: visible !important;
}

body.sp-checkout-page .sp-checkout-shell {
    position: relative !important;
    width: min(1420px, calc(100vw - 56px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-checkout-form {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-checkout-hero,
body.sp-checkout-page .spc-free-shipping-bar,
body.sp-checkout-page .spc-cart-notices,
body.sp-checkout-page .spc-trust-badges,
body.sp-checkout-page .sp-checkout-progress,
body.sp-checkout-page .sp-checkout-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-checkout-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
}

@media (max-width: 1180px) {
    body.sp-checkout-page .sp-checkout-shell {
        width: calc(100vw - 32px) !important;
    }

    body.sp-checkout-page .sp-checkout-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    body.sp-checkout-page .sp-checkout-shell {
        width: calc(100vw - 18px) !important;
    }
}


/*
   v1.2.25 Checkout host wrapper cleanup
   Some themes wrap the WooCommerce shortcode in their own boxed/card container.
   This removes that visual box and keeps Craft Checkout centered inside one shell.
*/
body.sp-checkout-page .spc-checkout-host,
body.sp-checkout-page .spc-checkout-host.woocommerce,
body.sp-checkout-page .spc-checkout-host.entry-content,
body.sp-checkout-page .spc-checkout-host.wp-block-post-content,
body.sp-checkout-page .spc-checkout-host.wp-site-blocks,
body.sp-checkout-page .spc-checkout-host.site-main,
body.sp-checkout-page .spc-checkout-host main,
body.sp-checkout-page .entry-content:has(.sp-checkout-shell),
body.sp-checkout-page .wp-block-post-content:has(.sp-checkout-shell),
body.sp-checkout-page .woocommerce:has(.sp-checkout-shell),
body.sp-checkout-page main:has(.sp-checkout-shell),
body.sp-checkout-page .site-main:has(.sp-checkout-shell) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    overflow: visible !important;
    transform: none !important;
}

body.sp-checkout-page .spc-checkout-host::before,
body.sp-checkout-page .spc-checkout-host::after,
body.sp-checkout-page .entry-content:has(.sp-checkout-shell)::before,
body.sp-checkout-page .entry-content:has(.sp-checkout-shell)::after,
body.sp-checkout-page .woocommerce:has(.sp-checkout-shell)::before,
body.sp-checkout-page .woocommerce:has(.sp-checkout-shell)::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.sp-checkout-page .sp-checkout-shell {
    isolation: isolate !important;
    clear: both !important;
    display: block !important;
    width: min(var(--spc-content-width, 1420px), calc(100vw - 56px)) !important;
    max-width: none !important;
    margin: 42px auto 64px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-checkout-shell > *,
body.sp-checkout-page .sp-checkout-form > .spc-free-shipping-bar,
body.sp-checkout-page .sp-checkout-form > .spc-cart-notices,
body.sp-checkout-page .sp-checkout-form > .spc-trust-badges,
body.sp-checkout-page .sp-checkout-form > .sp-checkout-progress,
body.sp-checkout-page .sp-checkout-form > .sp-checkout-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-checkout-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 1180px) {
    body.sp-checkout-page .sp-checkout-shell {
        width: calc(100vw - 32px) !important;
    }
}

@media (max-width: 560px) {
    body.sp-checkout-page .sp-checkout-shell {
        width: calc(100vw - 18px) !important;
        margin-top: 18px !important;
        margin-bottom: 38px !important;
    }
}


/*
   v1.2.26 Checkout theme shell cleanup
   Removes remaining visual boxes from custom theme wrappers such as cds-container/cds-entry.
   The checkout cards remain styled. Only the host page wrappers behind the shortcode are neutralized.
*/
body.sp-checkout-page .spc-checkout-host,
body.sp-checkout-page .spc-checkout-host.cds-container,
body.sp-checkout-page .spc-checkout-host.cds-content-wrap,
body.sp-checkout-page .spc-checkout-host.cds-entry,
body.sp-checkout-page .spc-checkout-host.cds-entry-content,
body.sp-checkout-page .cds-container:has(.sp-checkout-shell),
body.sp-checkout-page .cds-content-wrap:has(.sp-checkout-shell),
body.sp-checkout-page .cds-entry:has(.sp-checkout-shell),
body.sp-checkout-page .cds-entry-content:has(.sp-checkout-shell),
body.sp-checkout-page article:has(.sp-checkout-shell),
body.sp-checkout-page .page:has(.sp-checkout-shell),
body.sp-checkout-page .hentry:has(.sp-checkout-shell),
body.sp-checkout-page .post:has(.sp-checkout-shell),
body.sp-checkout-page .type-page:has(.sp-checkout-shell) {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    overflow: visible !important;
    transform: none !important;
}

body.sp-checkout-page .spc-checkout-host::before,
body.sp-checkout-page .spc-checkout-host::after,
body.sp-checkout-page .cds-container:has(.sp-checkout-shell)::before,
body.sp-checkout-page .cds-container:has(.sp-checkout-shell)::after,
body.sp-checkout-page .cds-content-wrap:has(.sp-checkout-shell)::before,
body.sp-checkout-page .cds-content-wrap:has(.sp-checkout-shell)::after,
body.sp-checkout-page .cds-entry:has(.sp-checkout-shell)::before,
body.sp-checkout-page .cds-entry:has(.sp-checkout-shell)::after,
body.sp-checkout-page .cds-entry-content:has(.sp-checkout-shell)::before,
body.sp-checkout-page .cds-entry-content:has(.sp-checkout-shell)::after,
body.sp-checkout-page article:has(.sp-checkout-shell)::before,
body.sp-checkout-page article:has(.sp-checkout-shell)::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.sp-checkout-page .sp-checkout-shell {
    left: auto !important;
    right: auto !important;
    translate: none !important;
    transform: none !important;
}

/*
   v1.2.27 Checkout sidebar order summary anti-squish fix
   The checkout sidebar is intentionally narrower than the form column, so the order review must behave like stacked cards instead of a two-column table.
*/
body.sp-checkout-page .sp-checkout-sidebar,
body.sp-checkout-page .sp-order-sticky,
body.sp-checkout-page .sp-order-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.sp-checkout-page .sp-order-card {
    overflow: hidden !important;
    padding: clamp(20px, 2vw, 28px) !important;
}

body.sp-checkout-page .sp-order-card > .sp-section-head {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

body.sp-checkout-page .sp-order-card > .sp-section-head .sp-section-head__content,
body.sp-checkout-page .sp-order-card > .sp-section-head > div {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.sp-checkout-page .sp-order-card > .sp-section-head h2,
body.sp-checkout-page .sp-order-card > .sp-section-head p {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

body.sp-checkout-page .sp-review-order,
body.sp-checkout-page #order_review,
body.sp-checkout-page .sp-review-table,
body.sp-checkout-page .sp-review-table thead,
body.sp-checkout-page .sp-review-table tbody,
body.sp-checkout-page .sp-review-table tfoot {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-review-table {
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: visible !important;
}

body.sp-checkout-page .sp-review-table thead {
    display: none !important;
}

body.sp-checkout-page .sp-review-table tbody tr.cart_item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px 0 16px !important;
    border-bottom: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-review-table tbody tr.cart_item td,
body.sp-checkout-page .sp-review-table tbody tr.cart_item th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-review-table tbody tr.cart_item td.product-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    text-align: right !important;
    white-space: normal !important;
}

body.sp-checkout-page .sp-review-table tbody tr.cart_item td.product-total::before {
    content: 'Item subtotal';
    color: var(--sp-editable-muted, #6E6256) !important;
    font-size: .82rem !important;
    font-weight: 850 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

body.sp-checkout-page .sp-mini-product {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.sp-checkout-page .sp-mini-thumb {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

body.sp-checkout-page .sp-mini-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.sp-checkout-page .sp-mini-info {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.sp-checkout-page .sp-mini-info strong,
body.sp-checkout-page .sp-mini-info a {
    display: block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
}

body.sp-checkout-page .sp-mini-qty {
    display: inline-flex !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-top: 7px !important;
    white-space: nowrap !important;
}

body.sp-checkout-page .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) th,
body.sp-checkout-page .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) td {
    flex: 0 0 auto !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.sp-checkout-page .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) th {
    flex: 1 1 auto !important;
    overflow-wrap: anywhere !important;
}

body.sp-checkout-page .sp-review-table tfoot tr.order-total {
    padding-top: 20px !important;
    border-bottom: 0 !important;
}

body.sp-checkout-page #payment.sp-payment-box,
body.sp-checkout-page .sp-payment-box,
body.sp-checkout-page .sp-place-order-row,
body.sp-checkout-page .woocommerce-terms-and-conditions-wrapper,
body.sp-checkout-page .woocommerce-privacy-policy-text,
body.sp-checkout-page .wc_payment_methods,
body.sp-checkout-page .wc_payment_methods li,
body.sp-checkout-page .sp-payment-methods,
body.sp-checkout-page .sp-payment-methods li {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .wc_payment_methods,
body.sp-checkout-page .sp-payment-methods {
    display: block !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
}

body.sp-checkout-page .wc_payment_methods li,
body.sp-checkout-page .sp-payment-methods li,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-notice,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-info {
    display: block !important;
    padding: 16px !important;
    margin: 0 !important;
    border-radius: 18px !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.55 !important;
}

body.sp-checkout-page .woocommerce-privacy-policy-text {
    padding: 16px !important;
    border: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--sp-editable-surface, #fff) 86%, white) !important;
    color: var(--sp-editable-muted, #6E6256) !important;
    font-size: .92rem !important;
    line-height: 1.55 !important;
}

body.sp-checkout-page .woocommerce-privacy-policy-text p {
    margin: 0 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.sp-checkout-page .sp-place-order-btn,
body.sp-checkout-page #place_order {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 56px !important;
    white-space: normal !important;
}

@media (max-width: 1180px) {
    body.sp-checkout-page .sp-checkout-grid {
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-checkout-sidebar {
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 560px) {
    body.sp-checkout-page .sp-order-card {
        padding: 18px !important;
    }

    body.sp-checkout-page .sp-order-card > .sp-section-head,
    body.sp-checkout-page .sp-order-coupon,
    body.sp-checkout-page .sp-review-order,
    body.sp-checkout-page #payment {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.sp-checkout-page .sp-mini-product {
        grid-template-columns: 56px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    body.sp-checkout-page .sp-mini-thumb {
        width: 56px !important;
        height: 56px !important;
        flex-basis: 56px !important;
    }

    body.sp-checkout-page .sp-review-table tbody tr.cart_item td.product-total,
    body.sp-checkout-page .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) {
        gap: 10px !important;
    }
}

/*
   v1.2.28 Checkout right column containment + payment notice cleanup
   Fixes the order panel looking squeezed/off on the right side and removes the accidental blue text-selection box inside the no-payment notice.
*/
body.sp-checkout-page,
body.sp-checkout-page html {
    overflow-x: hidden !important;
}

body.sp-checkout-page .sp-checkout-shell {
    width: min(var(--spc-content-width, 1420px), calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.sp-checkout-page .sp-checkout-grid {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 520px) !important;
    gap: clamp(24px, 2.4vw, 36px) !important;
    justify-content: center !important;
}

body.sp-checkout-page .sp-checkout-sidebar,
body.sp-checkout-page .sp-order-sticky,
body.sp-checkout-page .sp-order-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: stretch !important;
}

body.sp-checkout-page .sp-order-card {
    padding: clamp(22px, 2.1vw, 30px) !important;
    overflow: visible !important;
}

body.sp-checkout-page #payment.sp-payment-box,
body.sp-checkout-page .sp-payment-box {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.sp-checkout-page #payment ul.payment_methods,
body.sp-checkout-page .sp-payment-methods,
body.sp-checkout-page #payment ul.payment_methods li,
body.sp-checkout-page .sp-payment-methods li,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-info,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-notice,
body.sp-checkout-page .sp-payment-methods li.woocommerce-info,
body.sp-checkout-page .sp-payment-methods li.woocommerce-notice {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page #payment ul.payment_methods li.woocommerce-info,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-notice,
body.sp-checkout-page .sp-payment-methods li.woocommerce-info,
body.sp-checkout-page .sp-payment-methods li.woocommerce-notice {
    padding: 16px 18px !important;
    border: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--sp-editable-surface, #fffaf3) 88%, white) !important;
    color: var(--sp-editable-text, #2A2520) !important;
    box-shadow: none !important;
    text-align: left !important;
    line-height: 1.55 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.sp-checkout-page #payment ul.payment_methods li.woocommerce-info::before,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-notice::before,
body.sp-checkout-page .sp-payment-methods li.woocommerce-info::before,
body.sp-checkout-page .sp-payment-methods li.woocommerce-notice::before {
    display: none !important;
    content: none !important;
}

body.sp-checkout-page #payment ul.payment_methods li.woocommerce-info::selection,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-info *::selection,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-notice::selection,
body.sp-checkout-page #payment ul.payment_methods li.woocommerce-notice *::selection,
body.sp-checkout-page .sp-payment-methods li.woocommerce-info::selection,
body.sp-checkout-page .sp-payment-methods li.woocommerce-info *::selection,
body.sp-checkout-page .sp-payment-methods li.woocommerce-notice::selection,
body.sp-checkout-page .sp-payment-methods li.woocommerce-notice *::selection {
    background: transparent !important;
    color: inherit !important;
}

body.sp-checkout-page .woocommerce-terms-and-conditions-wrapper,
body.sp-checkout-page .woocommerce-privacy-policy-text,
body.sp-checkout-page .sp-place-order-row,
body.sp-checkout-page #place_order,
body.sp-checkout-page .sp-place-order-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 1320px) {
    body.sp-checkout-page .sp-checkout-grid {
        grid-template-columns: 1fr !important;
    }

    body.sp-checkout-page .sp-checkout-sidebar {
        width: min(100%, 760px) !important;
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 620px) {
    body.sp-checkout-page .sp-checkout-shell {
        width: min(100%, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
    }

    body.sp-checkout-page .sp-order-card {
        padding: 18px !important;
        border-radius: 22px !important;
    }

    body.sp-checkout-page .sp-review-table tbody tr.cart_item td.product-total {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
    }
}


/*
   v1.2.29 Checkout order sidebar hard containment
   Fixes no-payment notices and Woo mobile table labels from spilling outside the right order card.
*/
body.sp-checkout-page .sp-checkout-sidebar,
body.sp-checkout-page .sp-order-sticky,
body.sp-checkout-page .sp-order-card,
body.sp-checkout-page .sp-review-order,
body.sp-checkout-page #order_review,
body.sp-checkout-page #payment,
body.sp-checkout-page #payment .form-row,
body.sp-checkout-page #payment ul.payment_methods,
body.sp-checkout-page .sp-payment-methods,
body.sp-checkout-page .woocommerce-terms-and-conditions-wrapper,
body.sp-checkout-page .woocommerce-privacy-policy-text {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-order-card {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

@supports not (overflow-x: clip) {
    body.sp-checkout-page .sp-order-card {
        overflow-x: hidden !important;
    }
}

body.sp-checkout-page #payment ul.payment_methods,
body.sp-checkout-page .sp-payment-methods {
    list-style: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.sp-checkout-page #payment ul.payment_methods > li,
body.sp-checkout-page .sp-payment-methods > li,
body.sp-checkout-page .sp-payment-message,
body.sp-checkout-page .sp-payment-message--empty {
    float: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: block !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--sp-editable-surface, #fffaf3) 88%, #ffffff) !important;
    color: var(--sp-editable-text, #2A2520) !important;
    box-shadow: none !important;
    text-align: left !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-indent: 0 !important;
}

body.sp-checkout-page #payment ul.payment_methods > li::before,
body.sp-checkout-page #payment ul.payment_methods > li::after,
body.sp-checkout-page .sp-payment-methods > li::before,
body.sp-checkout-page .sp-payment-methods > li::after,
body.sp-checkout-page .sp-payment-message::before,
body.sp-checkout-page .sp-payment-message::after {
    display: none !important;
    content: none !important;
}

body.sp-checkout-page .sp-review-table td.product-total::before,
body.sp-checkout-page .sp-review-table tfoot td::before,
body.sp-checkout-page .sp-review-table tfoot th::before {
    display: none !important;
    content: none !important;
}

body.sp-checkout-page .sp-review-table tbody tr.cart_item,
body.sp-checkout-page .sp-review-table tfoot tr {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    box-sizing: border-box !important;
}

body.sp-checkout-page .woocommerce-privacy-policy-text,
body.sp-checkout-page .woocommerce-privacy-policy-text p {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

@media (max-width: 1320px) {
    body.sp-checkout-page .sp-checkout-sidebar {
        inline-size: min(100%, 760px) !important;
        max-inline-size: min(100%, 760px) !important;
    }
}

@media (max-width: 620px) {
    body.sp-checkout-page .sp-order-card {
        padding-inline: 16px !important;
    }

    body.sp-checkout-page #payment ul.payment_methods > li,
    body.sp-checkout-page .sp-payment-methods > li,
    body.sp-checkout-page .sp-payment-message,
    body.sp-checkout-page .sp-payment-message--empty,
    body.sp-checkout-page .woocommerce-privacy-policy-text {
        padding: 14px 15px !important;
        border-radius: 16px !important;
    }
}

/*
   v1.2.30 Checkout sidebar no-cut layout
   Forces the order review/payment area to size from the card inward so notices,
   privacy text, totals, and product rows wrap instead of being clipped.
*/
body.sp-checkout-page .sp-order-card {
    overflow: visible !important;
    contain: none !important;
}

body.sp-checkout-page .sp-order-card,
body.sp-checkout-page .sp-order-card *,
body.sp-checkout-page .sp-order-card *::before,
body.sp-checkout-page .sp-order-card *::after {
    box-sizing: border-box !important;
}

body.sp-checkout-page .sp-order-card .sp-review-order,
body.sp-checkout-page .sp-order-card #order_review,
body.sp-checkout-page .sp-order-card .sp-review-table,
body.sp-checkout-page .sp-order-card .sp-review-table tbody,
body.sp-checkout-page .sp-order-card .sp-review-table tfoot,
body.sp-checkout-page .sp-order-card .sp-payment-box,
body.sp-checkout-page .sp-order-card #payment,
body.sp-checkout-page .sp-order-card .sp-place-order-row,
body.sp-checkout-page .sp-order-card .woocommerce-terms-and-conditions-wrapper,
body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text,
body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text p,
body.sp-checkout-page .sp-order-card .sp-payment-methods,
body.sp-checkout-page .sp-order-card .sp-payment-message {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table {
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tr,
body.sp-checkout-page .sp-order-card .sp-review-table th,
body.sp-checkout-page .sp-order-card .sp-review-table td {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: 12px !important;
    align-items: start !important;
    width: 100% !important;
    padding: 16px 0 !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-name,
body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-total {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-total {
    justify-self: end !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.sp-checkout-page .sp-order-card .sp-mini-product,
body.sp-checkout-page .sp-order-card .sp-mini-info,
body.sp-checkout-page .sp-order-card .sp-mini-info strong,
body.sp-checkout-page .sp-order-card .sp-mini-info a,
body.sp-checkout-page .sp-order-card .sp-mini-info .variation,
body.sp-checkout-page .sp-order-card .sp-mini-qty {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: 12px !important;
    width: 100% !important;
}

body.sp-checkout-page .sp-order-card .sp-payment-box {
    padding: 16px !important;
    margin-top: 16px !important;
}

body.sp-checkout-page .sp-order-card .sp-payment-message,
body.sp-checkout-page .sp-order-card .sp-payment-message--empty,
body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text {
    padding: 16px 18px !important;
    border: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--sp-editable-surface, #fffaf3) 86%, #ffffff) !important;
    line-height: 1.55 !important;
}

body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text p {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1320px) {
    body.sp-checkout-page .sp-checkout-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.sp-checkout-page .sp-checkout-sidebar,
    body.sp-checkout-page .sp-order-sticky,
    body.sp-checkout-page .sp-order-card {
        width: min(100%, 780px) !important;
        max-width: min(100%, 780px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 700px) {
    body.sp-checkout-page .sp-checkout-shell {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.sp-checkout-page .sp-order-card {
        padding: 16px !important;
        border-radius: 22px !important;
    }

    body.sp-checkout-page .sp-order-card .sp-section-head {
        gap: 12px !important;
        align-items: flex-start !important;
    }

    body.sp-checkout-page .sp-order-card .sp-section-icon {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-total {
        justify-self: stretch !important;
        text-align: left !important;
        padding-left: 0 !important;
        white-space: normal !important;
    }

    body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-total::before {
        content: 'Item subtotal' !important;
        display: block !important;
        margin: 0 0 5px !important;
        color: var(--sp-editable-muted, #6E6256) !important;
        font-size: .78rem !important;
        font-weight: 850 !important;
        letter-spacing: .04em !important;
        text-transform: uppercase !important;
    }

    body.sp-checkout-page .sp-order-card .sp-payment-box {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    body.sp-checkout-page .sp-order-card .sp-payment-message,
    body.sp-checkout-page .sp-order-card .sp-payment-message--empty,
    body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text {
        padding: 14px 15px !important;
        border-radius: 16px !important;
    }
}


/*
   v1.2.31 Checkout sidebar final containment
   This fixes the order summary becoming cramped and removes the accidental blue
   browser text-selection box from the no-payment-methods message.
*/
body.sp-checkout-page .sp-checkout-shell,
body.sp-checkout-page .sp-checkout-form,
body.sp-checkout-page .sp-checkout-grid {
    overflow: visible !important;
}

body.sp-checkout-page .sp-checkout-grid {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 520px) !important;
    align-items: start !important;
    column-gap: clamp(28px, 3vw, 56px) !important;
}

body.sp-checkout-page .sp-checkout-sidebar,
body.sp-checkout-page .sp-order-sticky,
body.sp-checkout-page .sp-order-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

body.sp-checkout-page .sp-order-card {
    padding: clamp(24px, 2.2vw, 34px) !important;
}

body.sp-checkout-page .sp-order-card .sp-section-head {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 16px !important;
}

body.sp-checkout-page .sp-order-card .sp-section-head__content,
body.sp-checkout-page .sp-order-card .sp-section-head > div {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}

body.sp-checkout-page .sp-order-card .sp-review-order,
body.sp-checkout-page .sp-order-card #order_review,
body.sp-checkout-page .sp-order-card .sp-review-table,
body.sp-checkout-page .sp-order-card .sp-review-table tbody,
body.sp-checkout-page .sp-order-card .sp-review-table tfoot,
body.sp-checkout-page .sp-order-card .sp-payment-box,
body.sp-checkout-page .sp-order-card #payment,
body.sp-checkout-page .sp-order-card .sp-payment-methods,
body.sp-checkout-page .sp-order-card .sp-place-order-row,
body.sp-checkout-page .sp-order-card .woocommerce-terms-and-conditions-wrapper,
body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text,
body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text p {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    overflow: visible !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table {
    display: block !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 16px !important;
    margin: 0 0 14px !important;
    width: 100% !important;
    border: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    border-radius: 22px !important;
    background: #fff !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td,
body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item th {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-name {
    min-width: 0 !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-total {
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    max-width: max-content !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-weight: 850 !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-total::before {
    content: none !important;
    display: none !important;
}

body.sp-checkout-page .sp-order-card .sp-mini-product {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body.sp-checkout-page .sp-order-card .sp-mini-thumb {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 18px !important;
}

body.sp-checkout-page .sp-order-card .sp-mini-info {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.sp-checkout-page .sp-order-card .sp-mini-info strong,
body.sp-checkout-page .sp-order-card .sp-mini-info a,
body.sp-checkout-page .sp-order-card .sp-mini-info .variation,
body.sp-checkout-page .sp-order-card .sp-mini-qty {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    background: transparent !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) th,
body.sp-checkout-page .sp-order-card .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.sp-checkout-page .sp-order-card .sp-review-table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) td {
    justify-self: end !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.sp-checkout-page .sp-order-card .sp-payment-box {
    display: block !important;
    padding: 18px 0 0 !important;
    margin: 18px 0 0 !important;
    border-top: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.sp-checkout-page .sp-order-card .sp-payment-methods,
body.sp-checkout-page .sp-order-card .sp-payment-methods > li,
body.sp-checkout-page .sp-order-card .sp-payment-message,
body.sp-checkout-page .sp-order-card .sp-payment-message--empty,
body.sp-checkout-page .sp-order-card #payment ul.payment_methods > li.sp-payment-message,
body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

body.sp-checkout-page .sp-order-card .sp-payment-message,
body.sp-checkout-page .sp-order-card .sp-payment-message--empty,
body.sp-checkout-page .sp-order-card #payment ul.payment_methods > li.sp-payment-message {
    list-style: none !important;
    padding: 16px 18px !important;
    border: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--sp-editable-surface, #fffaf3) 88%, #ffffff) !important;
    color: var(--sp-editable-text, #141822) !important;
    line-height: 1.55 !important;
    box-shadow: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

body.sp-checkout-page .sp-order-card .sp-payment-message::before,
body.sp-checkout-page .sp-order-card .sp-payment-message::after,
body.sp-checkout-page .sp-order-card .sp-payment-message--empty::before,
body.sp-checkout-page .sp-order-card .sp-payment-message--empty::after {
    content: none !important;
    display: none !important;
}

body.sp-checkout-page .sp-order-card .sp-payment-message::selection,
body.sp-checkout-page .sp-order-card .sp-payment-message *::selection,
body.sp-checkout-page .sp-order-card .sp-payment-message--empty::selection,
body.sp-checkout-page .sp-order-card .sp-payment-message--empty *::selection {
    background: transparent !important;
    color: inherit !important;
}

body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text {
    padding: 16px 18px !important;
    border: 1px solid var(--sp-editable-line, rgba(42, 37, 32, .12)) !important;
    border-radius: 18px !important;
    background: #fff !important;
    line-height: 1.55 !important;
}

body.sp-checkout-page .sp-order-card .sp-place-order-btn,
body.sp-checkout-page .sp-order-card #place_order {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
}

@media (max-width: 1500px) {
    body.sp-checkout-page .sp-checkout-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.sp-checkout-page .sp-checkout-sidebar,
    body.sp-checkout-page .sp-order-sticky,
    body.sp-checkout-page .sp-order-card {
        width: min(100%, 760px) !important;
        max-width: min(100%, 760px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 540px) {
    body.sp-checkout-page .sp-order-card {
        padding: 16px !important;
        border-radius: 22px !important;
    }

    body.sp-checkout-page .sp-order-card .sp-section-head {
        gap: 12px !important;
        align-items: flex-start !important;
    }

    body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        padding: 14px !important;
    }

    body.sp-checkout-page .sp-order-card .sp-review-table tbody tr.cart_item td.product-total {
        justify-self: start !important;
        text-align: left !important;
    }

    body.sp-checkout-page .sp-order-card .sp-mini-product {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    body.sp-checkout-page .sp-order-card .sp-mini-thumb {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        border-radius: 16px !important;
    }

    body.sp-checkout-page .sp-order-card .sp-payment-message,
    body.sp-checkout-page .sp-order-card .sp-payment-message--empty,
    body.sp-checkout-page .sp-order-card .woocommerce-privacy-policy-text {
        padding: 14px 15px !important;
        border-radius: 16px !important;
    }
}
