/* ═══════════════════════════════════════════════════════════════════════
   Screen 23 — ready_summary
   Doc 510 §5.7 canonical READY_CANDIDATE (Orhan 2026-08-27 Faz 1 spec).

   Layout:
     - Sections (Company · Owner · Basket · Promo) — stacked cards
     - Sticky bottom bar (2 CTA + amount)
     - Address modal (bottom sheet, Screen 22 sheet pattern mirror)

   Base font tokens Screen 22 pattern parity — mz-s22-* class'ları
   yeniden kullanılır (bkz. screen-22.css), Screen 23 için sadece
   override + yeni section/modal styles.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Info box (Orhan 2026-08-27 spec) — post-purchase confirmation ─── */
.mz-s23-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 14px 0;
}

.mz-s23-info-box-icon {
    flex-shrink: 0;
    color: #2563eb;
    margin-top: 1px;
}

.mz-s23-info-box-body {
    flex: 1;
    min-width: 0;
}

.mz-s23-info-box-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 4px;
    line-height: 1.3;
}

.mz-s23-info-box-text {
    font-size: 12.5px;
    color: #1e3a8a;
    line-height: 1.5;
    margin: 0;
}

/* Sticky bar — "I'm not ready" form wrapper (no vertical space penalty). */
.mz-s23-sticky-not-ready-form {
    display: inline-flex;
    align-items: center;
}

/* ─── Section cards ─── */
.mz-s23-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.mz-s23-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.mz-s23-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.mz-s23-section-title svg {
    width: 18px;
    height: 18px;
    color: #7c3aed;
    flex-shrink: 0;
}

.mz-s23-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 4px 10px;
    transition: background-color .12s ease, border-color .12s ease;
    flex-shrink: 0;
}

.mz-s23-edit-link:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #6d28d9;
}

.mz-s23-section-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ─── Key-value rows (Company / Owner sections) ─── */
.mz-s23-kv {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mz-s23-kv:last-of-type {
    border-bottom: 0;
}

.mz-s23-kv-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mz-s23-kv-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
}

.mz-s23-kv-value strong {
    font-weight: 700;
}

.mz-s23-kv-value--multiline {
    line-height: 1.5;
    white-space: pre-wrap;
}

.mz-s23-kv-suffix {
    display: inline-block;
    font-size: 11px;
    color: #7c3aed;
    background: #ede9fe;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ─── Owner note ─── */
.mz-s23-owner-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: #1e40af;
    margin: 8px 0 0;
    line-height: 1.5;
}

.mz-s23-owner-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
}

/* ─── Order block (line items + breakdown) ─── */
.mz-s23-order {
    margin-top: 14px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}

.mz-s23-order-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.mz-s23-order-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.mz-s23-order-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.mz-s23-order-line:last-of-type {
    border-bottom: 0;
}

.mz-s23-order-line-body {
    flex: 1;
    min-width: 0;
}

.mz-s23-order-line-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.mz-s23-order-line-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}

