.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0.85rem var(--space-page-x) calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(34, 33, 31, 0.96);
  color: var(--c-white);
  border-top: 1px solid rgba(206, 163, 68, 0.35);
  backdrop-filter: blur(6px);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
}

.cookie-consent__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(254, 254, 254, 0.92);
}

.cookie-consent__link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
  color: var(--c-brand-secondary);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent__btn--primary {
  background: var(--c-brand);
  color: var(--c-bg-dark);
  border-color: var(--c-brand);
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus-visible {
  background: var(--c-brand-secondary);
  border-color: var(--c-brand-secondary);
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(254, 254, 254, 0.35);
}

.cookie-consent__btn--ghost:hover,
.cookie-consent__btn--ghost:focus-visible {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cookie-modal__dialog {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--c-white);
  color: var(--c-text);
  border-top: 4px solid var(--c-brand);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.5rem;
}

.cookie-modal__header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--c-text);
}

.cookie-modal__close {
  appearance: none;
  border: 0;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c-text);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.cookie-modal__body {
  padding: 0.25rem 1.25rem 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.cookie-modal__body p {
  margin: 0 0 1rem;
}

.cookie-vendor + .cookie-vendor {
  margin-top: 1rem;
}

.cookie-vendor h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--c-brand-muted);
}

.cookie-vendor ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cookie-vendor li + li {
  margin-top: 0.45rem;
}

.cookie-modal__note {
  font-size: 0.85rem;
  color: rgba(43, 43, 43, 0.75);
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.75rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(43, 43, 43, 0.08);
}

@media (max-width: 599px) {
  .cookie-consent__inner {
    align-items: stretch;
  }

  .cookie-consent__actions,
  .cookie-modal__footer {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
