/* ── KDS Classic Checkout — Stripe / Blocks-style service card ─── */

.code-order-classic-sf {
    margin: 0 0 12px;
    padding: 20px;
    border: 1px solid var(--code-order-chk-border, #ececf1);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--code-order-chk-surface, #fff) 0%, var(--code-order-chk-surface-muted, #fcfcfd) 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.code-order-classic-sf__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.code-order-classic-sf__title-wrap {
    display: grid;
    gap: 6px;
}

.code-order-classic-sf__title {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.code-order-classic-sf__intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--code-order-chk-text-muted, #64748b);
    max-width: 560px;
}

.code-order-classic-sf__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.code-order-classic-sf__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    background: #f4f4f6;
    color: #6b7280;
    font-size: 11.5px;
    line-height: 1.3;
}

.code-order-classic-sf__chip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--code-order-primary, #6f00ff) 72%, #ffffff);
    flex-shrink: 0;
}

.code-order-classic-sf__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ececf1;
}

.code-order-classic-sf__hours {
    font-size: 13px;
    color: #475569;
}

.code-order-classic-sf__pause,
.code-order-classic-sf__closure {
    font-size: 12px;
    font-weight: 600;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 6px 10px;
}

.code-order-checkout-notice {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 8px;
    padding: 8px 10px;
}

.code-order-checkout-notice--warning {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.code-order-store-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-order-store-badge--open {
    background: #e6fcf5;
    color: #0ca678;
    border: 1px solid #c3fae8;
}

.code-order-store-badge--closed {
    background: #fff5f5;
    color: #fa5252;
    border: 1px solid #ffe3e3;
}

.code-order-store-hours {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.code-order-classic-sf__group {
    margin-bottom: 16px;
}

.code-order-classic-sf__group:last-child {
    margin-bottom: 0;
}

.code-order-classic-sf__group-head {
    margin-bottom: 12px;
}

.code-order-classic-sf__panel-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--code-order-chk-text, #1e293b);
}

.code-order-classic-sf__panel-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--code-order-chk-text-muted, #64748b);
}

