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

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

.cookie-consent {
  --consent-surface: #111111;
  --consent-text: #f7f2ed;
  --consent-muted: rgba(247, 242, 237, .72);
  --consent-line: rgba(247, 242, 237, .18);
  position: fixed;
  inset-inline: 20px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 500;
  color: var(--consent-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

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

.cookie-consent__inner {
  pointer-events: auto;
  width: min(100%, 1040px);
  margin-inline: auto;
  border: 1px solid var(--consent-line);
  border-radius: 16px;
  background: rgba(17, 17, 17, .96);
  box-shadow: 0 16px 55px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
}

.cookie-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px 20px;
}

.cookie-consent__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.cookie-consent__eyebrow {
  margin: 0 0 5px;
  color: #d8b5a1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 0 5px;
  color: var(--consent-text);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.cookie-consent__copy > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--consent-muted);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-consent a {
  color: var(--consent-text);
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-consent__button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--consent-text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

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

.cookie-consent__button:focus-visible,
.cookie-consent input:focus-visible {
  outline: 2px solid #e7c6b4;
  outline-offset: 3px;
}

.cookie-consent__button--primary {
  background: #f7f2ed;
  color: #111111;
}

.cookie-consent__button--primary:hover {
  background: #ffffff;
}

.cookie-consent__button--secondary {
  border-color: var(--consent-line);
  background: transparent;
}

.cookie-consent__button--secondary:hover,
.cookie-consent__button--text:hover {
  background: rgba(255, 255, 255, .09);
}

.cookie-consent__button--text {
  padding-inline: 10px;
  color: var(--consent-muted);
}

.cookie-consent__settings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--consent-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
}

.cookie-consent--settings-open .cookie-consent__copy,
.cookie-consent--settings-open .cookie-consent__actions {
  display: none;
}

.cookie-consent--settings-open .cookie-consent__settings {
  padding-top: 0;
  border-top: 0;
}

.cookie-consent__settings-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cookie-consent__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cookie-consent__option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 5px;
  color: var(--consent-muted);
  cursor: pointer;
  font-size: 11px;
}

.cookie-consent__option input {
  flex: 0 0 auto;
  accent-color: #e7c6b4;
  margin-top: 2px;
}

.cookie-consent__option span {
  display: grid;
  gap: 2px;
}

.cookie-consent__option strong {
  color: var(--consent-text);
  font-size: 12px;
}

.cookie-consent__option small {
  color: var(--consent-muted);
  font-size: 10px;
  line-height: 1.35;
}

.cookie-consent__save {
  white-space: nowrap;
}

@media (max-width: 800px) {
  .cookie-consent {
    inset-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .cookie-consent__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: min(88dvh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
  }

  .cookie-consent__actions,
  .cookie-consent__settings {
    grid-column: 1;
  }

  .cookie-consent__actions {
    grid-row: auto;
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-consent h2 {
    font-size: 19px;
  }

  .cookie-consent__copy > p:last-child {
    font-size: 12px;
    line-height: 1.45;
  }

  .cookie-consent__settings {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0 0;
  }

  .cookie-consent__options {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .cookie-consent__save {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .cookie-consent__button--text {
    grid-column: 1 / -1;
    justify-self: start;
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__button {
    transition: none;
  }
}
