/* ============================================================
   ScriptTonic Commerce Funnel — Cart & Checkout
   Dark commerce workspace. ScriptTonic Visual System V1.
   ============================================================ */

/* ---------- Page ---------- */
body.st-cart-page {
    background: var(--st-canvas);
    color: var(--st-text);
}

.st-cart-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* ---------- Intro ---------- */
.st-cart-intro {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--st-border-subtle);
    padding-bottom: 18px;
}
.st-cart-breadcrumb {
    font-size: .8rem;
    color: var(--st-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.st-cart-breadcrumb a {
    color: var(--st-text-muted);
    text-decoration: none;
}
.st-cart-breadcrumb a:hover {
    color: var(--st-text);
}
.st-cart-breadcrumb .sep {
    color: var(--st-border-subtle);
    font-size: .6rem;
}
.st-cart-eyebrow {
    display: inline-block;
    color: var(--st-commerce);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
}
.st-cart-eyebrow::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--st-commerce);
}
.st-cart-heading {
    color: var(--st-text);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.15;
}
.st-cart-subtext {
    color: var(--st-text-muted);
    font-size: .92rem;
    margin: 0;
    max-width: 520px;
}

/* ---------- Toolbar ---------- */
.st-cart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
.st-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 7px;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
    font-family: inherit;
    transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.st-cart-btn-continue {
    border-color: var(--st-commerce);
    color: var(--st-commerce);
    background: transparent;
}
.st-cart-btn-continue:hover {
    background: var(--st-commerce);
    color: #0a0a0a;
}
.st-cart-btn-empty {
    border-color: var(--st-danger);
    color: var(--st-danger);
    background: transparent;
}
.st-cart-btn-empty:hover {
    background: var(--st-danger);
    color: #fff;
}
.st-cart-btn-browse {
    border-color: var(--st-commerce);
    color: var(--st-commerce);
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 7px;
    text-decoration: none;
    font-family: inherit;
}
.st-cart-btn-browse:hover {
    background: var(--st-commerce);
    color: #0a0a0a;
}

/* ---------- Cart grid ---------- */
.st-cart-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.st-cart-items-panel {
    flex: 0 0 76.5%;
    min-width: 0;
}
.st-cart-summary-panel {
    flex: 0 0 23.5%;
    min-width: 0;
}

/* ---------- Cart item ---------- */
.st-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    align-items: center;
    column-gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--st-border-subtle);
}
.st-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.st-cart-item:first-child {
    padding-top: 0;
}

/* Identity: thumbnail + title — horizontal band on desktop */
.st-cart-item-identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.st-cart-item-thumb-wrap {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}
.st-cart-item-thumb {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--st-surface);
    display: block;
}
.st-cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.st-cart-item-title {
    color: var(--st-commerce);
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 1 auto;
}

/* Controls band: License + Quantity + Update */
.st-cart-item-controls {
    display: grid;
    grid-template-columns: max-content 1px minmax(52px, max-content);
    align-items: center;
    column-gap: 6px;
    min-width: 0;
}
.st-cart-item-controls form {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: end;
    column-gap: 6px;
    min-width: 0;
}
.st-cart-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}
.st-cart-field-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--st-text-muted);
}
.st-cart-select,
.st-cart-input {
    padding: 6px 10px;
    border: 1px solid var(--st-border);
    border-radius: 6px;
    background: var(--st-surface);
    color: var(--st-text);
    font-size: .84rem;
    font-family: inherit;
    appearance: none;
}
.st-cart-select {
    min-width: 96px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238b9bb5'%3E%3Cpath fill-rule='evenodd' d='M5.227 7.215a.75.75 0 011.06 0L10 11.168l3.713-3.953a.75.75 0 111.08.023l-4.253 4.53a.75.75 0 01-1.08 0l-4.253-4.53a.75.75 0 01.023-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 28px;
}
.st-cart-select:focus,
.st-cart-input:focus {
    outline: 2px solid var(--st-interaction);
    outline-offset: 1px;
    border-color: var(--st-interaction);
}
.st-cart-input {
    width: 56px;
    text-align: center;
    -moz-appearance: textfield;
}
.st-cart-input::-webkit-outer-spin-button,
.st-cart-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.st-cart-btn-update {
    padding: 6px 8px;
    border: 1px solid var(--st-commerce);
    color: var(--st-commerce);
    background: transparent;
    font-weight: 600;
    font-size: .84rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background-color .12s ease, color .12s ease;
}
.st-cart-btn-update:hover {
    background: var(--st-commerce);
    color: #0a0a0a;
}

/* Separator before price */
.st-cart-item-separator {
    width: 1px;
    height: 30px;
    background: var(--st-border-subtle);
    flex-shrink: 0;
}

