/* ============================================================
   checkout.css — Default Tema (Modern Minimalist)
   ────────────────────────────────────────────────────────────
   Card-based 2-column layout (mockup yapısı).
   Mobile-first; desktop'ta sağda sticky summary.
============================================================ */


/* ============================================================
   PAGE WRAPPER
============================================================ */
.checkout-page {
    background: var(--bg-soft);
    min-height: 70vh;
    padding: 20px 0 40px;
}

.checkout-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}


/* ============================================================
   HEADER
============================================================ */
.checkout-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.checkout-back {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 150ms ease;
}
.checkout-back:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-lt);
}
.checkout-back svg {
    width: 18px;
    height: 18px;
}

.checkout-header-text {
    flex: 1;
    min-width: 0;
}

.checkout-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 2px;
}

.checkout-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}


/* ============================================================
   LOADING / EMPTY
============================================================ */
.checkout-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
    gap: 14px;
    font-size: 14px;
}

.checkout-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: co-spin 800ms linear infinite;
}

@keyframes co-spin {
    to { transform: rotate(360deg); }
}

.checkout-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.checkout-empty-icon {
    color: var(--text-soft);
    margin-bottom: 12px;
}
.checkout-empty-icon svg {
    width: 56px;
    height: 56px;
}
.checkout-empty h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}
.checkout-empty p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 18px;
}
.checkout-empty-cta {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--primary-on);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 150ms ease;
}
.checkout-empty-cta:hover {
    background: var(--primary-dk);
}


/* ============================================================
   GRID (2 column)
============================================================ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 980px) {
    .checkout-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 20px;
        align-items: flex-start;
    }
}


/* ============================================================
   FORM COLUMN
============================================================ */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}


/* ============================================================
   CARD (her bölüm bir card)
============================================================ */
.co-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}

.co-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.co-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.co-card-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}


/* ============================================================
   ICON BASE (generic)
============================================================ */
.co-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* ============================================================
   AUTH TABS
============================================================ */
.co-auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: var(--bg-soft);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.co-auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 150ms ease;
    line-height: 1;
}

.co-auth-tab:hover {
    color: var(--text);
}

.co-auth-tab.is-active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.co-auth-tab svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 480px) {
    .co-auth-tab span {
        font-size: 12px;
    }
}


/* ============================================================
   FIELD GRID
============================================================ */
.co-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 560px) {
    .co-field-grid {
        grid-template-columns: 1fr 1fr;
    }
    .co-field-full {
        grid-column: 1 / -1;
    }
}

.co-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.co-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.co-field-required {
    color: var(--danger);
    margin-left: 2px;
}

.co-field input[type="text"],
.co-field input[type="tel"],
.co-field input[type="email"],
.co-field input[type="password"],
.co-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 150ms ease, box-shadow 150ms ease;
    box-sizing: border-box;
}

.co-field textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

.co-field input:hover,
.co-field textarea:hover {
    border-color: var(--border-strong);
}

.co-field input:focus,
.co-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lt);
}

.co-field input::placeholder,
.co-field textarea::placeholder {
    color: var(--text-soft);
}

/* Hata stili */
.co-field.has-error input,
.co-field.has-error textarea {
    border-color: var(--danger);
    background: var(--danger-lt);
}

.co-field-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 2px;
    line-height: 1.4;
}


/* ============================================================
   CHECKBOX
============================================================ */
.co-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.co-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--primary);
    cursor: pointer;
}


/* ============================================================
   DELIVERY OPTIONS (2 column radio cards)
============================================================ */
.co-delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 420px) {
    .co-delivery-options {
        grid-template-columns: 1fr;
    }
}

.co-delivery-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 150ms ease;
    min-width: 0;
}

.co-delivery-card:hover {
    border-color: var(--border-strong);
}

.co-delivery-card.is-active {
    background: var(--primary-lt);
    border-color: var(--primary);
}

.co-delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.co-delivery-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.co-delivery-card.is-active .co-delivery-icon {
    color: var(--primary);
}

.co-delivery-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.3;
}

.co-delivery-text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.co-delivery-card.is-active .co-delivery-text strong {
    color: var(--primary-dk);
}

.co-delivery-text span {
    font-size: 11px;
    color: var(--text-muted);
}


