/* Kanal T — çerez onayı (alt bar + ayarlar paneli) */
:root {
  --kt-cookie-bg: #0b0b0b;
  --kt-cookie-surface: #141414;
  --kt-cookie-border: rgba(255, 255, 255, 0.12);
  --kt-cookie-text: #f5f5f5;
  --kt-cookie-muted: rgba(255, 255, 255, 0.68);
  --kt-cookie-accent: #d10000;
  --kt-cookie-accent-hover: #b00000;
}

.kt-cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10000;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  pointer-events: none;
}

.kt-cookie[hidden] {
  display: none !important;
}

.kt-cookie__bar,
.kt-cookie__panel {
  pointer-events: auto;
}

.kt-cookie__bar {
  background: var(--kt-cookie-bg);
  color: var(--kt-cookie-text);
  border-top: 1px solid var(--kt-cookie-border);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.kt-cookie.is-visible .kt-cookie__bar {
  transform: translateY(0);
  opacity: 1;
}

.kt-cookie__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.15rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.kt-cookie__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.kt-cookie__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--kt-cookie-muted);
  max-width: 62ch;
}

.kt-cookie__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kt-cookie__text a:hover {
  color: var(--kt-cookie-accent);
}

.kt-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
  justify-content: flex-end;
}

.kt-cookie__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.kt-cookie__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.kt-cookie__btn--primary {
  background: var(--kt-cookie-accent);
  color: #fff;
}

.kt-cookie__btn--primary:hover {
  background: var(--kt-cookie-accent-hover);
}

.kt-cookie__btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.kt-cookie__btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Ayarlar paneli */
.kt-cookie__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78vh, 560px);
  overflow: auto;
  background: var(--kt-cookie-surface);
  color: var(--kt-cookie-text);
  border-top: 1px solid var(--kt-cookie-border);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.kt-cookie.is-settings .kt-cookie__bar {
  visibility: hidden;
  pointer-events: none;
}

.kt-cookie.is-settings .kt-cookie__panel {
  transform: translateY(0);
  opacity: 1;
}

.kt-cookie__panel[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

.kt-cookie.is-settings .kt-cookie__panel[hidden] {
  visibility: visible;
  pointer-events: auto;
}

.kt-cookie__panel-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.35rem;
}

.kt-cookie__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.kt-cookie__panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.kt-cookie__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  border-radius: 4px;
}

.kt-cookie__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.kt-cookie__panel-lead {
  margin: 0 0 1rem;
  color: var(--kt-cookie-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.kt-cookie__cats {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.kt-cookie__cat {
  border: 1px solid var(--kt-cookie-border);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
}

.kt-cookie__cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kt-cookie__cat-name {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.kt-cookie__cat-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--kt-cookie-muted);
  line-height: 1.45;
}

.kt-cookie__switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.kt-cookie__switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.kt-cookie__switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #3a3a3a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background-color 0.2s ease;
}

.kt-cookie__switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.kt-cookie__switch input:checked + .kt-cookie__switch-ui {
  background: var(--kt-cookie-accent);
  border-color: var(--kt-cookie-accent);
}

.kt-cookie__switch input:checked + .kt-cookie__switch-ui::after {
  transform: translateX(18px);
}

.kt-cookie__switch input:disabled + .kt-cookie__switch-ui {
  opacity: 0.7;
  cursor: not-allowed;
}

.kt-cookie__switch input:focus-visible + .kt-cookie__switch-ui {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.kt-cookie__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .kt-cookie__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem 1.1rem;
  }

  .kt-cookie__actions {
    width: 100%;
  }

  .kt-cookie__actions .kt-cookie__btn {
    flex: 1 1 calc(50% - 0.25rem);
    text-align: center;
  }

  .kt-cookie__actions .kt-cookie__btn--primary {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kt-cookie__bar,
  .kt-cookie__panel {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .kt-cookie:not(.is-visible) .kt-cookie__bar {
    opacity: 0;
  }

  .kt-cookie.is-visible .kt-cookie__bar {
    opacity: 1;
  }
}
