.cookie-consent {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 1000;
  width: min(470px, calc(100% - 28px));
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(220, 232, 193, .24);
  border-top: 3px solid var(--burgundy-soft, #8b2638);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(107, 14, 30, .28), transparent 52%), #19171e;
  color: var(--ink, #f2f0e9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

.cookie-consent[hidden] { display: none; }
.cookie-consent__eyebrow { margin-bottom: 8px; color: var(--accent2, #c8d5ad); font: 600 .76rem "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.cookie-consent h2 { max-width: none; margin-bottom: 10px; font-size: clamp(1.35rem, 4vw, 1.8rem); }
.cookie-consent p { margin-bottom: 18px; color: var(--muted, #bbb6ae); font-size: .97rem; line-height: 1.55; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-consent__actions .btn { flex: 1 1 165px; min-height: 46px; }
.cookie-consent__policy { display: inline-block; margin-top: 15px; color: var(--accent, #dce8c1); font-size: .9rem; }
.cookie-settings-link { appearance: none; margin: 0; padding: .35rem .15rem; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .16em; cursor: pointer; }
.cookie-settings-link:hover { color: var(--ink, #f2f0e9); }
.cookie-status { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--burgundy-soft, #8b2638); background: rgba(107, 14, 30, .14); color: var(--muted, #bbb6ae); }
.cookie-status strong { color: var(--ink, #f2f0e9); }
.cookie-register { max-width: 100%; overflow-x: auto; border: 1px solid var(--line, #39343f); border-radius: 12px; }
.cookie-register table { width: 100%; min-width: 720px; border-collapse: collapse; color: var(--muted, #bbb6ae); font-size: .92rem; }
.cookie-register th, .cookie-register td { padding: 14px 16px; border-bottom: 1px solid var(--line, #39343f); text-align: left; vertical-align: top; }
.cookie-register thead th { background: rgba(107, 14, 30, .16); color: var(--ink, #f2f0e9); font-family: "IBM Plex Mono", monospace; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.cookie-register tbody th { color: var(--accent, #dce8c1); font-weight: 600; }
.cookie-register tbody tr:last-child th, .cookie-register tbody tr:last-child td { border-bottom: 0; }
.cookie-register code { color: inherit; font-family: "IBM Plex Mono", monospace; }

@media (max-width: 520px) {
  .cookie-consent { right: 10px; bottom: 10px; width: calc(100% - 20px); padding: 20px; }
  .cookie-consent__actions { flex-direction: column; }
  .cookie-consent__actions .btn { flex-basis: auto; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent:not([hidden]) { animation: cookie-consent-in .28s cubic-bezier(.16, 1, .3, 1); }
  @keyframes cookie-consent-in { from { opacity: 0; transform: translateY(14px); } }
}
