/* GOSB çerez onay bandı + gizlilik tercih merkezi */
:root {
  --cc-navy: #101f53;
  --cc-navy-hover: #0c1740;
  --cc-panel: #e8eef8;
  --cc-text: #1a1d24;
  --cc-muted: #5c6570;
  --cc-border: #d8dee6;
  --cc-white: #ffffff;
  --cc-shadow: 0 18px 48px rgba(16, 31, 83, 0.22);
}

[data-theme="dark"] {
  --cc-panel: #243041;
  --cc-text: #e8eaed;
  --cc-muted: #a8b0ba;
  --cc-border: #3a4554;
  --cc-white: #1a222d;
  --cc-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 24, 40, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.cc-overlay.is-open {
  display: flex;
}

.cc-banner {
  display: flex;
  width: min(920px, 100%);
  max-height: min(92vh, 640px);
  background: var(--cc-white);
  border-radius: 12px;
  box-shadow: var(--cc-shadow);
  overflow: hidden;
  color: var(--cc-text);
}

.cc-banner-main {
  flex: 1 1 58%;
  padding: 1.75rem 1.75rem 1.35rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cc-banner-side {
  flex: 0 0 38%;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(16, 31, 83, 0.04) 10px,
      rgba(16, 31, 83, 0.04) 11px
    ),
    var(--cc-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cc-banner-side img {
  max-width: 220px;
  width: 70%;
  height: auto;
}

.cc-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cc-text);
}

.cc-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cc-muted);
}

.cc-body a {
  color: var(--cc-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-theme="dark"] .cc-body a {
  color: #8fb0ff;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}

.cc-btn-primary {
  background: var(--cc-navy);
  color: #fff;
  border-color: var(--cc-navy);
}

.cc-btn-primary:hover {
  background: var(--cc-navy-hover);
  color: #fff;
}

.cc-btn-outline {
  background: transparent;
  color: var(--cc-text);
  border-color: #2b3140;
}

[data-theme="dark"] .cc-btn-outline {
  border-color: #8a93a0;
  color: var(--cc-text);
}

.cc-btn-outline:hover {
  background: rgba(16, 31, 83, 0.06);
}

.cc-btn-block {
  width: 100%;
}

.cc-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.cc-link-row a {
  color: var(--cc-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-theme="dark"] .cc-link-row a {
  color: #8fb0ff;
}

.cc-divider {
  height: 1px;
  background: var(--cc-border);
  margin: 0.15rem 0 0.35rem;
}

.cc-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

/* Tercih merkezi */
.cc-prefs {
  width: min(640px, 100%);
  max-height: min(90vh, 760px);
  background: var(--cc-white);
  border-radius: 12px;
  box-shadow: var(--cc-shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  color: var(--cc-text);
}

.cc-prefs.is-open {
  display: flex;
}

.cc-prefs-header {
  padding: 1.15rem 1.35rem 0.75rem;
  border-bottom: 1px solid var(--cc-border);
  flex-shrink: 0;
}

.cc-prefs-logo {
  height: 36px;
  width: auto;
  margin-bottom: 0.65rem;
}

.cc-prefs-body {
  padding: 1rem 1.35rem;
  overflow: auto;
  flex: 1 1 auto;
}

.cc-prefs-footer {
  padding: 0.85rem 1.35rem 1rem;
  border-top: 1px solid var(--cc-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cc-prefs .cc-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cc-allow-all {
  margin: 0.85rem 0 1.1rem;
}

.cc-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.cc-cat {
  border-top: 1px solid var(--cc-border);
}

.cc-cat:last-child {
  border-bottom: 1px solid var(--cc-border);
}

.cc-cat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 0.15rem;
  background: transparent;
  border: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.cc-cat-toggle-icon {
  width: 1.1rem;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--cc-muted);
  flex-shrink: 0;
}

.cc-cat-name {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 0.95rem;
}

.cc-cat-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cc-navy);
  white-space: nowrap;
}

[data-theme="dark"] .cc-cat-status {
  color: #8fb0ff;
}

.cc-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cc-switch-slider {
  position: absolute;
  inset: 0;
  background: #c5ccd6;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cc-switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cc-switch input:checked + .cc-switch-slider {
  background: var(--cc-navy);
}

.cc-switch input:checked + .cc-switch-slider::before {
  transform: translateX(20px);
}

.cc-switch input:focus-visible + .cc-switch-slider {
  outline: 2px solid var(--cc-navy);
  outline-offset: 2px;
}

.cc-cat-body {
  display: none;
  padding: 0 0.15rem 0.95rem 1.75rem;
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  margin: 0 0 0.75rem;
  background: rgba(16, 31, 83, 0.03);
}

[data-theme="dark"] .cc-cat-body {
  background: rgba(255, 255, 255, 0.03);
}

.cc-cat.is-open .cc-cat-body {
  display: block;
  padding: 0.85rem 0.9rem 0.95rem 1.75rem;
}

.cc-cat.is-open .cc-cat-toggle-icon {
  /* shows − via JS text */
}

.cc-cat-desc {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cc-muted);
}

.cc-cat-desc a {
  color: var(--cc-navy);
  text-decoration: underline;
}

[data-theme="dark"] .cc-cat-desc a {
  color: #8fb0ff;
}

.cc-powered {
  font-size: 0.72rem;
  color: var(--cc-muted);
  text-align: right;
  padding: 0.35rem 1.35rem 0.65rem;
}

.cc-footer-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  opacity: 0.9;
}

.cc-footer-link:hover {
  opacity: 1;
}

body.cc-lock {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .cc-banner {
    flex-direction: column;
    max-height: 94vh;
  }

  .cc-banner-side {
    flex: 0 0 auto;
    min-height: 110px;
    padding: 1rem;
  }

  .cc-banner-side img {
    max-width: 160px;
  }

  .cc-banner-actions {
    grid-template-columns: 1fr;
  }

  .cc-banner-main {
    padding: 1.25rem;
  }
}