/* ============================================================
   PAYMENT OPTIONS (radio cards with right circle indicator)
============================================================ */
.co-payment-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.co-payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 150ms ease;
    position: relative;
}

.co-payment-card:hover {
    border-color: var(--border-strong);
}

.co-payment-card.is-active {
    background: var(--primary-lt);
    border-color: var(--primary);
}

.co-payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.co-payment-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.co-payment-card.is-active .co-payment-icon {
    color: var(--primary);
}

.co-payment-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.4;
}

.co-payment-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.co-payment-card.is-active .co-payment-text strong {
    color: var(--primary-dk);
}

.co-payment-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.co-payment-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
}

.co-payment-card.is-active .co-payment-radio {
    background: var(--primary);
    border-color: var(--primary);
}

.co-payment-card.is-active .co-payment-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-on);
    border-radius: 50%;
}

.co-no-payment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--warning-lt);
    border: 1px solid var(--warning);
    border-radius: 10px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}

.co-no-payment svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* ============================================================
   AUTH — LOGIN BUTTON + LOGGEDIN BANNER
============================================================ */
.co-auth-login-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--primary-lt);
    border-radius: 10px;
    border: 1px solid var(--primary);
}

.co-auth-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms ease;
}

.co-auth-login-btn:hover { background: var(--primary-dk); }
.co-auth-login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.co-auth-login-btn svg { width: 18px; height: 18px; }

.co-auth-login-help {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.co-auth-login-error {
    padding: 8px 12px;
    background: var(--danger-lt, #fef2f2);
    border: 1px solid var(--danger, #dc2626);
    border-radius: 6px;
    font-size: 12px;
    color: var(--danger, #dc2626);
}

/* Login yapılmış banner */
.co-auth-loggedin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--success-lt, #ecfdf5);
    border: 1px solid var(--success, #16a34a);
    border-radius: 10px;
    margin-bottom: 12px;
}

.co-auth-loggedin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    color: var(--success, #16a34a);
}

.co-auth-loggedin-info svg { width: 20px; height: 20px; flex-shrink: 0; }

.co-auth-loggedin-info span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.co-auth-loggedin-info strong { font-size: 14px; font-weight: 600; }
.co-auth-loggedin-info small { font-size: 11px; opacity: 0.85; }

.co-auth-logout {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--success, #16a34a);
    border-radius: 6px;
    font-size: 12px;
    color: var(--success, #16a34a);
    cursor: pointer;
    transition: all 150ms ease;
}

.co-auth-logout:hover {
    background: var(--success, #16a34a);
    color: #fff;
}

/* Payment login hint */
.co-payment-login-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 10px 12px;
    background: var(--primary-lt);
    border-radius: 8px;
    font-size: 12px;
    color: var(--primary-dk);
    line-height: 1.4;
}

.co-payment-login-hint svg { width: 16px; height: 16px; flex-shrink: 0; }

/* VIP-only hint */
.co-payment-vip-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
}

.co-payment-vip-hint svg { width: 16px; height: 16px; flex-shrink: 0; color: #d97706; }

/* ============================================================
   IYZICO KART FORMU (sayfa içi, atesci yapısı)
============================================================ */
.co-card-iframe {
    border-color: var(--primary);
    background: linear-gradient(to bottom, var(--primary-lt), var(--bg-card));
}

.co-card-iframe .co-card-title {
    color: var(--primary-dk);
}

.co-card-iframe .co-card-icon {
    color: var(--primary);
}

/* Güvenlik bilgi notu */
.co-iyzico-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--primary-lt);
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--primary-dk);
    line-height: 1.4;
}

.co-iyzico-info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Kart formu container — field-grid'leri içerir */
.co-card-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-card-form input {
    /* base field stilini miras alır, ek olarak: */
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

#co-card-number,
#co-card-cvc,
#co-card-expire {
    font-family: var(--font-mono, ui-monospace, 'SF Mono', Consolas, monospace);
}

/* 3D Secure iframe container */
.co-3ds-container {
    margin-top: 14px;
    padding: 12px;
    background: var(--warning-lt);
    border: 1px solid var(--warning);
    border-radius: 10px;
}

.co-3ds-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #92400e;
    margin-bottom: 10px;
}

.co-3ds-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.co-3ds-iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
}

.co-3ds-cancel {
    margin-top: 10px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 150ms ease;
}