.mz-s23-order-line-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.mz-s23-order-line-price .amt {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.mz-s23-order-line-price .unit {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ─── Order breakdown (Pay today / Y1 / Y2 renewal) ─── */
.mz-s23-order-breakdown {
    margin: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.mz-s23-order-breakdown .row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    gap: 12px;
}

.mz-s23-order-breakdown .row dt {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.mz-s23-order-breakdown .row dt small {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.mz-s23-order-breakdown .row dd {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.mz-s23-order-breakdown .row-grand {
    border-top: 2px solid #cbd5e1;
    margin-top: 4px;
    padding-top: 8px;
}

.mz-s23-order-breakdown .row-grand dt {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.mz-s23-order-breakdown .row-grand dd {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.mz-s23-order-breakdown .row-renews dt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
    font-style: italic;
    padding-top: 4px;
}

/* ─── HTML5 [hidden] attribute enforcement ───
 * Class-level display kuralları (.mz-s23-promo-applied inline-flex,
 * .mz-s23-sheet-line--promo flex, .row.promo flex) HTML5 [hidden] default
 * `display:none`'u override ediyor. Global reset — SSR + JS toggle hidden
 * fallback pattern'in her yerde çalışması için. */
.mz-s23-sticky [hidden],
.mz-s23-sheet [hidden],
.mz-s23-section [hidden] {
    display: none !important;
}

/* Sheet line items list — line'ın kendisi `.mz-s23-sheet-line` class
   `display:flex` alır ve `[hidden]` HTML default'ı override eder. Targeted
   fix: line'ın kendisi + list altındaki her descendant. */
.mz-s23-sheet-line[hidden],
.mz-s23-sheet-lines [hidden],
.mz-s23-sheet-dl [hidden] {
    display: none !important;
}

/* ─── Promo section (Faz 3 aktif) ─── */
.mz-s23-section--promo .mz-s23-section-body {
    gap: 8px;
}

.mz-s23-promo-error {
    font-size: 12px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 4px;
}

/* Promo line/row highlight — green (savings feedback). */
.mz-s23-sheet-line--promo .mz-s23-sheet-line-name,
.mz-s23-sheet-line--promo .mz-s23-sheet-line-price .amt,
.mz-s23-sheet-dl .row.promo dt,
.mz-s23-sheet-dl .row.promo dd {
    color: #16a34a;
    font-weight: 600;
}

.mz-s23-promo-input-wrap {
    display: flex;
    gap: 6px;
}

.mz-s23-promo-input {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color .12s ease, background-color .12s ease;
}

.mz-s23-promo-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.mz-s23-promo-apply {
    background: #7c3aed;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .12s ease, opacity .12s ease;
}

.mz-s23-promo-apply:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.mz-s23-promo-helper {
    font-size: 11px;
    color: #94a3b8;
    padding-left: 2px;
}

.mz-s23-promo-applied {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

.mz-s23-promo-applied-code {
    font-weight: 700;
    color: #14532d;
    letter-spacing: 0.03em;
}

.mz-s23-promo-applied-discount {
    color: #166534;
    font-weight: 600;
}

.mz-s23-promo-remove {
    background: transparent;
    border: 0;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    margin-left: auto;
    transition: color .12s ease;
}

.mz-s23-promo-remove:hover {
    color: #dc2626;
}

/* ─── Reassurance footer ─── */
.mz-s23-reassurance {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
    color: #64748b;
    padding: 12px 4px 100px;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto;
}

.mz-s23-reassurance svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #10b981;
}

/* ═══ Sticky bottom bar ═══ */
.mz-s23-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
}

.mz-s23-sticky-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    /* Screen 22 pattern parity — info button flex:1 grow, actions flex-shrink:0
       sağa dayanır. space-between YOK (mid-viewport'ta actions ortada kalabilir). */
}

/* Sticky-info: sol taraf tıklanabilir button (plan details sheet aç).
   Screen 22 mz-s22-sticky-info pattern parity — cursor pointer + hover
   feedback + transparent button styling (violet gradient sağ CTA rezerve).
   Layout: flex-column — dl 4-row + hint tap prompt alt satırda. */
.mz-s23-sticky-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 8px 12px;
    margin: 0;
    cursor: pointer;
    text-align: start;
    color: inherit;
    border-radius: 8px;
    transition: background .12s ease;
    min-width: 200px;
}
.mz-s23-sticky-info:hover {
    background: #f1f5f9;
}
.mz-s23-sticky-info:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.mz-s23-sticky-summary {
    flex-shrink: 0;
}

/* Sticky bar pricing dl — Screen 22 sheet dl format mirror (compact).
   Pay today (primary emphasis) + Monthly bills (opsiyonel) + Y1 total
   (secondary emphasis) + Y2 renewal note (opsiyonel). Kritik: y1_grand
   yıllık toplam — user'ın bugün ödeyeceği initial (Pay today) primary. */
.mz-s23-sticky-dl {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 0;
}
.mz-s23-sticky-dl .row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.mz-s23-sticky-dl .row dt {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}
.mz-s23-sticky-dl .row dd {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin: 0;
    line-height: 1.2;
    text-align: end;
}
/* Row 1 — Pay today: primary emphasis (büyük + koyu). */
.mz-s23-sticky-dl .row.primary dt {
    font-size: 10.5px;
}
.mz-s23-sticky-dl .row.primary dd {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
/* Row 2 — Monthly bills: secondary, small sub-label. */
.mz-s23-sticky-dl .row.monthly dd small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: normal;
    text-transform: none;
    margin-top: 1px;
}
/* Row 3 — Y1 total: secondary emphasis. */
.mz-s23-sticky-dl .row.y1-total dd {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}
/* Row 4 — Y2 renewal note: full-width italic muted. */
.mz-s23-sticky-dl .row.renews {
    justify-content: flex-start;
}
.mz-s23-sticky-dl .row.renews .renews-text {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    font-style: italic;
    text-align: start;
}

/* Tap hint under sticky amount — chevron up + text prompting user to
   open the plan details sheet. Muted color, small size (secondary
   affordance, not primary). */
.mz-s23-sticky-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    letter-spacing: 0.01em;
}
.mz-s23-sticky-hint svg {
    flex-shrink: 0;
}

.mz-s23-sticky-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mz-s23-sticky-amount {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-top: 1px;
}

.mz-s23-sticky-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.mz-s23-sticky-not-ready {
    /* S22 sticky-skip pattern parity — iPhone Safari kontrast + font stack
       sorununu çözer. Renk `#334155` (slate-700) — sticky bar "Pay today"
       label rengiyle parity: secondary opt-out link algısı, primary Create
       CTA'nın moru ile hiyerarşi ayrımı korunur. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color .12s ease;
}

.mz-s23-sticky-not-ready:hover {
    color: #0f172a;
}

.mz-s23-sticky-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    transition: transform .12s ease, box-shadow .12s ease;
}

.mz-s23-sticky-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.mz-s23-sticky-create .cta-sub {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

/* Mobile-only "Tap for detail" — desktop'ta gizli; info button içindeki
   .mz-s23-sticky-hint görünür. Mobile'de rol tersine: info-hint gizli,
   sticky-hint-mobile grid child olarak "not ready" ile peer link. */
.mz-s23-sticky-hint-mobile {
    display: none;
}

/* Mobile: stack sticky actions vertically.
   Grid layout: row 1 = hint-mobile (sol) + not-ready-form (sağ),
   row 2 = create CTA full-width. iOS Safari sticky-safe-area görünürlük
   fix — "I'm not ready" peer link olduğu için background:transparent
   auto-hide edge case'inden etkilenmez. */
@media (max-width: 559px) {
    .mz-s23-sticky-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .mz-s23-sticky-info {
        justify-content: center;
        width: 100%;
        padding: 8px 12px;
    }
    .mz-s23-sticky-summary {
        text-align: center;
    }
    /* Info button içindeki hint gizle — mobile'de sticky-hint-mobile devralır. */
    .mz-s23-sticky-info .mz-s23-sticky-hint {
        display: none;
    }
    .mz-s23-sticky-hint-mobile {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: transparent;
        border: 0;
        padding: 8px 4px;
        cursor: pointer;
        font-size: 11.5px;
        font-weight: 600;
        color: #7c3aed;
        letter-spacing: 0.01em;
        justify-self: start;
        grid-column: 1;
        grid-row: 1;
    }
    .mz-s23-sticky-hint-mobile svg {
        flex-shrink: 0;
    }
    .mz-s23-sticky-actions {
        display: grid;
        grid-template-columns: auto auto;
        row-gap: 8px;
        column-gap: 12px;
        align-items: center;
    }
    .mz-s23-sticky-not-ready-form {
        justify-self: end;
        grid-column: 2;
        grid-row: 1;
    }
    .mz-s23-sticky-not-ready {
        padding: 8px 4px;
    }
    .mz-s23-sticky-create {
        justify-content: center;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* ═══ Address modal ═══ */
.mz-s23-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 200;
    backdrop-filter: blur(2px);
}

.mz-s23-modal-backdrop[data-mz-s23-modal-open="1"] {
    display: block;
}

.mz-s23-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    width: min(560px, 92vw);
    max-height: 88vh;
    z-index: 201;
    flex-direction: column;
}

.mz-s23-modal[data-mz-s23-modal-open="1"] {
    display: flex;
}

.mz-s23-modal-grab {
    display: none;   /* desktop hidden, mobile bottom-sheet grab bar */
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 8px auto 0;
}

.mz-s23-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.mz-s23-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.mz-s23-modal-close {
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background-color .12s ease, color .12s ease;
}

.mz-s23-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mz-s23-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.mz-s23-modal-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.5;
}

.mz-s23-address-form .mz-field {
    margin-bottom: 12px;
}

.mz-s23-address-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.mz-s23-address-form select,
.mz-s23-address-form input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
}

.mz-s23-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 14px 14px;
}

