/* ContentNavi — çerez paneli, hukuki metin onay pencereleri */
.cn-cc, .cn-lm, .cn-cc *, .cn-lm * { box-sizing: border-box; }
.cn-cc[hidden], .cn-lm[hidden], .cn-cc-view[hidden] { display: none !important; }

/* Çerez paneli */
.cn-cc {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 2147483000;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 24px 70px rgba(2, 6, 23, .35), 0 0 0 1px rgba(15, 23, 42, .08);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
    animation: cnCcIn .28s ease-out;
}
@keyframes cnCcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cn-cc-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111827;
}
.cn-cc-text {
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #4b5563;
}
.cn-cc-text a { color: #1d4ed8; text-decoration: underline; }
.cn-cc-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cn-cc-btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1.5px solid #111827;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.cn-cc-btn:hover { background: #111827; color: #ffffff; }
.cn-cc-btn:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.cn-cc-opt {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
}
.cn-cc-opt:last-of-type { margin-bottom: 16px; }
.cn-cc-opt-text strong { display: block; margin-bottom: 6px; font-size: 16px; color: #111827; }
.cn-cc-opt-text span { display: block; font-size: 13.5px; line-height: 1.55; color: #4b5563; }
.cn-cc-opt input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: #111827;
    cursor: pointer;
}
.cn-cc-opt input[disabled] { cursor: not-allowed; opacity: .55; }

/* Onay pencereleri (KVKK, satış sözleşmesi) */
.cn-lm {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, .72);
    backdrop-filter: blur(3px);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
}
.cn-lm-dialog {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: min(86vh, 860px);
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
    overflow: hidden;
    animation: cnCcIn .25s ease-out;
}
.cn-lm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.cn-lm-title { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; color: #111827; }
.cn-lm-link { flex: 0 0 auto; font-size: 13px; color: #1d4ed8; text-decoration: underline; white-space: nowrap; margin-top: 3px; }
.cn-lm-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 24px; outline: none; }
.cn-lm-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}
.cn-lm-summary div { display: flex; flex-direction: column; gap: 2px; }
.cn-lm-summary dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.cn-lm-summary dd { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.cn-lm-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px 22px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}
.cn-lm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; color: #111827; cursor: pointer; }
.cn-lm-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #111827; cursor: pointer; }
.cn-lm-check a { color: #1d4ed8; text-decoration: underline; }
.cn-lm-note { margin: 0; font-size: 12.5px; color: #64748b; line-height: 1.5; }
.cn-lm-buttons { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cn-lm-primary, .cn-lm-secondary {
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}
.cn-lm-primary { width: 100%; border: 1.5px solid #111827; background: #111827; color: #ffffff; }
.cn-lm-buttons .cn-lm-primary { width: auto; }
.cn-lm-primary:hover:not([disabled]) { background: #000000; }
.cn-lm-primary[disabled] { opacity: .45; cursor: not-allowed; }
.cn-lm-secondary { border: 1.5px solid #cbd5e1; background: #ffffff; color: #111827; }
.cn-lm-primary:focus-visible, .cn-lm-secondary:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.cn-lm-loading { color: #64748b; font-size: 14px; }
html.cn-lm-open, html.cn-lm-open body { overflow: hidden !important; }

/* Pencere içindeki hukuki metin */
.cn-legal-body { color: #374151; font-size: 14px; line-height: 1.7; }
.cn-legal-body .policy-section { margin: 0 0 18px; padding: 0; border: 0; background: none; box-shadow: none; }
.cn-legal-body .policy-section:last-child { margin-bottom: 0; }
.cn-legal-body h2 { margin: 0 0 8px; font-size: 15.5px; line-height: 1.4; font-weight: 700; color: #111827; letter-spacing: 0; }
.cn-legal-body h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; color: #111827; }
.cn-legal-body p { margin: 0 0 10px; color: #374151; font-size: 14px; line-height: 1.7; }
.cn-legal-body ul { margin: 0 0 10px; padding-left: 20px; }
.cn-legal-body li { margin-bottom: 4px; }
.cn-legal-body a { color: #1d4ed8; text-decoration: underline; }
.cn-legal-body strong { color: #111827; }
.cn-legal-body .legal-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0 0 10px; }
.cn-legal-body .legal-facts dt { font-weight: 600; color: #111827; }
.cn-legal-body .legal-facts dd { margin: 0; word-break: break-word; }
.cn-legal-body .legal-table-wrap { overflow-x: auto; margin: 6px 0 10px; border: 1px solid #e5e7eb; border-radius: 10px; }
.cn-legal-body .legal-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.cn-legal-body .legal-table th, .cn-legal-body .legal-table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.cn-legal-body .legal-table th { background: #f8fafc; color: #111827; }
.cn-legal-body .legal-table tr:last-child td { border-bottom: 0; }

@media (max-width: 600px) {
    .cn-cc { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; max-height: calc(100vh - 24px); }
    .cn-cc-title { font-size: 18px; }
    .cn-cc-text { font-size: 13.5px; }
    .cn-cc-btn { min-height: 44px; font-size: 14.5px; }
    .cn-lm { padding: 0; align-items: flex-end; }
    .cn-lm-dialog { max-height: 92vh; border-radius: 18px 18px 0 0; }
    .cn-lm-head, .cn-lm-body, .cn-lm-foot, .cn-lm-summary { padding-left: 16px; padding-right: 16px; }
    .cn-lm-head { flex-direction: column; gap: 6px; }
    .cn-lm-summary { grid-template-columns: 1fr 1fr; }
    .cn-lm-primary { font-size: 14px; }
    .cn-legal-body .legal-facts { grid-template-columns: 1fr; }
}