.co-3ds-cancel:hover {
    color: var(--danger);
    border-color: var(--danger);
}


/* ============================================================
   SUBMIT BUTTON
============================================================ */
.co-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--primary);
    color: var(--primary-on);
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

.co-submit:hover:not(:disabled) {
    background: var(--primary-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.co-submit:active:not(:disabled) {
    transform: translateY(0);
}

.co-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.co-submit svg {
    width: 16px;
    height: 16px;
}

.co-submit-text {
    font-weight: 600;
}

.co-submit-amount {
    font-weight: 700;
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

/* Desktop: amount sağda; mobile: amount yanda */
.co-submit-desktop {
    display: none;
}
.co-submit-mobile {
    margin-top: 4px;
}

@media (min-width: 980px) {
    .co-submit-desktop {
        display: inline-flex;
    }
    .co-submit-mobile {
        display: none;
    }
}


/* ============================================================
   SUMMARY
============================================================ */
.checkout-summary {
    min-width: 0;
}

@media (min-width: 980px) {
    .checkout-summary {
        position: sticky;
        top: 16px;
    }
}

.co-card-summary {
    padding: 16px 18px 14px;
}

.co-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.co-summary-items:empty {
    display: none;
}

.co-summary-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
}

.co-summary-item-qty {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--primary);
    min-width: 28px;
}

.co-summary-item-body {
    flex: 1;
    min-width: 0;
}

.co-summary-item-name {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

.co-summary-item-variants {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}

.co-summary-item-variants:empty {
    display: none;
}

.co-summary-item-price {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.co-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

/* ============================================================
   KUPON GİRİŞ ALANI (özet kartının içinde)
============================================================ */
.co-coupon {
    padding: 12px 0;
    margin: 8px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
}

.co-coupon-input-row {
    display: flex;
    gap: 8px;
}

.co-coupon-input-row input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg-card);
    color: var(--text);
    transition: border-color 150ms ease;
    letter-spacing: 0.5px;
}

.co-coupon-input-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.co-coupon-apply {
    padding: 9px 14px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms ease;
    white-space: nowrap;
}

.co-coupon-apply:hover {
    background: var(--primary-dk);
}

.co-coupon-apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.co-coupon-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--success-lt, #ecfdf5);
    border: 1px solid var(--success);
    border-radius: 8px;
}

.co-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
}

.co-coupon-icon {
    width: 14px;
    height: 14px;
}

.co-coupon-code {
    letter-spacing: 0.5px;
}

.co-coupon-discount {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    font-variant-numeric: tabular-nums;
}

.co-coupon-remove {
    background: transparent;
    border: 0;
    padding: 2px;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    transition: color 150ms ease;
}

.co-coupon-remove:hover {
    color: var(--danger);
}

.co-coupon-remove svg {
    width: 14px;
    height: 14px;
}

