:root {
  --bg: #f4efe4;
  --ink: #111111;
  --ink-soft: #3d3a34;
  --muted: #6b6458;
  --paper: #fffdf8;
  --accent: #5b7cff;
  --lime: #d4f06a;
  --border: 2px solid var(--ink);
  --radius: 10px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-hover: 7px 7px 0 var(--ink);
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
}

html.is-cookie-consent-open,
html.is-cookie-consent-open body,
html.is-cookie-consent-locked,
html.is-cookie-consent-locked body {
  overflow: hidden;
}

.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, var(--accent) 18%, rgba(17, 17, 17, 0.38));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  animation: rnc-modal-overlay-in 0.18s ease;
}

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

.cookie-consent-overlay-blocking {
  cursor: default;
}

.cookie-consent-panel {
  width: min(440px, 100%);
  padding: 28px 24px 24px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-hover);
  animation: rnc-modal-panel-in 0.22s ease;
}

.cookie-consent-panel:focus {
  outline: none;
}

.cookie-consent-panel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cookie-consent-mascot {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1448 / 1086;
}

.cookie-consent-mascot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease;
}

.cookie-consent-mascot-hover {
  opacity: 0;
}

.cookie-consent-panel.is-tropical .cookie-consent-mascot-default {
  opacity: 0;
}

.cookie-consent-panel.is-tropical .cookie-consent-mascot-hover {
  opacity: 1;
}

.cookie-consent-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.cookie-consent-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.cookie-consent-overlay .badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.cookie-consent-overlay .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 132px;
  border: var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.cookie-consent-overlay .button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.cookie-consent-overlay .button.accent {
  background: var(--accent);
  color: #fff;
}

@keyframes rnc-modal-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rnc-modal-panel-in {
  from {
    opacity: 0;
    transform: translate(4px, 4px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-overlay,
  .cookie-consent-panel,
  .cookie-consent-mascot img {
    animation: none;
    transition: none;
  }
}
