.cookie-consent {
  --white: #211a12;
  --iron: #786c5e;
  --copper: #c28a45;
  --cream: #fcf7f1;
  --glass-line: rgba(33, 26, 18, .18);
  --glass: rgba(33, 26, 18, .04);
  --body: 'Poppins', sans-serif;
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  z-index: 9998;
  max-width: 560px;
  max-height: calc(100dvh - 40px - env(safe-area-inset-bottom, 0px));
  margin-left: auto;
  padding: 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--cream, var(--obsidian));
  color: var(--white);
  font-family: var(--body);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.cookie-settings--floating {
  position: fixed;
  bottom: 8px;
  left: 12px;
  z-index: 9997;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #d4c5b4;
  border-radius: 6px;
  background: #fcf7f1;
  color: #211a12;
  font: 11px/1.5 'Poppins', sans-serif;
  cursor: pointer;
}
.cookie-consent[hidden], .cookie-consent [hidden] { display: none; }
.cookie-consent__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.cookie-consent__header h2 {
  margin: 0;
  color: color-mix(in srgb, var(--white) 55%, var(--copper));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
}
.cookie-consent__header > span { color: var(--iron); font-size: 11px; font-weight: 600; }
.cookie-consent__description { margin: 0 0 16px; font-size: 12px; font-weight: 400; line-height: 1.65; }
.cookie-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent__preferences {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background: var(--glass);
}
.cookie-consent__category { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
label.cookie-consent__category { min-height: 44px; cursor: pointer; }
.cookie-consent__category strong { display: block; font-size: 12px; font-weight: 600; }
.cookie-consent__category span span, .cookie-consent__category div > span {
  display: block;
  margin-top: 3px;
  color: var(--iron);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
}
.cookie-consent__always-on {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(34, 197, 94, .12);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}
.cookie-consent input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--copper); cursor: pointer; }
.cookie-consent input:disabled { cursor: default; }
.cookie-consent__gpc { margin: 0; font-size: 11px; font-weight: 400; line-height: 1.55; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-consent__button {
  display: flex;
  flex: 1 1 120px;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.cookie-consent__button--primary { border-color: var(--copper); background: var(--copper); color: #0b1215; }
.cookie-consent__button--secondary { background: var(--glass); }
.cookie-consent__button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.cookie-consent :is(a, button, input):focus-visible, .cookie-settings:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
footer .cookie-settings {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 28px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--iron);
  font: inherit;
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
}
footer .cookie-settings:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 520px) {
  .cookie-consent { right: 12px; left: 12px; padding: 20px; }
  .cookie-consent__button { flex-basis: 100%; }
  footer .cookie-settings { margin-left: 0; }
}
