.cookie-shell {
  position: fixed;
  inset: auto clamp(14px, 2vw, 28px) clamp(14px, 2vw, 28px) auto;
  z-index: 120;
  width: min(320px, calc(100vw - 28px));
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.cookie-shell.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-panel {
  width: 100%;
  margin-left: auto;
  display: grid;
  gap: 13px;
  padding: 18px;
  color: #f8efe3;
  border: 1px solid rgba(248, 239, 227, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(248, 239, 227, 0.12), rgba(248, 239, 227, 0.035)),
    rgba(11, 13, 18, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(185, 146, 84, 0.16),
    0 34px 110px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  transform: translateX(28px) scale(0.985);
  transition: transform 520ms cubic-bezier(.16, 1, .3, 1);
}

.cookie-shell.is-open .cookie-panel {
  transform: translateX(0) scale(1);
}

.cookie-kicker {
  margin: 0 0 7px;
  color: rgba(201, 161, 95, 0.94);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cookie-panel h2 {
  margin: 0;
  max-width: 11em;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.045em;
}

.cookie-copy {
  margin: 0;
  color: rgba(248, 239, 227, 0.76);
  font-size: 11px;
  line-height: 1.45;
}

.cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
}

.cookie-links a {
  color: rgba(248, 239, 227, 0.86);
  text-underline-offset: 4px;
}

.cookie-preferences {
  display: none;
  gap: 6px;
  padding-top: 0;
}

.cookie-preferences.is-open {
  display: grid;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(248, 239, 227, 0.12);
  color: rgba(248, 239, 227, 0.78);
  font-size: 10px;
  font-weight: 760;
}

.cookie-toggle input {
  width: 14px;
  height: 14px;
  accent-color: #c9a15f;
}

.cookie-actions {
  display: grid;
  gap: 7px;
}

.cookie-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(248, 239, 227, 0.24);
  border-radius: 999px;
  background: rgba(248, 239, 227, 0.05);
  color: #f8efe3;
  font: inherit;
  font-size: 9px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.cookie-button:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 161, 95, 0.82);
}

.cookie-button.primary {
  background: #c9a15f;
  border-color: #c9a15f;
  color: #090a0d;
}

.cookie-button.primary:hover {
  background: #d8b36f;
}

@media (max-width: 640px) {
  .cookie-shell {
    inset: auto 10px 10px 10px;
    width: auto;
  }

  .cookie-panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow: auto;
    border-radius: 15px;
  }
}