.mz-s23-modal-btn-secondary,
.mz-s23-modal-btn-primary {
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .12s ease, box-shadow .12s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
}

.mz-s23-modal-btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.mz-s23-modal-btn-secondary:hover {
    background: #f1f5f9;
}

.mz-s23-modal-btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    flex: 1;
    justify-content: center;
}

.mz-s23-modal-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Mobile: bottom-sheet layout for modal. */
@media (max-width: 559px) {
    .mz-s23-modal {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 14px 14px 0 0;
        max-height: 90vh;
    }
    .mz-s23-modal-grab {
        display: block;
    }
}

/* Body section label — küçük uppercase eyebrow (Add-ons / Pricing
   breakdown). Kutulama YOK, sadece typographic hierarchy: uppercase
   + letter-spacing + muted color. Section aralığı için üst margin;
   ilk label margin-top sıfır. */
.mz-s23-body-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 20px 0 8px;
    line-height: 1.3;
}
.mz-s23-body-label:first-child {
    margin-top: 0;
}

/* Selected add-ons list on page body (pricing breakdown üstünde).
   Kutulama YOK. Grid layout: name (1fr) sol + price (auto) sağa tam
   dayalı. Tabular-nums ile fiyat kolonu column-align. Soft alt-çizgi
   row separator — okuma kolaylığı. */