/* Price block */
.st-cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex: 0 0 auto;
    min-width: 48px;
}
.st-cart-price-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--st-text-muted);
}
.st-cart-price-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--st-text);
    font-family: var(--st-font-mono);
    line-height: 1.2;
}
.st-cart-price-through {
    font-size: .78rem;
    color: var(--st-text-muted);
    text-decoration: line-through;
}

/* Remove button */
.st-cart-item-remove {
    flex: 0 0 auto;
}
.st-cart-item-remove form {
    display: inline-block;
}
.st-cart-btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--st-danger);
    color: var(--st-danger);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}
.st-cart-btn-remove:hover {
    background: var(--st-danger);
    color: #fff;
}

/* ---------- Order summary ---------- */
.st-cart-summary-surface {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 10px;
    padding: 20px;
}
.st-cart-summary-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--st-text-muted);
    margin: 0 0 12px;
}
.st-cart-total {
    font-size: 2rem;
    font-weight: 700;
    color: var(--st-text);
    margin: 0 0 20px;
    font-family: var(--st-font-mono);
    line-height: 1.1;
}
.st-cart-btn-checkout {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--st-commerce);
    border: 1px solid var(--st-commerce);
    color: #0a0a0a;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .12s ease;
}
.st-cart-btn-checkout:hover {
    opacity: .92;
}

/* ---------- Inline SVG icons ---------- */
.st-cart-icon-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.st-cart-icon-trash {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.st-cart-icon-times {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ---------- Empty cart ---------- */
.st-cart-empty-surface {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
}
.st-cart-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    color: var(--st-text-muted);
}
.st-cart-empty-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.st-cart-empty-title {
    color: var(--st-text);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.st-cart-empty-text {
    color: var(--st-text-muted);
    font-size: .9rem;
    margin: 0 0 20px;
}

/* ---------- Pagination ---------- */
.st-cart-pagination {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--st-border-subtle);
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 991.98px) {
    .st-cart-grid {
        flex-direction: column;
        gap: 18px;
    }
    .st-cart-items-panel,
    .st-cart-summary-panel {
        flex: 1 1 100%;
    }
    .st-cart-item {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .st-cart-item-identity {
        flex: 0 0 auto;
    }
    .st-cart-item-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .st-cart-item-controls form {
        display: flex;
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    .st-cart-field {
        flex: 1 1 calc(50% - 8px);
    }
    .st-cart-field:first-child {
        flex: 1 1 100%;
    }
    .st-cart-btn-update {
        flex: 1 1 100%;
        justify-content: center;
    }
    .st-cart-item-separator {
        display: none;
    }
    .st-cart-item-price {
        align-items: flex-start;
        flex: 1 1 100%;
    }
    .st-cart-item-remove {
        align-self: flex-start;
    }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 575.98px) {
    .st-cart-shell {
        padding: 20px 14px 40px;
    }
    .st-cart-heading {
        font-size: 1.45rem;
    }
    .st-cart-summary-surface {
        padding: 16px;
    }
    .st-cart-total {
        font-size: 1.6rem;
    }
    .st-cart-field {
        flex: 1 1 100%;
    }
    .st-cart-item-controls form {
        flex-direction: column;
        align-items: stretch;
    }
    .st-cart-select,
    .st-cart-input {
        width: 100%;
    }
    .st-cart-btn-update {
        width: 100%;
        justify-content: center;
    }
    .st-cart-btn-remove {
        align-self: flex-start;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .st-cart-page * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* ============================================================
   CHECKOUT PAGE — ScriptTonic Commerce Funnel
   ============================================================ */

/* ---------- Page shell ---------- */
body.st-checkout-page {
    background: var(--st-canvas);
    color: var(--st-text);
}

/* The checkout wrapper lives inside @yield('content') which sits
   between navbar and footer in app.blade.php. We provide an inner
   shell that constrains width on desktop. */
.st-checkout-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

@media (min-width: 1200px) {
    .st-checkout-shell {
        padding: 24px 24px 64px;
    }
}

/* ---------- Page header ---------- */
.st-checkout-head {
    margin-bottom: 24px;
}

.st-checkout-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 0.78rem;
    color: var(--st-muted);
    margin-bottom: 12px;
    align-items: center;
}

.st-checkout-breadcrumb a {
    color: var(--st-muted);
    text-decoration: none;
}

.st-checkout-breadcrumb a:hover {
    color: var(--st-text);
}

.st-checkout-breadcrumb .sep {
    color: var(--st-border);
    font-size: 0.65rem;
}

.st-checkout-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.st-checkout-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--st-accent);
    margin-bottom: 4px;
}

.st-checkout-heading {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--st-text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.st-checkout-subtext {
    font-size: 0.9rem;
    color: var(--st-muted);
    margin: 0;
    max-width: 480px;
}

/* ---------- Two-column grid ---------- */
.st-checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

@media (min-width: 1200px) {
    .st-checkout-grid {
        grid-template-columns: 1.65fr 1fr;
        gap: 24px;
    }
}

/* ---------- Panels ---------- */
.st-checkout-panel {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.st-checkout-panel:last-child {
    margin-bottom: 0;
}

.st-checkout-panel-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--st-muted);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--st-border-subtle);
}

/* ---------- Payment methods ---------- */
.st-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.st-payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--st-canvas);
    border: 1px solid var(--st-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 44px;
}

