:root {
  --cookie-ink: #13090d;
  --cookie-paper: rgba(255, 250, 245, 0.96);
  --cookie-paper-2: rgba(255, 244, 236, 0.92);
  --cookie-ember: #ed4f32;
  --cookie-gold: #f2b457;
  --cookie-line: rgba(19, 9, 13, 0.12);
  --cookie-muted: rgba(19, 9, 13, 0.62);
}

.cookie-consent-root {
  position: fixed;
  inset: auto 20px 20px auto;
  z-index: 1200;
  pointer-events: none;
}

.cookie-consent-root * {
  box-sizing: border-box;
}

.cookie-consent-root[data-ready="true"] {
  pointer-events: auto;
}

.cookie-consent-banner,
.cookie-consent-panel {
  font-family: "Inter", system-ui, sans-serif;
}

.cookie-consent-banner {
  width: min(420px, calc(100vw - 40px));
  padding: 22px 22px 18px;
  border: 1px solid rgba(19, 9, 13, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(242,180,87,0.16), transparent 28%),
    linear-gradient(145deg, var(--cookie-paper), var(--cookie-paper-2));
  box-shadow: 0 28px 80px rgba(42, 22, 14, 0.16);
  color: var(--cookie-ink);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.cookie-consent-root[data-visible="true"] .cookie-consent-banner,
.cookie-consent-root[data-panel-open="true"] .cookie-consent-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.cookie-consent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(237,79,50,0.18);
  background: rgba(237,79,50,0.075);
  color: var(--cookie-ember);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cookie-consent-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cookie-ember);
  box-shadow: 0 0 0 5px rgba(237,79,50,0.12);
}

.cookie-consent-title {
  margin: 0 0 10px;
  font-family: "Bricolage Grotesque", "Space Grotesk", "Poppins", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.08;
}

.cookie-consent-copy {
  margin: 0;
  color: var(--cookie-muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cookie-consent-links a {
  color: var(--cookie-ember);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.cookie-consent-links a:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--cookie-ink);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent-btn:hover {
  transform: translateY(-1px);
}

.cookie-consent-btn--ghost {
  border-color: var(--cookie-line);
  background: rgba(255,255,255,0.74);
}

.cookie-consent-btn--ghost:hover {
  border-color: rgba(237,79,50,0.22);
}

.cookie-consent-btn--primary {
  background: var(--cookie-ink);
  color: #fffaf5;
  box-shadow: 0 18px 46px rgba(19, 9, 13, 0.18);
}

.cookie-consent-btn--primary:hover {
  background: var(--cookie-ember);
  box-shadow: 0 22px 58px rgba(237,79,50,0.26);
}

.cookie-consent-panel {
  width: min(460px, calc(100vw - 40px));
  margin-top: 12px;
  padding: 22px;
  border: 1px solid rgba(19, 9, 13, 0.12);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,250,245,0.94));
  box-shadow: 0 28px 80px rgba(42, 22, 14, 0.16);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.cookie-consent-panel[hidden] {
  display: none;
}

.cookie-consent-panel h3 {
  margin: 0 0 8px;
  font-family: "Bricolage Grotesque", "Space Grotesk", "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.cookie-consent-panel p {
  margin: 0 0 18px;
  color: var(--cookie-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.cookie-consent-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--cookie-line);
}

.cookie-consent-option:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cookie-consent-option:last-of-type {
  padding-bottom: 0;
}

.cookie-consent-option label {
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.cookie-consent-option strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.cookie-consent-option span {
  color: var(--cookie-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.cookie-consent-switch {
  position: relative;
  width: 48px;
  height: 28px;
  display: inline-flex;
}

.cookie-consent-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.cookie-consent-switch-track {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(19,9,13,0.12);
  transition: background 0.2s ease;
}

.cookie-consent-switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(19,9,13,0.16);
  transition: transform 0.2s ease;
}

.cookie-consent-switch input:checked + .cookie-consent-switch-track {
  background: rgba(237,79,50,0.72);
}

.cookie-consent-switch input:checked + .cookie-consent-switch-track::after {
  transform: translateX(20px);
}

.cookie-consent-switch input:disabled + .cookie-consent-switch-track {
  background: rgba(19,9,13,0.18);
}

@media (max-width: 640px) {
  .cookie-consent-root {
    inset: auto 16px 16px 16px;
  }

  .cookie-consent-banner,
  .cookie-consent-panel {
    width: 100%;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-consent-btn {
    width: 100%;
  }

}
