/* =========================================================
   ÇEREZ ONAY EKLENTİSİ + YASAL METİNLER — Esen Ticaret
   ========================================================= */
.cz-banner{
    position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 99990;
    max-width: 980px; margin: 0 auto;
    background: #fff; color: #1d2b3a;
    border-radius: 14px; border-top: 4px solid var(--primary-color, #204D85);
    box-shadow: 0 18px 50px rgba(16, 38, 66, .22);
    padding: 22px 26px;
    display: none; gap: 22px; align-items: center;
    font-family: var(--primary-font, sans-serif);
    animation: czUp .35s ease;
}
.cz-banner.cz-show{ display: flex; }
@keyframes czUp{ from{ transform: translateY(30px); opacity: 0 } to{ transform: none; opacity: 1 } }
.cz-banner__icon{ font-size: 38px; color: var(--primary-color, #204D85); line-height: 1; flex: 0 0 auto; }
.cz-banner__text{ flex: 1 1 auto; font-size: 14.5px; line-height: 1.6; }
.cz-banner__text strong{ display: block; font-size: 16px; margin-bottom: 4px; color: var(--primary-color, #204D85); }
.cz-banner__text a{ color: #e35131; text-decoration: underline; }
.cz-banner__btns{ display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; min-width: 190px; }

.cz-btn{
    border: 2px solid var(--primary-color, #204D85); border-radius: 100vmax;
    padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    background: #fff; color: var(--primary-color, #204D85);
    transition: .2s ease; font-family: inherit; line-height: 1.2;
}
.cz-btn:hover{ background: #eef3f9; }
.cz-btn--primary{ background: var(--primary-color, #204D85); color: #fff; }
.cz-btn--primary:hover{ background: #173a66; }
.cz-btn--link{ border-color: transparent; background: transparent; text-decoration: underline; padding: 4px 10px; }
.cz-btn--link:hover{ background: transparent; color: #e35131; }

/* Tercih paneli */
.cz-modal{
    position: fixed; inset: 0; z-index: 99995; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(10, 25, 45, .55);
    font-family: var(--primary-font, sans-serif);
}
.cz-modal.cz-show{ display: flex; }
.cz-modal__box{
    background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
    max-height: 90vh; overflow: auto; padding: 26px 26px 20px; color: #1d2b3a;
}
.cz-modal__head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cz-modal__head h3{ font-size: 20px; margin: 0; color: var(--primary-color, #204D85); font-weight: 700; }
.cz-close{ background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #555; }
.cz-modal__intro{ font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.cz-cat{ border: 1px solid #e3e8ef; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.cz-cat__row{ display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cz-cat__row b{ font-size: 15px; }
.cz-cat p{ font-size: 13px; line-height: 1.55; margin: 6px 0 0; color: #4a5866; }
.cz-always{ font-size: 12px; font-weight: 700; color: #2e8b57; white-space: nowrap; }
.cz-switch{ position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.cz-switch input{ opacity: 0; width: 0; height: 0; }
.cz-switch span{
    position: absolute; inset: 0; background: #c5ccd6; border-radius: 26px; cursor: pointer; transition: .2s;
}
.cz-switch span::before{
    content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: .2s;
}
.cz-switch input:checked + span{ background: var(--primary-color, #204D85); }
.cz-switch input:checked + span::before{ transform: translateX(20px); }
.cz-switch input:focus-visible + span{ outline: 2px solid #e35131; outline-offset: 2px; }
.cz-modal__foot{ display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }

/* Tercihleri yeniden açma butonu */
.cz-reopen{
    position: fixed; left: 18px; bottom: 18px; z-index: 9990;
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--primary-color, #204D85); color: #fff; font-size: 22px;
    display: none; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.cz-reopen.cz-show{ display: grid; }

@media (max-width: 767px){
    .cz-banner{ flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; padding: 18px; gap: 12px; }
    .cz-banner__icon{ display: none; }
    .cz-banner__btns{ min-width: 0; }
}

/* ---------- İletişim formu KVKK onay kutusu ---------- */
.kvkk-check{
    grid-area: span 1/span 2;
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; line-height: 1.55; color: #33414f;
    margin: 4px 0 0; text-align: left;
}
.kvkk-check input[type="checkbox"]{
    width: 18px !important; height: 18px !important; min-width: 18px;
    margin: 2px 0 0 !important; padding: 0 !important; flex: 0 0 auto;
    accent-color: var(--primary-color, #204D85); cursor: pointer; float: none !important;
}
.kvkk-check label{ cursor: pointer; margin: 0; }
.kvkk-check a{ color: var(--primary-color, #204D85); font-weight: 700; text-decoration: underline; }
.form-error{
    grid-area: span 1/span 2; display: none;
    background: #fdecea; color: #b3261e; border-radius: 6px; padding: 10px 14px; font-size: 14px;
}
.form-error.active{ display: block; }

/* ---------- Footer yasal linkler ---------- */
.legal-links{
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
    padding: 14px 10px; font-size: 13.5px;
    font-family: var(--primary-font, sans-serif);
}
.legal-links a{ color: #33414f; cursor: pointer; }
.legal-links a:hover{ color: var(--primary-color, #204D85); text-decoration: underline; }

/* ---------- Yasal metin sayfaları ---------- */
.legal-text{ font-size: 15px; line-height: 1.75; color: #2b3845; }
.legal-text h2{ font-size: 22px; color: var(--primary-color, #204D85); margin: 0 0 14px; font-weight: 700; }
.legal-text h3{ font-size: 17px; color: var(--primary-color, #204D85); margin: 26px 0 8px; font-weight: 700; }
.legal-text p{ margin: 0 0 12px; }
.legal-text ul{ padding-left: 20px; margin: 0 0 12px; list-style: disc; }
.legal-text ul li{ margin-bottom: 4px; list-style: disc; }
.legal-text table{ width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.legal-text th, .legal-text td{ border: 1px solid #dfe5ec; padding: 9px 11px; text-align: left; vertical-align: top; }
.legal-text th{ background: #f1f5fa; color: var(--primary-color, #204D85); }
.legal-text .table-wrap{ overflow-x: auto; }
.legal-text .legal-date{ font-size: 13px; color: #6a7783; margin-top: 24px; }
.legal-text a{ color: #e35131; text-decoration: underline; }
@media (max-width: 767px){
    .legal-links{ padding: 14px 64px 18px; }
}
