/* Storefront premium checkout — two-column desktop layout */
.storefront-checkout-body {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.sf-dark .storefront-checkout-body {
    background: linear-gradient(180deg, #09090b 0%, #0f172a 100%);
}

.storefront-checkout-shell .talb-shell__main {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.sf-checkout-panel {
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
    ring: 1px solid rgb(226 232 240 / 0.9);
}

.sf-dark .sf-checkout-panel {
    background: #18181b;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
    ring-color: rgb(63 63 70 / 0.9);
}

.sf-checkout-summary {
    position: sticky;
    top: 0.75rem;
}

.sf-checkout-map {
    min-height: 14rem;
}

.sf-checkout-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sf-checkout-method.is-active,
.sf-checkout-payment.is-active,
.sf-checkout-timing-option.is-active {
    border-color: var(--primary-color, #0d9488) !important;
    background: color-mix(in srgb, var(--primary-color, #0d9488) 8%, white);
    color: var(--primary-color, #0d9488);
}

.sf-checkout-timing-option {
    border-color: rgb(226 232 240);
    color: rgb(51 65 85);
}

.sf-dark .sf-checkout-timing-option {
    border-color: rgb(63 63 70);
    color: rgb(228 228 231);
}

.sf-checkout-radio,
.sf-checkout-panel input[type='checkbox'] {
    accent-color: var(--primary-color, #0d9488);
}

.sf-checkout-scheduled-input:focus {
    border-color: var(--primary-color, #0d9488);
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color, #0d9488) 25%, transparent);
}

.sf-checkout-payments .sf-checkout-payment {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sf-checkout-payment-icon {
    color: rgb(71 85 105);
}

.sf-dark .sf-checkout-payment-icon {
    color: rgb(161 161 170);
}

.sf-checkout-payment.is-active .sf-checkout-payment-icon {
    color: var(--primary-color, #0d9488);
}

.sf-checkout-payment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    line-height: 1.35;
}

.sf-checkout-payment-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(30 41 59);
}

.sf-dark .sf-checkout-payment-label {
    color: rgb(244 244 245);
}

.sf-checkout-payment-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgb(241 245 249);
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgb(71 85 105);
}

.sf-dark .sf-checkout-payment-badge {
    background: rgb(39 39 42);
    color: rgb(212 212 216);
}

.sf-checkout-paymob-channels {
    display: flex;
    width: 100%;
    max-width: 13.5rem;
    gap: 0.375rem;
}

.sf-checkout-paymob-channel {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.75rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    border-radius: 0.625rem;
    border: 1px solid rgb(226 232 240 / 0.95);
    background: rgb(255 255 255 / 0.92);
    padding: 0.375rem 0.25rem;
    color: rgb(51 65 85);
}

.sf-dark .sf-checkout-paymob-channel {
    border-color: rgb(63 63 70);
    background: rgb(24 24 27 / 0.85);
    color: rgb(228 228 231);
}

.sf-checkout-paymob-channel-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1.2;
}

.sf-checkout-payment.is-active .sf-checkout-paymob-channel {
    border-color: color-mix(in srgb, var(--primary-color, #0d9488) 35%, #e2e8f0);
    color: var(--primary-color, #0d9488);
}

.sf-dark .sf-checkout-method.is-active,
.sf-dark .sf-checkout-payment.is-active,
.sf-dark .sf-checkout-timing-option.is-active {
    background: color-mix(in srgb, var(--primary-color, #0d9488) 16%, #18181b);
}

.sf-checkout-promo-success {
    border-color: color-mix(in srgb, #10b981 35%, #d1fae5);
    background: color-mix(in srgb, #10b981 8%, #ecfdf5);
    color: #047857;
}

.sf-checkout-promo-error {
    border-color: color-mix(in srgb, #ef4444 35%, #fee2e2);
    background: color-mix(in srgb, #ef4444 8%, #fef2f2);
    color: #b91c1c;
}

.sf-checkout-error-dock:not(:has(.sf-checkout-error-banner)) {
    display: none;
}

.sf-checkout-error-dock .sf-checkout-error-banner {
    max-width: 42rem;
    margin-inline: auto;
}