.mz-s23-addons-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
}
.mz-s23-addon-line {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    line-height: 1.4;
}
.mz-s23-addon-line:last-child {
    border-bottom: 0;
}
.mz-s23-addon-line .name {
    color: #334155;
    font-weight: 500;
    min-width: 0;
    overflow-wrap: anywhere;
}
.mz-s23-addon-line .price {
    text-align: end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}
.mz-s23-addon-line .price .amt {
    color: #0f172a;
    font-weight: 700;
    font-size: 13.5px;
}
.mz-s23-addon-line .price .unit {
    color: #64748b;
    font-weight: 500;
    font-size: 11.5px;
    margin-inline-start: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Plan details sheet — features + add-ons Screen 23-özel styles.
   Sheet shell + backdrop + header + body + footer + pricing dl Screen 22
   mz-s22-sheet-* CSS reuse (DRY §1.8, ready.blade.php'de screen-22.css
   linked). Aşağıdaki styles Screen 22'de olmayan features + addons
   render'ı için özgün.
   ═══════════════════════════════════════════════════════════════════════ */

/* Plan features list — check icon + name + short desc row. */
.mz-s23-sheet-feats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mz-s23-sheet-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.mz-s23-sheet-feat-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    margin-block-start: 2px;
}
.mz-s23-sheet-feat-body {
    flex: 1;
    min-width: 0;
}
.mz-s23-sheet-feat-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}
.mz-s23-sheet-feat-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-top: 2px;
}

