.cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.97);
  box-shadow: 0 -18px 42px rgba(67, 49, 24, 0.14);
  backdrop-filter: blur(10px);
}

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

.cookie-consent__inner {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 20px 0 24px;
}

.cookie-consent__title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.cookie-consent__text {
  margin: 0;
  max-width: 72ch;
  color: var(--body-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent__text a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.cookie-consent__text a:hover {
  color: var(--ink);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-consent__btn {
  min-height: 46px;
  padding-inline: 22px;
  font-size: 0.95rem;
}

body.cookie-consent-open {
  padding-bottom: 0;
}

.footer-text-button {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(248, 250, 252, 0.66);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.footer-text-button:hover {
  color: var(--gold-2);
}

.footer-text-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .cookie-consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
  }

  .cookie-consent__actions {
    justify-content: flex-end;
    white-space: nowrap;
  }
}

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

  .cookie-consent__btn {
    width: 100%;
  }
}