.code-order-classic-sf__helper {
    min-height: 1.2em;
    font-size: 12px;
    line-height: 1.4;
    color: var(--code-order-chk-text-muted, #64748b);
}

.code-order-classic-sf__helper.is-warning {
    color: #c2410c;
}

.code-order-classic-sf__helper.is-loading,
.code-order-classic-sf__field.is-loading .code-order-classic-sf__helper {
    color: #64748b;
}

.code-order-classic-sf__helper.is-info {
    color: #0369a1;
}

.code-order-classic-sf__field.is-loading .code-order-classic-sf__select {
    opacity: 0.72;
    pointer-events: none;
}

.code-order-classic-sf__toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.code-order-classic-sf__toggle-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.code-order-classic-sf__toggle-item:has(input:checked) {
    border-color: color-mix(in srgb, var(--code-order-primary, #6f00ff) 55%, #e5e7eb);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--code-order-primary, #6f00ff) 35%, transparent);
}

.code-order-classic-sf__toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.code-order-classic-sf__toggle-item input {
    margin: 0;
}

.code-order-classic-sf__fields {
    display: grid;
    gap: 12px;
}

.code-order-classic-sf__field {
    display: grid;
    gap: 6px;
}

.code-order-classic-sf__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--code-order-chk-text-muted, #64748b);
}

.code-order-classic-sf__select {
    max-width: 100%;
}

/* Native date/time selects — match modern UI (not browser-default) */
.code-order-classic-sf select.code-order-checkout-select,
.code-order-classic-sf .code-order-classic-sf__select,
#code-order-service-panel select.code-order-checkout-select {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 42px 10px 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--code-order-chk-text, #0f172a);
    background-color: var(--code-order-chk-surface, #fff);
    border: 1px solid var(--code-order-chk-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.code-order-classic-sf select.code-order-checkout-select:hover,
#code-order-service-panel select.code-order-checkout-select:hover {
    border-color: color-mix(in srgb, var(--code-order-primary, #6f00ff) 35%, var(--code-order-chk-border, #e5e7eb));
}

.code-order-classic-sf select.code-order-checkout-select:focus,
#code-order-service-panel select.code-order-checkout-select:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--code-order-primary, #6f00ff) 55%, var(--code-order-chk-border, #e5e7eb));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--code-order-primary, #6f00ff) 22%, transparent);
}

.code-order-classic-sf select.code-order-checkout-select:disabled,
#code-order-service-panel select.code-order-checkout-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Top bar: logo + secure payment (classic standalone / step checkout) ── */

.code-order-checkout-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--code-order-chk-border, #ececf1);
}

.code-order-checkout-topbar__brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.code-order-checkout-topbar__logo-link {
    display: block;
    /* Explicit box so SVG logos (often no intrinsic raster size) get space for width:100% on img */
    width: min(220px, 50vw);
    max-width: 100%;
    flex: 0 1 auto;
    text-decoration: none;
}

.code-order-checkout-topbar__logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.code-order-checkout-topbar__site-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--code-order-chk-text, #0f172a);
    text-decoration: none;
}

.code-order-checkout-topbar__trust {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--code-order-primary, #6f00ff) 22%, var(--code-order-chk-border, #e5e7eb));
    background: linear-gradient(135deg, var(--code-order-chk-surface-muted, #f8fafc) 0%, var(--code-order-chk-surface, #fff) 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.code-order-checkout-topbar__trust-icon {
    display: flex;
    color: var(--code-order-primary, #6f00ff);
    flex-shrink: 0;
}

.code-order-checkout-topbar__trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.code-order-checkout-topbar__trust-text strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--code-order-chk-text, #0f172a);
}

.code-order-checkout-topbar__trust-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--code-order-chk-text-muted, #64748b);
    line-height: 1.35;
}

/* Mobile: keep logo + trust on one row — compact trust on the right */
@media (max-width: 640px) {
    .code-order-checkout-topbar {
        align-items: center;
        padding: 8px 0 12px;
        margin-bottom: 14px;
        gap: 8px;
    }

    .code-order-checkout-topbar__brand {
        flex: 1 1 0;
        min-width: 0;
        max-width: 52%;
    }

    .code-order-checkout-topbar__logo-link {
        width: auto;
        max-width: 100%;
    }

    .code-order-checkout-topbar__logo {
        max-height: 40px;
    }

    .code-order-checkout-topbar__site-name {
        font-size: 15px;
    }

    .code-order-checkout-topbar__trust {
        flex: 0 1 auto;
        margin-left: auto;
        max-width: calc(48% - 4px);
        min-width: 0;
        padding: 6px 8px;
        gap: 6px;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    }

    .code-order-checkout-topbar__trust-icon svg {
        width: 18px;
        height: 18px;
    }

    .code-order-checkout-topbar__trust-sub {
        display: none;
    }

    .code-order-checkout-topbar__trust-text strong {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1.2;
        display: block;
        white-space: normal;
    }
}

/* ── KDS Classic Checkout Fields ─────────────────────────────────── */

.code-order-checkout-row th,
.code-order-checkout-row td {
    padding: 8px 0;
    vertical-align: middle;
}

.code-order-checkout-row th {
    font-weight: 600;
}

.code-order-checkout-select {
    width: 100%;
    max-width: 400px;
}

.code-order-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    font-weight: 400;
    cursor: pointer;
}

.code-order-radio input[type="radio"] {
    margin: 0;
}

/* ── Validation errors ─────────────────── */
.code-order-checkout-select--error {
    border-color: #cc1818 !important;
    box-shadow: 0 0 0 1px #cc1818;
}

.code-order-checkout-error {
    color: #cc1818;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Classic checkout tip row */
.code-order-tip-row td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ── Modern payment shell (settings: classic checkout modern payment UI) ── */

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout.woocommerce-checkout {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout .col2-set,
body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout #order_review,
body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout #order_review_heading {
    background: var(--code-order-chk-surface, #fff);
    border: 1px solid var(--code-order-chk-border, #ececf1);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout .col-1,
body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout .col2-set .col-1 {
    margin-bottom: 20px;
}

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout .woocommerce-billing-fields h3,
body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout #order_review_heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--code-order-chk-text-muted, #64748b);
    margin: 0 0 14px;
}

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout .form-row label {
    color: var(--code-order-chk-text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
}

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout input.input-text,
body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout select,
body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce form.checkout textarea {
    border-radius: 10px;
    border-color: var(--code-order-chk-border, #e5e7eb);
}

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce-checkout-review-order-table {
    border-radius: 12px;
    overflow: hidden;
}

body.code-order-classic-modern-payment .woocommerce-checkout-review-order-table .code-order-checkout-item__line,
#order_review .woocommerce-checkout-review-order-table .code-order-checkout-item__line {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.code-order-classic-modern-payment .woocommerce-checkout-review-order-table .code-order-checkout-item__thumb,
#order_review .woocommerce-checkout-review-order-table .code-order-checkout-item__thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--code-order-chk-border, #ececf1);
}

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce #payment {
    background: var(--code-order-chk-surface-muted, #f8fafc);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--code-order-chk-border, #ececf1);
}

body.code-order-classic-modern-payment.woocommerce-checkout .woocommerce #place_order {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 20px;
    background: var(--code-order-primary, #6f00ff) !important;
    color: var(--code-order-btn-text, #fff) !important;
}

body.code-order-classic-modern-payment .code-order-tip-row--modern #code-order-tip {
    margin: 12px 0 0;
    padding: 18px 20px;
    border: 1px solid var(--code-order-chk-border, #ececf1);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--code-order-chk-surface, #fff) 0%, var(--code-order-chk-surface-muted, #fcfcfd) 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* ── Step-by-step classic checkout ─────────────────────────────────── */

body.code-order-checkout-steps-active .code-order-checkout-steps__shell {
    margin-bottom: 20px;
}

/* Horizontal stepper: numbered circle + label + connector line (Stripe-style) */
.code-order-checkout-steps__progress {
    width: 100%;
}

.code-order-checkout-steps__progress ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    width: 100%;
    gap: 0;
}

.code-order-checkout-steps__item {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.25;
    transition: color 0.2s ease;
}

/* Thin line between steps */
.code-order-checkout-steps__item:not(:last-child)::after {
    content: '';
    flex: 1 1 auto;
    height: 2px;
    min-width: 8px;
    margin-left: 10px;
    border-radius: 2px;
    background: #e2e8f0;
    align-self: center;
}

.code-order-checkout-steps__label {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Upcoming / not yet reached */
.code-order-checkout-steps__item:not(.is-active):not(.is-done) .code-order-checkout-steps__label {
    color: #94a3b8;
    font-weight: 500;
}

/* Current step & completed steps */
.code-order-checkout-steps__item.is-active .code-order-checkout-steps__label,
.code-order-checkout-steps__item.is-done .code-order-checkout-steps__label {
    color: #1e293b;
    font-weight: 700;
}

.code-order-checkout-steps__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.code-order-checkout-steps__item:not(.is-active):not(.is-done) .code-order-checkout-steps__num {
    background: #f1f5f9;
    color: #94a3b8;
}

.code-order-checkout-steps__item.is-active .code-order-checkout-steps__num,
.code-order-checkout-steps__item.is-done .code-order-checkout-steps__num {
    background: #10b981;
    color: #fff;
}

@media (max-width: 520px) {
    .code-order-checkout-steps__progress ol {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .code-order-checkout-steps__item {
        flex: 1 1 calc(33.333% - 8px);
        font-size: 12px;
        gap: 8px;
    }

    .code-order-checkout-steps__item:not(:last-child)::after {
        display: none;
    }

    .code-order-checkout-steps__num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.code-order-checkout-steps__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--code-order-chk-border, #ececf1);
    margin-top: 4px;
}

/* Shared shape for both nav buttons so they read as a matched pair. */
.code-order-checkout-steps__btn.button,
.code-order-checkout-steps__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 0 22px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

/* Primary CTA — solid brand. */
.code-order-checkout-steps__btn--next.button,
.code-order-checkout-steps__btn--next.alt,
.code-order-checkout-steps__btn--next {
    background: var(--code-order-primary, #6f00ff) !important;
    color: var(--code-order-btn-text, #fff) !important;
    border: 1px solid var(--code-order-primary, #6f00ff) !important;
}

.code-order-checkout-steps__btn--next:hover {
    filter: brightness(1.08);
}

/* Back — quiet secondary so it does not compete with the CTA. */
.code-order-checkout-steps__btn--back.button,
.code-order-checkout-steps__btn--back {
    background: var(--code-order-chk-surface, #fff) !important;
    color: var(--code-order-chk-text, #1e293b) !important;
    border: 1px solid var(--code-order-chk-border, #ececf1) !important;
}

.code-order-checkout-steps__btn--back:hover {
    background: var(--code-order-chk-surface-muted, #f8fafc) !important;
    border-color: var(--code-order-chk-text-muted, #cbd5e1) !important;
}

/* ── Hide theme chrome (best-effort; extend in child theme if needed) ─ */
/* Standalone = same header/footer hiding + sidebars & distractions below */

body.code-order-checkout-hide-theme-header .site-header,
body.code-order-checkout-standalone .site-header,
body.code-order-checkout-hide-theme-header #masthead,
body.code-order-checkout-standalone #masthead,
body.code-order-checkout-hide-theme-header header#masthead,
body.code-order-checkout-standalone header#masthead,
body.code-order-checkout-hide-theme-header .site-header-wrapper,
body.code-order-checkout-standalone .site-header-wrapper,
body.code-order-checkout-hide-theme-header .header-area,
body.code-order-checkout-standalone .header-area,
body.code-order-checkout-hide-theme-header #site-header,
body.code-order-checkout-standalone #site-header,
body.code-order-checkout-hide-theme-header .elementor-location-header,
body.code-order-checkout-standalone .elementor-location-header,
body.code-order-checkout-hide-theme-header .ast-primary-header,
body.code-order-checkout-standalone .ast-primary-header,
body.code-order-checkout-hide-theme-header .storefront-primary-navigation,
body.code-order-checkout-standalone .storefront-primary-navigation {
    display: none !important;
}

body.code-order-checkout-hide-theme-footer .site-footer,
body.code-order-checkout-standalone .site-footer,
body.code-order-checkout-hide-theme-footer footer.site-footer,
body.code-order-checkout-standalone footer.site-footer,
body.code-order-checkout-hide-theme-footer #colophon,
body.code-order-checkout-standalone #colophon,
body.code-order-checkout-hide-theme-footer .site-footer-wrapper,
body.code-order-checkout-standalone .site-footer-wrapper,
body.code-order-checkout-hide-theme-footer .elementor-location-footer,
body.code-order-checkout-standalone .elementor-location-footer,
body.code-order-checkout-hide-theme-footer .footer-widgets,
body.code-order-checkout-standalone .footer-widgets,
body.code-order-checkout-hide-theme-footer .ast-footer-overlay,
body.code-order-checkout-standalone .ast-footer-overlay {
    display: none !important;
}

/* Standalone only: sidebars, breadcrumbs, page chrome outside checkout */
body.code-order-checkout-standalone #secondary,
body.code-order-checkout-standalone #tertiary,
body.code-order-checkout-standalone .sidebar,
body.code-order-checkout-standalone .widget-area,
body.code-order-checkout-standalone #sidebar,
body.code-order-checkout-standalone aside.sidebar,
body.code-order-checkout-standalone .site-sidebar,
body.code-order-checkout-standalone #shop-sidebar,
body.code-order-checkout-standalone .woocommerce-sidebar,
body.code-order-checkout-standalone .sidebar-container,
body.code-order-checkout-standalone .inside-right-sidebar,
body.code-order-checkout-standalone .inside-left-sidebar {
    display: none !important;
}

body.code-order-checkout-standalone .woocommerce-breadcrumb,
body.code-order-checkout-standalone nav.woocommerce-breadcrumb,
body.code-order-checkout-standalone .woocommerce .woocommerce-breadcrumb,
body.code-order-checkout-standalone .rank-math-breadcrumb,
body.code-order-checkout-standalone .breadcrumbs,
body.code-order-checkout-standalone nav.breadcrumb {
    display: none !important;
}

body.code-order-checkout-standalone .woocommerce-checkout .entry-header,
body.code-order-checkout-standalone .woocommerce-page-title,
body.code-order-checkout-standalone .page-header,
body.code-order-checkout-standalone .page-main-head,
body.code-order-checkout-standalone .entry-header,
body.code-order-checkout-standalone .entry-title,
body.code-order-checkout-standalone h1.entry-title,
body.code-order-checkout-standalone .ast-single-post .entry-header,
body.code-order-checkout-standalone .content-area > .page-title,
body.code-order-checkout-standalone #main > header {
    display: none !important;
}

body.code-order-checkout-standalone #primary,
body.code-order-checkout-standalone .content-area,
body.code-order-checkout-standalone .site-main {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

body.code-order-checkout-standalone .site-content,
body.code-order-checkout-standalone #content,
body.code-order-checkout-standalone #page {
    max-width: none !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
}

body.code-order-checkout-standalone .woocommerce,
body.code-order-checkout-steps-active .woocommerce {
    max-width: none !important;
}

/* ── Step checkout: clean chrome, notices, payment-focused step 3 ─── */

body.code-order-checkout-steps-active .woocommerce-checkout .entry-header,
body.code-order-checkout-steps-active .woocommerce-page-title,
body.code-order-checkout-steps-active .woocommerce-breadcrumb,
body.code-order-checkout-steps-active .page-main-head,
body.code-order-checkout-steps-active .entry-title,
body.code-order-checkout-steps-active h1.entry-title {
    display: none !important;
}

.code-order-checkout-steps__notices:empty {
    display: none !important;
}

.code-order-checkout-steps__notices {
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-order-checkout-steps__notices .woocommerce-message,
.code-order-checkout-steps__notices .woocommerce-info,
.code-order-checkout-steps__notices .woocommerce-error,
.code-order-checkout-steps__notices ul.woocommerce-error {
    margin: 0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border-width: 1px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

.code-order-checkout-steps__notices ul.woocommerce-error,
.code-order-checkout-steps__notices .code-order-step-validation-alert {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    border: 1px solid color-mix(in srgb, #ef4444 35%, var(--code-order-chk-border, #e5e7eb)) !important;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 55%) !important;
    color: #7f1d1d !important;
}

.code-order-checkout-steps__notices ul.woocommerce-error li,
.code-order-checkout-steps__notices .code-order-step-validation-alert li {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 6px 0 !important;
    margin: 0 !important;
    border: none !important;
    font-weight: 500 !important;
    min-height: 0;
}

/* WooCommerce default: li::before uses WooCommerce icon font (exclamation) — strip it */
.code-order-checkout-steps__notices ul.woocommerce-error li::after {
    content: none !important;
    display: none !important;
}

/* Dot as flex item so it stays vertically centered with text (not absolute + top:0.55em) */
.code-order-checkout-steps__notices ul.woocommerce-error li::before,
.code-order-checkout-steps__notices .code-order-step-validation-alert li::before {
    content: '' !important;
    position: static !important;
    flex-shrink: 0;
    align-self: center;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    font-family: inherit !important;
    font-size: 0 !important;
    line-height: 0 !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-indent: 0 !important;
    -webkit-font-smoothing: antialiased;
}

/* Some themes / WC versions add a list-level icon */
.code-order-checkout-steps__notices ul.woocommerce-error::before,
.code-order-checkout-steps__notices ul.woocommerce-error::after {
    content: none !important;
    display: none !important;
}

.code-order-checkout-steps__notices .woocommerce-message {
    border-color: color-mix(in srgb, var(--code-order-primary, #6f00ff) 28%, var(--code-order-chk-border, #e5e7eb)) !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--code-order-primary, #6f00ff) 8%, #fff) 0%, #fff 60%) !important;
    color: var(--code-order-chk-text, #0f172a) !important;
}

.code-order-checkout-steps__notices .woocommerce-info {
    border-color: var(--code-order-chk-border, #e5e7eb) !important;
    background: var(--code-order-chk-surface-muted, #f8fafc) !important;
    color: var(--code-order-chk-text-muted, #475569) !important;
}

body.code-order-checkout-steps-active .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Coupon is always visible inside the sidebar summary */

/* Hide the empty table row left behind after extraction */
body.code-order-checkout-steps-active .code-order-checkout-row--panel {
    display: none !important;
}

/* ── Two-column layout (desktop) ─────────────────────────────────── */

.code-order-checkout-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 400px);
    gap: 32px;
    align-items: start;
    width: 100%;
    max-width: none;
}

.code-order-checkout-layout__left {
    min-width: 0;
}

.code-order-checkout-layout__right {
    min-width: 0;
}

/* Standalone service panel container */
#code-order-service-panel {
    margin: 0 0 16px;
}

/* ── Sidebar order summary card ─────────────────────────────────── */

.code-order-sidebar-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, var(--code-order-chk-surface, #fff) 0%, color-mix(in srgb, var(--code-order-chk-surface-muted, #f8fafc) 55%, #fff) 100%);
    border: 1px solid color-mix(in srgb, var(--code-order-chk-border, #e2e8f0) 85%, #fff);
    border-radius: 20px;
    padding: 22px 20px 20px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 40px rgba(15, 23, 42, 0.07);
    position: sticky;
    top: 24px;
}

/* Mount for step progress (mobile step 3 — moved here via JS) */
.code-order-sidebar-summary__steps:empty {
    display: none;
}

.code-order-sidebar-summary__steps:not(:empty) {
    width: 100%;
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--code-order-chk-border, #e2e8f0) 75%, transparent);
}

.code-order-sidebar-summary__steps .code-order-checkout-steps__progress {
    width: 100%;
    margin: 0;
}

.code-order-sidebar-summary__steps .code-order-checkout-steps__progress ol {
    margin-bottom: 0;
}

.code-order-sidebar-summary__title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--code-order-chk-text-muted, #64748b);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: none;
    background: linear-gradient(90deg, var(--code-order-chk-text-muted, #94a3b8), transparent) left bottom / 48px 2px no-repeat;
}

.code-order-sidebar-summary__body {
    order: 1;
    border-radius: 14px;
    background: var(--code-order-chk-surface, #fff);
    border: 1px solid color-mix(in srgb, var(--code-order-chk-border, #e2e8f0) 70%, transparent);
    padding: 4px 12px 8px;
    overflow: hidden;
}

.code-order-sidebar-summary__body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.code-order-sidebar-summary__body table thead th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--code-order-chk-text-muted, #64748b);
    padding: 12px 4px 10px;
    border-bottom: 1px solid var(--code-order-chk-border, #f1f5f9);
    border-left: none !important;
    border-right: none !important;
    background: transparent;
}

.code-order-sidebar-summary__body table thead th.product-name,
.code-order-sidebar-summary__body table thead th.product-total {
    text-align: left;
}

.code-order-sidebar-summary__body table thead th.product-total {
    text-align: right;
}

.code-order-sidebar-summary__body table th,
.code-order-sidebar-summary__body table td {
    padding: 10px 4px;
    text-align: left;
    vertical-align: middle;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
}

.code-order-sidebar-summary__body table tbody tr:not(:last-child) td {
    border-bottom: 1px solid color-mix(in srgb, var(--code-order-chk-border, #e2e8f0) 55%, transparent) !important;
}

.code-order-sidebar-summary__body table th {
    font-weight: 500;
    color: var(--code-order-chk-text-muted, #64748b);
}

.code-order-sidebar-summary__body table td {
    text-align: right;
    color: var(--code-order-chk-text, #1e293b);
}

.code-order-sidebar-summary__body table tbody td.product-name {
    text-align: left;
}

.code-order-sidebar-summary__body .code-order-checkout-item__line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-order-sidebar-summary__body .code-order-checkout-item__thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--code-order-chk-border, #ececf1);
    background: var(--code-order-chk-surface-muted, #f8fafc);
}

.code-order-sidebar-summary__body .code-order-checkout-item__name {
    flex: 1;
    min-width: 0;
}

.code-order-sidebar-summary__body table tbody td.product-total {
    text-align: right;
    white-space: nowrap;
}

.code-order-sidebar-summary__body table tbody td {
    text-align: inherit;
}

.code-order-sidebar-summary__body table tfoot tr {
    background: transparent;
}

.code-order-sidebar-summary__body table tfoot th,
.code-order-sidebar-summary__body table tfoot td {
    padding-top: 12px;
    padding-bottom: 4px;
    border-top: 1px dashed color-mix(in srgb, var(--code-order-chk-border, #cbd5e1) 65%, transparent) !important;
}

.code-order-sidebar-summary__body table tfoot th {
    font-weight: 600;
    font-size: 13px;
    color: var(--code-order-chk-text-muted, #64748b);
    text-align: left;
}

.code-order-sidebar-summary__body table tfoot td {
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    color: var(--code-order-chk-text, #1e293b);
}

.code-order-sidebar-summary__body table tfoot .order-total th,
.code-order-sidebar-summary__body table tfoot .order-total td {
    font-size: 16px;
    font-weight: 800;
    padding-top: 14px;
    padding-bottom: 6px;
    border-top: 1px solid var(--code-order-chk-border, #e2e8f0) !important;
    color: var(--code-order-chk-text, #0f172a);
}

/* Hide service-panel row from sidebar summary (it's shown in the left column) */
.code-order-sidebar-summary__body .code-order-checkout-row--panel {
    display: none !important;
}

/* Cart items in sidebar: compact style */
.code-order-sidebar-summary__body .cart_item td,
.code-order-sidebar-summary__body .woocommerce-cart-form__cart-item td {
    padding: 4px 0;
    font-size: 12.5px;
}

.code-order-sidebar-summary__body .cart_item .product-name,
.code-order-sidebar-summary__body .woocommerce-cart-form__cart-item .product-name {
    font-weight: 500;
}

/* Live tip block (moved from order review — single #code-order-tip) */
.code-order-sidebar-summary__tip {
    display: block !important;
    width: 100%;
    order: 2;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--code-order-chk-border, #ececf1);
}

.code-order-sidebar-tip-table {
    width: 100%;
    margin: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.code-order-sidebar-summary__tip .code-order-tip-row th,
.code-order-sidebar-summary__tip .code-order-tip-row td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.code-order-sidebar-summary__tip #code-order-tip {
    margin: 0;
}

body.code-order-checkout-steps-active .code-order-sidebar-summary__tip .code-order-tip {
    border-radius: 14px;
    border: 1px solid var(--code-order-chk-border, #ececf1);
    background: linear-gradient(180deg, var(--code-order-chk-surface, #fff) 0%, var(--code-order-chk-surface-muted, #f8fafc) 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

body.code-order-checkout-steps-active .code-order-sidebar-summary__tip .code-order-tip__title {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--code-order-chk-text-muted, #64748b);
}

/* ── Coupon inside sidebar summary ─────────────────────────────── */

.code-order-sidebar-summary__coupon {
    order: 3;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--code-order-chk-border, #ececf1);
    min-width: 0;
    max-width: 100%;
}

.code-order-sidebar-summary__coupon .woocommerce-form-coupon-toggle {
    display: block !important;
}

.code-order-sidebar-summary__coupon .woocommerce-form-coupon-toggle .woocommerce-info {
    border-radius: 10px;
    font-size: 13px;
    padding: 10px 14px !important;
    padding-left: 14px !important;
    margin: 0 !important;
    background: var(--code-order-chk-surface-muted, #f8fafc);
    border: 1px dashed var(--code-order-chk-border, #d1d5db);
    color: var(--code-order-chk-text-muted, #64748b);
}

/* WooCommerce default ::before icon on .woocommerce-info — remove in sidebar */
.code-order-sidebar-summary__coupon .woocommerce-form-coupon-toggle .woocommerce-info::before,
.code-order-sidebar-summary__coupon .woocommerce-info::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.code-order-sidebar-summary__coupon .woocommerce-form-coupon-toggle a {
    color: var(--code-order-primary, #6f00ff);
    font-weight: 600;
}

.code-order-sidebar-summary__coupon form.checkout_coupon,
.code-order-sidebar-summary__coupon .woocommerce-form-coupon {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
}

.code-order-sidebar-summary__coupon form.checkout_coupon p,
.code-order-sidebar-summary__coupon .woocommerce-form-coupon p {
    margin: 0 0 8px;
    font-size: 13px;
}

.code-order-sidebar-summary__coupon form.checkout_coupon .form-row,
.code-order-sidebar-summary__coupon .woocommerce-form-coupon .form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.code-order-sidebar-summary__coupon form.checkout_coupon input.input-text,
.code-order-sidebar-summary__coupon .woocommerce-form-coupon input.input-text {
    flex: 1 1 0;
    border-radius: 10px;
    border: 1px solid var(--code-order-chk-border, #e5e7eb);
    padding: 8px 12px;
    font-size: 13px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.code-order-sidebar-summary__coupon form.checkout_coupon button,
.code-order-sidebar-summary__coupon .woocommerce-form-coupon button {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
}

/* Narrow sidebar / mobile: stack field + button so long labels (e.g. FR) never overflow */
@media (max-width: 640px) {
    .code-order-sidebar-summary__coupon form.checkout_coupon .form-row,
    .code-order-sidebar-summary__coupon .woocommerce-form-coupon .form-row {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .code-order-sidebar-summary__coupon form.checkout_coupon input.input-text,
    .code-order-sidebar-summary__coupon .woocommerce-form-coupon input.input-text {
        flex: none;
        width: 100%;
    }

    .code-order-sidebar-summary__coupon form.checkout_coupon button,
    .code-order-sidebar-summary__coupon .woocommerce-form-coupon button {
        flex: none;
        width: 100%;
    }
}

/* ── Sticky nav actions ──────────────────────────────────────────── */

body.code-order-checkout-steps-active .code-order-checkout-steps__actions {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--code-order-chk-surface, #fff);
    border: 1px solid var(--code-order-chk-border, #ececf1);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
}

body.code-order-checkout-steps-active form.checkout.woocommerce-checkout {
    padding-bottom: 8px;
}

/* ── Step 3: payment only (order summary is in the sidebar) ── */

body.code-order-checkout-step--3 #payment {
    background: var(--code-order-chk-surface, #fff);
    border: 1px solid var(--code-order-chk-border, #ececf1);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.code-order-checkout-step--3 #place_order {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 20px;
    background: var(--code-order-primary, #6f00ff) !important;
    color: var(--code-order-btn-text, #fff) !important;
    width: 100%;
}

/* ── Responsive: stack on mobile ─────────────────────────────────── */

@media (max-width: 840px) {
    .code-order-checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .code-order-checkout-layout__right {
        order: -1;
    }

    .code-order-sidebar-summary {
        position: static;
    }

    /* Mobile: hide order summary on steps 1–2; show a compact summary on step 3 before payment */
    body.code-order-checkout-step--1 .code-order-checkout-layout__right,
    body.code-order-checkout-step--2 .code-order-checkout-layout__right {
        display: none !important;
    }

    body.code-order-checkout-step--3 .code-order-checkout-layout__right {
        display: block !important;
        order: -1;
        margin-bottom: 4px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary {
        padding: 14px 14px 12px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
        margin-bottom: 12px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary__title {
        font-size: 10px;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary__body {
        padding: 6px 8px 8px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary__body table {
        font-size: 12px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary__body table thead th {
        padding: 8px 2px 6px;
        font-size: 9px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary__body .code-order-checkout-item__thumb {
        width: 36px;
        height: 36px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary__tip {
        margin-top: 8px;
        padding-top: 8px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary__coupon {
        margin-top: 8px;
        padding-top: 8px;
    }

    body.code-order-checkout-step--3 .code-order-sidebar-summary__coupon .woocommerce-form-coupon-toggle .woocommerce-info {
        font-size: 12px;
        padding: 8px 10px !important;
    }
}

/* ============================================================
 * Classic checkout: login/register block when guest checkout disabled.
 * Renders above WooCommerce "must be logged in" notice.
 * ============================================================ */
.code-order-checkout-auth {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--code-order-chk-border, #e5e7eb);
    border-radius: 14px;
    background: var(--code-order-chk-surface, #fff);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.code-order-checkout-auth__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 720px) {
    .code-order-checkout-auth__columns:has(.code-order-checkout-auth__col--register) {
        grid-template-columns: 1.4fr 1fr;
    }
}

.code-order-checkout-auth__col h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.code-order-checkout-auth__col .woocommerce-form-login {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.code-order-checkout-auth__col .woocommerce-form-login .form-row {
    margin-bottom: 12px;
}

.code-order-checkout-auth__col .woocommerce-form-login input[type="text"],
.code-order-checkout-auth__col .woocommerce-form-login input[type="email"],
.code-order-checkout-auth__col .woocommerce-form-login input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--code-order-chk-border, #e5e7eb);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.code-order-checkout-auth__col .woocommerce-form-login button[type="submit"],
.code-order-checkout-auth__col--register .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--code-order-primary, #6f00ff);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.code-order-checkout-auth__col .woocommerce-form-login button[type="submit"]:hover,
.code-order-checkout-auth__col--register .button:hover {
    filter: brightness(0.95);
}

.code-order-checkout-auth__lostpw {
    margin: 12px 0 0;
    font-size: 13px;
}

.code-order-checkout-auth__lostpw a {
    color: var(--code-order-primary, #6f00ff);
    text-decoration: none;
}

.code-order-checkout-auth__col--register p {
    margin: 0;
}

@media (max-width: 600px) {
    .code-order-checkout-auth {
        padding: 18px;
        border-radius: 12px;
    }
}

/* Portal-redirect variant — preferred when the plugin's Customer Account
 * portal page is configured and auth is enabled in settings. */
.code-order-checkout-auth--portal {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--code-order-chk-border, #e5e7eb);
    background: linear-gradient(
            135deg,
            color-mix(in srgb, var(--code-order-primary, #6f00ff) 6%, #fff) 0%,
            #fff 60%
        ),
        var(--code-order-chk-surface, #fff);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.code-order-checkout-auth__portal {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 28px 32px;
    text-align: center;
}

.code-order-checkout-auth__portal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--code-order-primary, #6f00ff),
        color-mix(in srgb, var(--code-order-primary, #6f00ff) 60%, #00d4ff)
    );
}

.code-order-checkout-auth__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--code-order-primary, #6f00ff) 12%, transparent);
    color: var(--code-order-primary, #6f00ff);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--code-order-primary, #6f00ff) 18%, transparent);
}

.code-order-checkout-auth__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--code-order-chk-text, #0f172a);
}

.code-order-checkout-auth__portal-text {
    margin: 0 auto 22px;
    max-width: 420px;
    color: var(--code-order-chk-muted, #475569);
    font-size: 14px;
    line-height: 1.55;
}

.code-order-checkout-auth__portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 22px;
}

.code-order-checkout-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.code-order-checkout-auth__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--code-order-primary, #6f00ff) 32%, transparent);
}

.code-order-checkout-auth__btn--primary,
.code-order-checkout-auth__btn--primary:visited {
    background: var(--code-order-primary, #6f00ff) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--code-order-primary, #6f00ff) 28%, transparent);
}

.code-order-checkout-auth__btn--primary:hover,
.code-order-checkout-auth__btn--primary:focus,
.code-order-checkout-auth__btn--primary:active {
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--code-order-primary, #6f00ff) 36%, transparent);
}

.code-order-checkout-auth__btn--ghost,
.code-order-checkout-auth__btn--ghost:visited {
    background: #fff !important;
    color: var(--code-order-chk-text, #0f172a) !important;
    border-color: var(--code-order-chk-border, #e5e7eb) !important;
    text-decoration: none !important;
}

.code-order-checkout-auth__btn--ghost:hover,
.code-order-checkout-auth__btn--ghost:focus {
    border-color: var(--code-order-primary, #6f00ff) !important;
    color: var(--code-order-primary, #6f00ff) !important;
    text-decoration: none !important;
}

.code-order-checkout-auth__btn-arrow {
    transition: transform 0.15s ease;
}

.code-order-checkout-auth__btn--primary:hover .code-order-checkout-auth__btn-arrow {
    transform: translateX(2px);
}

.code-order-checkout-auth__perks {
    list-style: none;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px dashed var(--code-order-chk-border, #e5e7eb);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    justify-content: center;
}

.code-order-checkout-auth__perks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--code-order-chk-muted, #475569);
}

.code-order-checkout-auth__perks svg {
    flex: 0 0 auto;
    color: #16a34a;
}

@media (max-width: 600px) {
    .code-order-checkout-auth__portal {
        padding: 28px 18px 22px;
    }

    .code-order-checkout-auth__title {
        font-size: 19px;
    }

    .code-order-checkout-auth__portal-actions {
        flex-direction: column;
    }

    .code-order-checkout-auth__btn {
        width: 100%;
    }

    .code-order-checkout-auth__perks {
        gap: 10px 18px;
        padding-top: 14px;
    }

    .code-order-checkout-auth__perks li {
        font-size: 12px;
    }
}