.co-coupon-error {
    margin-top: 8px;
    padding: 7px 10px;
    background: var(--danger-lt, #fef2f2);
    border: 1px solid var(--danger);
    border-radius: 6px;
    font-size: 12px;
    color: var(--danger);
    line-height: 1.4;
}

.co-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

.co-summary-row dt {
    color: var(--text-muted);
}

.co-summary-row dd {
    margin: 0;
    color: var(--text);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.co-summary-discount dd {
    color: var(--success);
}

.co-summary-total {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

.co-summary-total dt {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.co-summary-total dd {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.co-card-summary .co-submit {
    margin-top: 14px;
}

.co-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

.co-secure-note svg {
    width: 13px;
    height: 13px;
}


/* ============================================================
   GLOBAL FORM ERROR
============================================================ */
.co-form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--danger-lt);
    border: 1px solid var(--danger);
    border-radius: 10px;
    color: #991b1b;
    font-size: 13px;
    margin-top: 12px;
    line-height: 1.5;
}

.co-form-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (max-width: 480px) {
    .checkout-page {
        padding: 12px 0 24px;
    }
    .checkout-inner {
        padding: 0 12px;
    }
    .co-card {
        padding: 14px 14px;
        border-radius: 12px;
    }
    .checkout-title {
        font-size: 19px;
    }
    .checkout-subtitle {
        font-size: 13px;
    }
}


/* ============================================================
   PROCESSING STATE
============================================================ */
.checkout-form.is-submitting .co-submit {
    pointer-events: none;
}
.checkout-form.is-submitting .co-submit-text::after {
    content: '…';
    animation: co-dots 1s infinite;
}

@keyframes co-dots {
    0%, 33%   { content: '.'; }
    34%, 66%  { content: '..'; }
    67%, 100% { content: '...'; }
}

/* ============================================================
   CHECKOUT SUMMARY CATEGORY HEADERS
============================================================ */
.co-category-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted, #6b7280);
    padding: 10px 0 4px;
    border-bottom: 1px dashed var(--border, #e5e7eb);
    margin-bottom: 6px;
}

.co-category-header:first-child {
    padding-top: 0;
}

/* ============================================================
   SCHEDULED ORDERS — Teslimat Zamanı (Hemen / İleri Tarihte)
============================================================ */
.co-schedule-status-closed {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background: #fee2e2;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.co-schedule-locked {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
}
.co-schedule-locked svg { width: 24px; height: 24px; flex-shrink: 0; }

.co-schedule-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 640px) {
    .co-schedule-options { grid-template-columns: 1fr; }
}

.co-schedule-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: var(--bg);
}
.co-schedule-card.is-active {
    border-color: var(--primary);
    background: var(--primary-lt, #fff7ed);
}
.co-schedule-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.co-schedule-icon { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; }
.co-schedule-text { display: flex; flex-direction: column; gap: 2px; }
.co-schedule-text strong { font-weight: 600; font-size: 14px; }
.co-schedule-text span { font-size: 12px; color: var(--muted); }

.co-schedule-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    background: var(--bg-1, #f9fafb);
    border-radius: 10px;
    margin-top: 8px;
}
@media (max-width: 640px) {
    .co-schedule-picker { grid-template-columns: 1fr; }
}

.co-schedule-field { display: flex; flex-direction: column; gap: 4px; }
.co-schedule-picker .co-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 14px;
}

.co-schedule-hint {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--primary-lt, #fff7ed);
    border-left: 3px solid var(--primary, #f97316);
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-dk, #c2410c);
}
.co-schedule-hint svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   CHECKOUT SUBMIT LOCKED — Submit butonunun yerine yazı
============================================================ */
.co-submit-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 16px;
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    color: #991b1b;
    text-align: center;
}
.co-submit-locked svg { width: 28px; height: 28px; color: #dc2626; margin-bottom: 4px; }
.co-submit-locked strong { font-size: 16px; font-weight: 700; }
.co-submit-locked span { font-size: 13px; line-height: 1.5; }

.co-schedule-slot-note {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}
.co-schedule-slot-note-error {
    color: #dc2626;
    font-weight: 500;
}

/* Register tab bilgi notu — submit butonun ne yapacağını anlatır */
.co-auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: var(--primary-lt, #fff7ed);
    border-left: 3px solid var(--primary, #f97316);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--primary-dk, #c2410c);
}
.co-auth-hint svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   CHECKOUT — Kayıtlı Adresler (Logged-in için)
============================================================ */
.co-saved-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.co-saved-addr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: var(--bg-card, #fff);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.co-saved-addr:hover {
    border-color: var(--primary-lt, #fed7aa);
    background: var(--bg-page, #fafafa);
}

.co-saved-addr.is-active {
    border-color: var(--primary, #f97316);
    background: var(--primary-lt, #fff7ed);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.co-saved-addr input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--primary, #f97316);
    flex-shrink: 0;
}

.co-saved-addr-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.co-saved-addr-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #111827);
}

.co-saved-addr-default {
    font-size: 9px;
    background: var(--primary, #f97316);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.co-saved-addr-line {
    font-size: 12px;
    color: var(--text, #374151);
    line-height: 1.4;
    /* 2 satır clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.co-saved-addr-loc {
    font-size: 11px;
    color: var(--muted, #6b7280);
}

.co-saved-addr-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 2px dashed var(--border, #e5e7eb);
    border-radius: 10px;
    background: transparent;
    color: var(--primary, #f97316);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.co-saved-addr-new:hover {
    border-color: var(--primary, #f97316);
    background: var(--bg-page, #fafafa);
}

.co-saved-addr-new.is-active {
    border-color: var(--primary, #f97316);
    background: var(--primary-lt, #fff7ed);
}

.co-saved-addr-new svg {
    width: 18px;
    height: 18px;
}
