:root {
  --cc-text: #171717;
  --cc-muted: #5f6368;
  --cc-line: rgba(18, 18, 18, 0.12);
  --cc-gold: #b8925a;
  --cc-gold-dark: #8f6f3f;
  --cc-cream: #fbfaf7;
  --cc-dark: #101010;
  --cc-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.cc-modal .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;
}

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.cc-overlay[hidden],
.cc-modal[hidden] {
  display: none !important;
}

.cc-banner,
.cc-modal-panel {
  width: min(100%, 760px);
  color: var(--cc-text);
  background: linear-gradient(145deg, #ffffff 0%, var(--cc-cream) 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  box-shadow: var(--cc-shadow);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cc-banner {
  padding: 28px;
}

.cc-kicker {
  margin: 0 0 8px;
  color: var(--cc-gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cc-banner h2,
.cc-modal-panel h2 {
  margin: 0;
  color: var(--cc-dark);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.cc-banner p,
.cc-modal-panel p {
  color: var(--cc-muted);
  line-height: 1.65;
}

.cc-banner p {
  margin: 14px 0 0;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cc-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 12px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cc-button:hover,
.cc-button:focus-visible {
  transform: translateY(-1px);
}

.cc-button:focus-visible,
.cc-toggle input:focus-visible + span,
[data-cookie-settings]:focus-visible {
  outline: 3px solid rgba(184, 146, 90, 0.38);
  outline-offset: 3px;
}

.cc-button-primary {
  color: #fff;
  background: #111;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.cc-button-secondary {
  color: #111;
  background: rgba(184, 146, 90, 0.14);
  border-color: rgba(184, 146, 90, 0.35);
}

.cc-button-ghost {
  color: #111;
  background: transparent;
  border-color: var(--cc-line);
}

.cc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.92rem;
}

.cc-links a,
.cc-inline-link {
  color: var(--cc-gold-dark);
  font-weight: 700;
  text-decoration: none;
}

.cc-links a:hover,
.cc-inline-link:hover {
  text-decoration: underline;
}

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(7px);
}

.cc-modal-panel {
  max-height: min(92vh, 860px);
  overflow: auto;
}

.cc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 28px 14px;
}

.cc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #111;
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.cc-modal-body {
  padding: 0 28px 28px;
}

.cc-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--cc-line);
}

.cc-category h3 {
  margin: 0 0 6px;
  color: #111;
  font-size: 1rem;
}

.cc-category p {
  margin: 0;
  font-size: 0.95rem;
}

.cc-status {
  display: inline-flex;
  align-items: center;
  min-width: 116px;
  justify-content: center;
  padding: 8px 12px;
  color: #111;
  background: rgba(17, 17, 17, 0.06);
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.cc-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cc-toggle input {
  position: absolute;
  opacity: 0;
}

.cc-toggle span {
  position: relative;
  width: 58px;
  height: 32px;
  background: #d9d6cf;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease;
}

.cc-toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

.cc-toggle input:checked + span {
  background: var(--cc-gold);
}

.cc-toggle input:checked + span::after {
  transform: translateX(26px);
}

.cc-embed-box {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 220px;
  padding: 28px;
  text-align: center;
  color: #222;
  background: linear-gradient(145deg, #f8f5ef, #ffffff);
  border: 1px solid rgba(184, 146, 90, 0.28);
  border-radius: 18px;
}

.cc-responsive-iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
}

.cc-responsive-iframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cc-floating-settings {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  padding: 9px 12px;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font: 700 0.85rem Inter, system-ui, sans-serif;
  text-decoration: none;
}

@media (max-width: 640px) {
  .cc-overlay,
  .cc-modal {
    padding: 14px;
  }

  .cc-banner,
  .cc-modal-header,
  .cc-modal-body {
    padding: 22px;
  }

  .cc-modal-header {
    padding-bottom: 8px;
  }

  .cc-actions,
  .cc-button {
    width: 100%;
  }

  .cc-actions {
    gap: 10px;
  }

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

  .cc-status,
  .cc-toggle {
    justify-self: start;
  }
}