.st-payment-method:hover {
    border-color: var(--st-hover);
    background: var(--st-hover-bg);
}

.st-payment-method input[type="radio"] {
    accent-color: var(--st-accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: var(--st-canvas);
    border: 1px solid var(--st-border);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.15s;
}

.st-payment-method input[type="radio"]:checked {
    border-color: var(--st-accent);
    background: var(--st-accent);
}

.st-payment-method input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--st-canvas);
    border-radius: 50%;
}

.st-payment-method:has(input:checked) {
    border-color: var(--st-accent);
    background: rgba(45, 212, 191, 0.06);
}

.st-payment-method-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--st-text);
}

.st-payment-method-balance {
    font-size: 0.8rem;
    color: var(--st-muted);
    font-family: var(--st-font-mono), monospace;
    padding: 2px 8px;
    background: var(--st-surface);
    border-radius: 4px;
    border: 1px solid var(--st-border);
}

/* PayPal inline SVG mark */
.st-paypal-mark {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.st-paypal-mark svg {
    display: block;
    width: 76px;
    height: 24px;
}

.st-payment-method:has(input:checked) .st-payment-method-label {
    color: var(--st-accent);
}

/* ---------- Billing address form ---------- */
.st-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.st-checkout-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .st-checkout-form-row {
        grid-template-columns: 1fr 1fr;
    }
    .st-checkout-form-row-three {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.st-checkout-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.st-checkout-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--st-muted);
}

.st-checkout-input,
.st-checkout-select {
    background: var(--st-canvas);
    border: 1px solid var(--st-border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.88rem;
    color: var(--st-text);
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.st-checkout-input:focus,
.st-checkout-select:focus {
    outline: none;
    border-color: var(--st-accent);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.15);
}

.st-checkout-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--st-surface);
    color: var(--st-muted);
}

.st-checkout-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b929f' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

/* ---------- Order Summary panel ---------- */
.st-checkout-summary-panel {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 10px;
    padding: 20px;
}

.st-checkout-summary-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--st-muted);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--st-border-subtle);
}

/* Product rows */
.st-checkout-product {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--st-border-subtle);
}

.st-checkout-product:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.st-checkout-product-support {
    grid-template-columns: 1fr auto;
    padding-top: 8px;
}

.st-checkout-product-img-wrap {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--st-canvas);
    border: 1px solid var(--st-border-subtle);
}

.st-checkout-product-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.st-checkout-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-checkout-product-info {
    min-width: 0;
}

.st-checkout-product-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--st-accent);
    text-decoration: none;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-checkout-product-name:hover {
    color: var(--st-accent-hover);
    text-decoration: underline;
}

.st-checkout-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.75rem;
    color: var(--st-muted);
}

.st-checkout-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.st-checkout-meta-muted {
    color: var(--st-muted);
}

.st-checkout-product-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--st-text);
    text-align: right;
    white-space: nowrap;
    font-family: var(--st-font-mono), monospace;
    padding-top: 4px;
}

/* Summary break rows */
.st-checkout-summary-break {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--st-border-subtle);
}

.st-checkout-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.82rem;
}

.st-checkout-amount-label {
    color: var(--st-muted);
}

.st-checkout-amount-value {
    color: var(--st-text);
    font-weight: 600;
    font-family: var(--st-font-mono), monospace;
}

/* Total row */
.st-checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 2px solid var(--st-border);
}

.st-checkout-total-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--st-text);
}

.st-checkout-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--st-text);
    font-family: var(--st-font-mono), monospace;
}

/* ---------- Payment Handoff ---------- */
.st-checkout-handoff {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 14px;
}

.st-checkout-handoff-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--st-accent);
    margin-top: 2px;
}

.st-checkout-handoff-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.st-checkout-handoff-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--st-accent);
}

.st-checkout-handoff-desc {
    font-size: 0.78rem;
    color: var(--st-muted);
    margin: 0;
    line-height: 1.45;
}

