/* ==========================================================================
   EroticWeb3 — cookie consent banner and settings (public/consent.js), shared by every page
   of eroticweb3.com. Self-contained like site-nav.css: its own tokens, every rule scoped.
   "Refuse all" and "Accept all" look exactly alike: neither choice is pushed.
   ========================================================================== */

.cc,
.cc-panel {
  --cc-text: #f8eef0;
  --cc-text-2: #cdbcc3;
  --cc-gold: #e9a982;
  --cc-rose: #ff3d71;
  --cc-line: rgba(255, 214, 224, 0.14);
  --cc-line-2: rgba(255, 214, 224, 0.26);
  --cc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--cc-text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.cc *,
.cc-panel * {
  box-sizing: border-box;
  margin: 0;
}

.cc a,
.cc-panel a {
  color: var(--cc-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc a:hover,
.cc-panel a:hover {
  color: var(--cc-text);
}

.cc :focus-visible,
.cc-panel :focus-visible {
  outline: 2px solid var(--cc-gold);
  outline-offset: 3px;
}

/* ── Buttons: the same look for every choice ─────────────────────────────── */
.cc .cc-btn,
.cc-panel .cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 61, 113, 0.55);
  border-radius: 999px;
  background: rgba(255, 61, 113, 0.14);
  color: var(--cc-text);
  font: 700 14px/1 'Manrope', system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cc .cc-btn:hover,
.cc-panel .cc-btn:hover {
  border-color: var(--cc-rose);
  background: rgba(255, 61, 113, 0.28);
}

.cc .cc-link {
  min-height: 46px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--cc-text-2);
  font: 700 14px/1 'Manrope', system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cc .cc-link:hover {
  color: var(--cc-text);
}

/* ── Banner ──────────────────────────────────────────────────────────────── */
.cc {
  position: fixed;
  inset-inline: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 18px 28px;
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
  padding: 20px 24px;
  border: 1px solid var(--cc-line-2);
  border-radius: 22px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 61, 113, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(23, 15, 24, 0.97), rgba(11, 8, 12, 0.97));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.4s var(--cc-ease), translate 0.5s var(--cc-ease);
}

.cc.is-in {
  opacity: 1;
  translate: 0 0;
}

.cc__text {
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.cc__text p {
  color: var(--cc-text-2);
  font-size: 14px;
}

.cc .cc__title {
  color: var(--cc-text);
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.cc__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Settings panel ──────────────────────────────────────────────────────── */
.cc-panel {
  /* Pages reset every margin to 0: give the dialog its centring back. */
  margin: auto;
  width: min(100% - 32px, 560px);
  max-height: min(100dvh - 32px, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--cc-line-2);
  border-radius: 22px;
  background:
    radial-gradient(80% 40% at 20% 0%, rgba(255, 61, 113, 0.18), transparent 70%),
    linear-gradient(180deg, #170f18, #0b080c);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.cc-panel::backdrop {
  background: rgba(4, 2, 5, 0.7);
  backdrop-filter: blur(6px);
}

.cc-panel__body {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.cc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cc-panel h2 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.cc-panel .cc-panel__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cc-line-2);
  border-radius: 50%;
  background: none;
  color: var(--cc-text);
  font-size: 15px;
  cursor: pointer;
}

.cc-panel p {
  color: var(--cc-text-2);
  font-size: 14.5px;
}

.cc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.cc-row > div {
  display: grid;
  gap: 4px;
}

.cc-panel h3 {
  font-size: 15px;
  font-weight: 800;
}

.cc-panel code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-text);
  font-size: 0.9em;
}

.cc-always {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(233, 169, 130, 0.4);
  border-radius: 999px;
  color: var(--cc-gold);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Switch */
.cc-panel .cc-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  margin-top: 2px;
  border: 1px solid var(--cc-line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cc-panel .cc-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cc-text);
  transition: translate 0.25s var(--cc-ease);
}

.cc-panel .cc-switch:checked {
  border-color: transparent;
  background: linear-gradient(135deg, #ff5a86 0%, #e8195a 48%, #a50f45 100%);
}

.cc-panel .cc-switch:checked::after {
  translate: 22px 0;
}

.cc-panel__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cc-panel__actions .cc-btn {
  padding-inline: 10px;
}

/* ── Phones ──────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .cc {
    flex-direction: column;
    align-items: stretch;
    inset-inline: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    padding: 18px;
  }

  .cc__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc .cc-link {
    grid-column: 1 / -1;
    min-height: 40px;
  }

  .cc-panel__body {
    gap: 14px;
    padding: 20px 18px;
  }

  .cc-panel h2 {
    font-size: 26px;
  }

  .cc-panel p {
    font-size: 14px;
  }

  /* The switch or the "Always on" tag sits next to the title; the text takes the full width. */
  .cc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 14px;
  }

  .cc-row > div {
    display: contents;
  }

  .cc-row h3 {
    grid-area: 1 / 1;
    align-self: center;
  }

  .cc-row p {
    grid-column: 1 / -1;
  }

  .cc-row > .cc-always,
  .cc-panel .cc-row > .cc-switch {
    grid-area: 1 / 2;
    align-self: center;
    margin-top: 0;
  }

  .cc-panel__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc,
  .cc-panel .cc-switch,
  .cc-panel .cc-switch::after {
    transition-duration: 0.01ms;
  }
}