/* Add-ons list — per-addon card with name/price head + sub + desc rows. */
.mz-s23-sheet-addons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mz-s23-sheet-addon {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.mz-s23-sheet-addon-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.mz-s23-sheet-addon-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
.mz-s23-sheet-addon-price {
    flex-shrink: 0;
    text-align: end;
    line-height: 1.2;
}
.mz-s23-sheet-addon-price .amt {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}
.mz-s23-sheet-addon-price .unit {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    display: block;
    margin-top: 1px;
}
.mz-s23-sheet-addon-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: #7c3aed;
    margin-top: 4px;
    letter-spacing: 0.01em;
}
.mz-s23-sheet-addon-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-top: 6px;
}
.mz-s23-sheet-addons-empty {
    font-size: 13px;
    color: #64748b;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    margin: 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   RTL — Arabic locale day-0 support (Doc 510 §12.5 canonical).
   CSS logical properties (margin-inline/padding-inline) already used
   above; below flex-direction row-reverse where visual reading direction
   requires mirror (icon/text/close ordering, sticky bar layout).
   ═══════════════════════════════════════════════════════════════════════ */

[dir="rtl"] .mz-s23-modal-header,
[dir="rtl"] .mz-s23-modal-footer,
[dir="rtl"] .mz-s23-section-head,
[dir="rtl"] .mz-s23-owner-note,
[dir="rtl"] .mz-s23-order-line,
[dir="rtl"] .mz-s23-order-breakdown .row {
    flex-direction: row-reverse;
}

[dir="rtl"] .mz-s23-sticky-inner,
[dir="rtl"] .mz-s23-sticky-actions {
    flex-direction: row-reverse;
}

/* Chevrons + arrows mirror in RTL (edit → / continue → / pay → CTAs). */
[dir="rtl"] .mz-s23-edit-link svg,
[dir="rtl"] .mz-s23-modal-btn-primary svg,
[dir="rtl"] .mz-s23-sticky-create svg {
    transform: scaleX(-1);
}

/* Order breakdown numeric right-alignment mirror. */
[dir="rtl"] .mz-s23-order-breakdown .row dd {
    text-align: left;
}

/* Mobile RTL — sticky column stack overrides row-reverse.
   Grid layout `justify-self: start/end` logical properties otomatik mirror
   eder (start = RTL'de sağ, end = RTL'de sol). Extra grid-column override
   gereksiz — direction:rtl inherited grid auto-flow zaten kolon sırasını
   swap eder. Sadece flex-based inner + SVG chevron mirror gerek. */
@media (max-width: 559px) {
    [dir="rtl"] .mz-s23-sticky-inner {
        flex-direction: column;
    }
    /* Actions grid layout RTL-safe (justify-self logical props otomatik). */
    [dir="rtl"] .mz-s23-sticky-hint-mobile svg {
        transform: scaleX(-1);
    }
}

/* Sheet addon head + feat row RTL — mirror name/price + check/body layout. */
[dir="rtl"] .mz-s23-sheet-addon-head,
[dir="rtl"] .mz-s23-sheet-feat {
    flex-direction: row-reverse;
}
[dir="rtl"] .mz-s23-sheet-addon-price {
    text-align: start;
}

/* Sticky-info button RTL — sub-elements right-anchor. */
[dir="rtl"] .mz-s23-sticky-hint svg {
    transform: scaleX(-1);
}

/* ═══════════════════════════════════════════════════════════════════════
   Screen 23 sheet CSS — mz-s23-sheet-* rules (Orhan 2026-08-27: sayfa
   Screen 23-özel, shared değil). screen-22.css mz-s22-sheet-* bloklarının
   birebir kopyası + prefix rename. Screen 22 addons.blade dokunulmaz.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
 *  Detail sheet (modal) — "Your setup breakdown"
 *  Sticky bar info tıklama → aç. Backdrop + centered card (desktop) OR
 *  bottom sheet (mobile ≤640px). RTL-safe via logical properties.
 * ═══════════════════════════════════════════════════════════════════ */
.mz-s23-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mz-s23-sheet-backdrop[data-mz-sheet-open="1"] {
    opacity: 1;
    pointer-events: auto;
}

.mz-s23-sheet {
    position: fixed;
    z-index: 100;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mz-s23-sheet[data-mz-sheet-open="1"] {
    opacity: 1;
    pointer-events: auto;
}

/* Desktop — centered card (Screen 22 mirror). */
@media (min-width: 641px) {
    .mz-s23-sheet {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -48%) scale(0.98);
        width: min(560px, calc(100vw - 32px));
        max-height: min(720px, calc(100vh - 64px));
        border-radius: 14px;
    }

    .mz-s23-sheet[data-mz-sheet-open="1"] {
        transform: translate(-50%, -50%) scale(1);
    }

    .mz-s23-sheet-grab {
        display: none;
    }
}

/* Mobile ≤640px — bottom sheet slide-up. */
@media (max-width: 640px) {
    .mz-s23-sheet {
        inset-inline-start: 0;
        inset-inline-end: 0;
        inset-block-end: 0;
        transform: translateY(100%);
        max-height: 88vh;
        border-radius: 14px 14px 0 0;
    }

    .mz-s23-sheet[data-mz-sheet-open="1"] {
        transform: translateY(0);
    }

    .mz-s23-sheet-grab {
        display: block;
        width: 40px;
        height: 4px;
        margin: 8px auto 0;
        background: #cbd5e1;
        border-radius: 999px;
    }
}

/* Header — title + close. */
.mz-s23-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px 12px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.mz-s23-sheet-title {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.mz-s23-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.mz-s23-sheet-close:hover,
.mz-s23-sheet-close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}

/* Body — scrollable content. */
.mz-s23-sheet-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Config card inside sheet — reset outer margin (partial has 18px 0 20px),
   sheet body already applies gap. Compact spacing (padding + title +
   rows + row-padding) base .mz-s22-config'e taşındı — hem sayfa hem
   modal aynı compact görünür (Orhan 2026-08-27 spec). */
.mz-s23-sheet-body .mz-s22-config {
    margin: 0;
}

/* Body children — no shrink. Config kart addon listesi büyüdükçe shrink
   olup görsel olarak "kayboluyordu"; her section content-height sabit,
   body overflow-y:auto natural scroll handle eder. */
.mz-s23-sheet-body > * {
    flex-shrink: 0;
}

.mz-s23-sheet-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mz-s23-sheet-section-title {
    margin: 16px 0 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #4c1d95;
    opacity: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: start;
}

/* Config summary dl. */
.mz-s23-sheet-dl {
    margin: 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mz-s23-sheet-dl .row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-top: 1px dashed #e2e8f0;
}

.mz-s23-sheet-dl .row:first-child {
    border-top: 0;
    padding-top: 0;
}

.mz-s23-sheet-dl dt {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    text-align: start;
}

.mz-s23-sheet-dl dd {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    text-align: end;
    letter-spacing: -0.01em;
}

.mz-s23-sheet-note {
    margin: 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
    font-style: italic;
    text-align: start;
}

/* Plan line. */
.mz-s23-sheet-plan-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
}