/* ---------- PayPal container ---------- */
.st-paypal-container {
    margin-top: 14px;
}

.st-paypal-container-xl {
    margin-top: 14px;
}

#paypal-card-button-container {
    margin-top: 10px;
}

.st-paypal-message {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    color: var(--st-text-secondary);
    font-size: 0.875rem;
}

.st-paypal-message-error {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

/* ---------- Continue button ---------- */
.st-checkout-continue {
    display: block;
    width: 100%;
    margin-top: 14px;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    font-family: inherit;
}

.st-checkout-continue:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.st-checkout-continue:active {
    transform: translateY(0);
}

/* ---------- Checkout success state ---------- */
.st-checkout-success {
    max-width: 520px;
    margin: 32px auto 48px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 10px;
    padding: 40px 32px;
    text-align: center;
}

.st-checkout-success-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.st-checkout-success-icon {
    width: 52px;
    height: 52px;
    color: var(--st-accent);
    margin-bottom: 4px;
}

.st-checkout-success-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--st-text);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.st-checkout-success-text {
    font-size: 0.92rem;
    color: var(--st-muted);
    margin: 0 0 28px;
    line-height: 1.6;
    max-width: 380px;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 1199px) {
    .st-checkout-eyebrow {
        font-size: 0.68rem;
    }
    .st-checkout-heading {
        font-size: 1.35rem;
    }
    .st-checkout-subtext {
        font-size: 0.85rem;
    }
    .st-checkout-panel {
        padding: 16px;
    }
    .st-checkout-summary-panel {
        padding: 16px;
    }
    .st-checkout-product {
        grid-template-columns: 52px 1fr auto;
        gap: 10px;
        padding: 10px 0;
    }
    .st-checkout-product-img-wrap,
    .st-checkout-product-img {
        width: 52px;
        height: 52px;
    }
    .st-checkout-product-amount {
        font-size: 0.85rem;
        padding-top: 2px;
    }
    .st-checkout-total-value {
        font-size: 1.1rem;
    }
    .st-checkout-success {
        margin: 24px 12px 40px;
        padding: 28px 20px;
    }
    .st-checkout-success-icon {
        width: 44px;
        height: 44px;
    }
    .st-checkout-success-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 375px) {
    .st-checkout-shell {
        padding: 16px 10px 36px;
    }
    .st-checkout-head {
        margin-bottom: 16px;
    }
    .st-checkout-breadcrumb {
        font-size: 0.72rem;
        gap: 3px 6px;
    }
    .st-checkout-heading {
        font-size: 1.15rem;
    }
    .st-checkout-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }
    .st-checkout-subtext {
        font-size: 0.78rem;
    }
    .st-checkout-panel {
        padding: 12px;
        margin-bottom: 12px;
    }
    .st-checkout-summary-panel {
        padding: 12px;
    }
    .st-checkout-product {
        grid-template-columns: 44px 1fr auto;
        gap: 8px;
        padding: 8px 0;
    }
    .st-checkout-product-img-wrap,
    .st-checkout-product-img {
        width: 44px;
        height: 44px;
    }
    .st-checkout-product-name {
        font-size: 0.8rem;
    }
    .st-checkout-product-meta {
        font-size: 0.68rem;
        gap: 4px 8px;
    }
    .st-checkout-product-amount {
        font-size: 0.78rem;
    }
    .st-checkout-total-row {
        padding-top: 10px;
        margin-top: 4px;
    }
    .st-checkout-total-label {
        font-size: 0.75rem;
    }
    .st-checkout-total-value {
        font-size: 0.95rem;
    }
    .st-checkout-handoff {
        padding: 8px 10px;
        margin-top: 10px;
    }
    .st-checkout-handoff-icon {
        width: 14px;
        height: 14px;
    }
    .st-checkout-handoff-desc {
        font-size: 0.72rem;
    }
    .st-checkout-continue {
        padding: 9px 16px;
        font-size: 0.82rem;
        margin-top: 10px;
    }
    .st-payment-method {
        padding: 8px 10px;
        min-height: 38px;
    }
    .st-payment-method-label {
        font-size: 0.8rem;
    }
    .st-payment-method input[type="radio"] {
        width: 14px;
        height: 14px;
    }
    .st-checkout-input,
    .st-checkout-select {
        padding: 7px 8px;
        font-size: 0.82rem;
    }
    .st-checkout-label {
        font-size: 0.65rem;
    }
    .st-checkout-success {
        margin: 16px 8px 32px;
        padding: 20px 16px;
    }
    .st-checkout-success-icon {
        width: 36px;
        height: 36px;
    }
    .st-checkout-success-title {
        font-size: 1rem;
    }
    .st-checkout-success-text {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }
}
