/* GDPR çerez banner + tercih merkezi */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  padding: 16px;
  background: rgba(11, 18, 32, 0.97);
  color: #f8fafc;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.28);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.cookie-banner[hidden],
.cookie-prefs[hidden],
.cookie-prefs-backdrop[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.cookie-banner-text p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 720px;
}

.cookie-banner-text a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner .btn-ghost {
  color: #e2e8f0;
  border-color: transparent;
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cookie-banner .btn-outline {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.35);
  background: transparent;
}

.cookie-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cookie-prefs-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.cookie-prefs {
  position: fixed;
  z-index: 10070;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 24px));
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
  background: #fff;
  color: #0b1220;
  border-radius: 16px;
  border: 1px solid #e8edf4;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 22px;
}

.cookie-prefs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cookie-prefs-header h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.cookie-prefs-header p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

.cookie-prefs-close {
  width: 36px;
  height: 36px;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-prefs-close:hover {
  background: #f1f5f9;
}

.cookie-prefs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-prefs-item {
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.cookie-prefs-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cookie-prefs-item-top strong {
  font-size: 14px;
}

.cookie-prefs-item p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.cookie-prefs-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #ecfdf5;
  color: #047857;
  vertical-align: middle;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s ease;
}

.cookie-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch-ui {
  background: #4f46e5;
}

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

.cookie-switch input:disabled + .cookie-switch-ui {
  background: #6366f1;
  opacity: 0.85;
  cursor: not-allowed;
}

.cookie-prefs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8edf4;
}

body.cookie-prefs-open {
  overflow: hidden;
}

a.btn-like {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 auto;
  }

  .cookie-prefs {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: min(92vh, 920px);
    border-radius: 16px 16px 0 0;
  }

  .cookie-prefs-actions {
    flex-direction: column-reverse;
  }

  .cookie-prefs-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