.mz-s23-sheet-plan-line .name {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: -0.01em;
}

.mz-s23-sheet-plan-line .price {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-align: end;
}

/* "Your Order" line items list — wizard snapshot() mirror. */
.mz-s23-sheet-lines {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mz-s23-sheet-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* Plan + State line — subtle violet tint (pkg/state kind). */
.mz-s23-sheet-line[data-line-kind="pkg"],
.mz-s23-sheet-line[data-line-kind="state"] {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.mz-s23-sheet-line-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mz-s23-sheet-line-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    text-align: start;
    letter-spacing: -0.005em;
}

.mz-s23-sheet-line-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
    text-align: start;
}

/* Price column — 2-line stack right-aligned (Orhan 2026-08-27):
   amount (13.5px, sağa) üstte + unit (9px, sağa) altında. */
.mz-s23-sheet-line-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: end;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 1px;
    line-height: 1.15;
}

.mz-s23-sheet-line-price .amt {
    font-size: 13.5px;
    font-weight: 700;
    color: #4c1d95;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.mz-s23-sheet-line-price .unit {
    font-size: 10px;
    font-weight: 500;
    color: #7c3aed;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
    opacity: 0.85;
}

.mz-s23-sheet-addons-empty {
    margin: 0;
    padding: 12px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-style: italic;
}

