/* Ulukat Tema · Çerez onayı · v0.3.0 */

.ucb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-cerez);
  padding: 16px;
  animation: ucb-gir .32s var(--ul-ease-cikis);
}
.ucb[hidden], .ucb [hidden] { display: none !important; }
.ucb.is-kapaniyor { opacity: 0; transform: translateY(18px); transition: opacity .22s ease, transform .22s ease; }
@keyframes ucb-gir { from { opacity: 0; transform: translateY(18px); } }

.ucb-kart {
  max-width: 1180px; margin: 0 auto; padding: 22px 24px;
  border: 1px solid rgba(181, 123, 81, .32); border-radius: 16px;
  background: #151514; color: #c9c3ba;
}

.ucb-baslik { margin: 0 0 8px; color: #fff; font: 700 17px/1.3 var(--ul-sans2); }
.ucb-metin { margin: 0; font: 500 14.5px/1.75 var(--ul-sans2); }
.ucb-metin a { color: var(--ul-fawn); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ucb-metin a:hover { color: #fff; }

.ucb-ayar { margin-top: 18px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ucb-satir { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ucb-satir:last-child { padding-bottom: 4px; border-bottom: 0; }
.ucb-satir-metin { min-width: 0; }
.ucb-satir-ad { display: block; margin-bottom: 3px; color: #fff; font: 700 14.5px/1.4 var(--ul-sans2); }
.ucb-satir-aciklama { display: block; max-width: 74ch; color: #a39d93; font: 500 13px/1.65 var(--ul-sans2); }

.ucb-kilit {
  flex: none; padding: 5px 12px; border-radius: 999px;
  background: rgba(181, 123, 81, .16); color: var(--ul-fawn); font: 700 12px/1.4 var(--ul-sans2); white-space: nowrap;
}

.ucb-anahtar { position: relative; flex: none; display: inline-flex; width: 50px; height: 28px; cursor: pointer; }
.ucb-anahtar input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ucb-kaydirak { position: absolute; inset: 0; border-radius: 999px; background: #3b3935; transition: background .22s ease; }
.ucb-kaydirak::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .22s var(--ul-ease-cikis);
}
.ucb-anahtar input:checked + .ucb-kaydirak { background: var(--ul-bronz); }
.ucb-anahtar input:checked + .ucb-kaydirak::after { transform: translateX(22px); }
.ucb-anahtar input:focus-visible + .ucb-kaydirak { outline: 2px solid var(--ul-fawn); outline-offset: 2px; }

.ucb-dugmeler { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.ucb-dugme {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 13.5px/1.2 var(--ul-sans2); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ucb-dugme:hover { transform: translateY(-2px); }
.ucb-dugme:active { transform: translateY(0); }
.ucb-dugme:focus-visible { outline: 2px solid var(--ul-fawn); outline-offset: 2px; }
.ucb-dugme--kabul, .ucb-dugme--ret { background: var(--ul-bronz); color: #0c0c0c; }
.ucb-dugme--kabul:hover, .ucb-dugme--ret:hover { background: #c58b60; }
.ucb-dugme--ayar { border-color: rgba(255, 255, 255, .22); background: transparent; color: #fff; }
.ucb-dugme--ayar:hover { border-color: var(--ul-bronz); background: rgba(181, 123, 81, .08); }
.ucb-dugme--kaydet { background: var(--ul-fawn); color: #0c0c0c; }
.ucb-dugme--kaydet:hover { background: #e6b886; }

.ul-cerez-ac {
  display: inline-flex; align-items: center; min-height: 46px; padding: 12px 24px; border: 1.5px solid var(--ul-bronz); border-radius: 999px;
  background: transparent; color: #fff; font: 700 13.5px/1.2 var(--ul-sans2); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.ul-cerez-ac:hover { background: var(--ul-bronz); color: #0c0c0c; }
.ul-cerez-ac:focus-visible { outline: 2px solid var(--ul-fawn); outline-offset: 2px; }

@media (max-width: 900px) {
  .ucb { padding: 12px; }
  .ucb-kart { max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
  .ucb-satir { gap: 14px; }
  .ucb-satir-aciklama { font-size: 12.5px; }
}
@media (max-width: 640px) {
  .ucb-baslik { font-size: 16px; }
  .ucb-metin { font-size: 13.5px; }
  .ucb-dugmeler { flex-direction: column; align-items: stretch; }
  .ucb-dugme { width: 100%; }
  .ucb-dugme--ayar { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .ucb { animation: none; }
  .ucb-kaydirak, .ucb-kaydirak::after, .ucb-dugme { transition: none; }
}
@media print { .ucb { display: none !important; } }
