/* Çerez onay penceresi (src/bilesenler/site/CerezOnayi.tsx). Kurumsal sitede tema renklerini kullanır;
   Şırnak ve Kariyer Portalı gibi tema değişkeni olmayan sayfalarda yedek renklerle açık görünür. */
.cerez-bant {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
  max-width: 1080px; margin: 0 auto; padding: 0; min-height: 0;
  background: var(--kart, #fff); color: var(--metin, #3a3757);
  border: 1px solid var(--cizgi-guclu, rgba(40, 30, 120, .22)); border-radius: 14px;
  box-shadow: 0 18px 48px -16px rgba(23, 18, 63, .35);
  font-size: 15px; line-height: 1.55;
}
.cerez-bant[hidden], .cerez-degistir[hidden] { display: none; }
.cerez-ic { display: flex; gap: 20px 28px; align-items: center; padding: 20px 24px; flex-wrap: wrap; }
.cerez-metin { flex: 1 1 420px; min-width: 0; }
/* Kimlik seçicileri bilinçli: sayfaların genel başlık/paragraf kuralları (.corporate h2 vb.) burayı ezmesin. */
#cerez-bant h2, #cerez-pencere h2, #cerez-pencere h3 {
  margin: 0 0 6px; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0;
  text-transform: none; color: var(--baslik, #17123f);
}
#cerez-pencere h3 { font-size: 15px; margin: 0; }
#cerez-bant p, #cerez-pencere p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; max-width: none; }
#cerez-bant a, #cerez-pencere a { color: var(--mor, #5b4be0); text-decoration: underline; text-underline-offset: 2px; }

/* Üç seçenek aynı boyut, aynı renk ve aynı ağırlıkta: hiçbiri öne çıkarılmaz. */
.cerez-dugmeler { display: flex; gap: 10px; flex-wrap: wrap; }
.cerez-dugme {
  flex: 1 1 auto; min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--baslik, #17123f); background: var(--kart, #fff); color: var(--baslik, #17123f);
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
}
.cerez-dugme:hover { background: var(--uzerine, rgba(30, 22, 80, .06)); }
.cerez-dugme:focus-visible, .cerez-kapat:focus-visible, .cerez-anahtar:focus-visible, .cerez-degistir:focus-visible,
.cerez-bant a:focus-visible, .cerez-pencere a:focus-visible { outline: 3px solid var(--mor, #5b4be0); outline-offset: 2px; }

.cerez-pencere {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0;
  background: var(--kart, #fff); color: var(--metin, #3a3757);
  border: 1px solid var(--cizgi-guclu, rgba(40, 30, 120, .22)); border-radius: 16px;
  font-size: 15px; line-height: 1.55;
}
.cerez-pencere::backdrop { background: var(--perde, rgba(23, 18, 63, .35)); }
.cerez-form { padding: 22px 24px 24px; display: grid; gap: 16px; }
.cerez-pencere-bas { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cerez-pencere-bas h2 { margin: 0; }
.cerez-kapat {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--cizgi, rgba(40, 30, 120, .12));
  background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.cerez-kategoriler { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cerez-kategoriler li { border: 1px solid var(--cizgi, rgba(40, 30, 120, .12)); border-radius: 12px; padding: 14px 16px; }
.cerez-kategori-bas { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.cerez-kategoriler label { cursor: pointer; }
#cerez-pencere .cerez-kategoriler li > p { font-size: 14px; color: var(--soluk, #6b6889); }
.cerez-durum { font-size: 13px; font-weight: 600; color: var(--turkuaz, #0e7c72); white-space: nowrap; }
.cerez-anahtar { width: 22px; height: 22px; flex: none; accent-color: var(--mor, #5b4be0); cursor: pointer; }

.cerez-duyuru { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

/* Alt alandaki "Çerez Tercihlerimi Değiştir": çevresindeki bağlantılarla aynı görünür. */
.cerez-degistir {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-decoration: inherit; cursor: pointer; text-align: inherit;
}
.cerez-degistir:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .cerez-bant { left: 8px; right: 8px; bottom: 8px; max-height: calc(100vh - 16px); overflow-y: auto; }
  .cerez-ic { padding: 16px; }
  .cerez-dugmeler { flex-direction: column; width: 100%; }
  .cerez-dugme { width: 100%; }
}
@media print { .cerez-bant, .cerez-pencere { display: none !important; } }