/* Pricing section — grand totals emphasis. */
.mz-s23-sheet-pricing .mz-s23-sheet-price-dl {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.mz-s23-sheet-pricing .row.grand dt {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.mz-s23-sheet-pricing .row.grand dd {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

/* Monthly bills row — wizard sb-row-monthly parity (rate + sub-line). */
.mz-s23-sheet-pricing .row.monthly {
    align-items: flex-start;
}

.mz-s23-sheet-pricing .row.monthly dt {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    padding-top: 2px;
}

.mz-s23-sheet-pricing .row.monthly dd {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: end;
}

.mz-s23-sheet-pricing .row.monthly dd span[data-mz-sheet-monthly-amt] {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.mz-s23-sheet-pricing .row.monthly dd .sub {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    font-style: italic;
    line-height: 1.35;
    text-align: end;
}

/* Y1 total emphasis. */
.mz-s23-sheet-pricing .row.y1-total {
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px solid #bae6fd;
}

/* Y2 renewal row — full-width note, no dt/dd split. */
.mz-s23-sheet-pricing .row.renews {
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #bae6fd;
    display: block;
}

.mz-s23-sheet-pricing .row.renews .renews-text {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
    text-align: start;
    font-style: italic;
    margin: 0;
}

/* Footer — Close + Continue. */
.mz-s23-sheet-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #ffffff;
}

.mz-s23-sheet-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mz-s23-sheet-btn-secondary:hover,
.mz-s23-sheet-btn-secondary:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
    outline: none;
}

/* Modal primary CTA — sticky bar Continue ile aynı violet gradient. */
.mz-s23-sheet-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.32), 0 1px 2px rgba(124, 58, 237, 0.14);
    transition: box-shadow 0.15s ease, transform 0.08s ease, filter 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.mz-s23-sheet-btn-primary:hover,
.mz-s23-sheet-btn-primary:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.38), 0 2px 4px rgba(124, 58, 237, 0.18);
    outline: none;
}

.mz-s23-sheet-btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.28), 0 4px 12px rgba(124, 58, 237, 0.38);
}

.mz-s23-sheet-btn-primary:active {
    transform: translateY(1px);
    filter: brightness(0.96);
}

[dir="rtl"] .mz-s23-sheet-btn-primary svg {
    transform: scaleX(-1);
}

/* Your Order + Pricing section arası 8px boşluk (Orhan 2026-08-27). */
.mz-s23-sheet-section + .mz-s23-sheet-section {
    margin-top: 12px;
    padding-top: 8px;
}

/* ─────────────────────────────────────────────────────────────────────
 * Billing country lock — Orhan 2026-08-28 seçenek A.
 * Modal'da country picker YOK; Screen 3 residence country'sine fatura
 * kesilir. Readonly label + hidden <select> (mzaddress.js için).
 * ───────────────────────────────────────────────────────────────────── */
.mz-s23-billing-country-lock {
    margin-bottom: 12px;
}
.mz-s23-billing-country-lock > label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.mz-s23-billing-country-display {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    cursor: default;
    user-select: none;
}
