.cookie-consent {
  position: fixed;
  z-index: 9999;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  color: #f8f3e9;
  background: rgba(13, 43, 55, 0.98);
  border: 1px solid rgba(208, 171, 92, 0.52);
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(4, 18, 24, 0.34);
  font-family: inherit;
}

.cookie-consent.is-visible {
  display: block;
  animation: cookie-consent-in 220ms ease-out;
}

.cookie-consent__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.cookie-consent h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.2;
}

.cookie-consent p {
  max-width: 54ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cookie-consent a {
  color: #e4c879;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.cookie-consent__button,
.cookie-preferences-link {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cookie-consent__button {
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-consent__button--necessary {
  color: #f8f3e9;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.cookie-consent__button--all {
  color: #173845;
  background: #e4c879;
  border: 1px solid #e4c879;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible,
.cookie-preferences-link:hover,
.cookie-preferences-link:focus-visible {
  filter: brightness(1.08);
}

.cookie-consent__button:focus-visible,
.cookie-preferences-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cookie-preferences-link {
  display: inline;
  width: fit-content;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

@keyframes cookie-consent-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 18px;
    border-radius: 14px;
  }

  .cookie-consent__content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }

  .cookie-consent__button {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent.is-visible { animation: none; }
}
