/* Cookie consent — компактная панель над sticky booking bar */

.cookie-consent {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: 28rem;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 40, 61, 0.1);
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 40, 61, 0.16);
  color: #0f283d;
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
}

@media (min-width: 640px) {
  .cookie-consent {
    left: 1.25rem;
    right: auto;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    margin-inline: 0;
    max-width: 24rem;
  }
}

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

.cookie-consent__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(15, 40, 61, 0.72);
}

.cookie-consent__text a {
  color: #1574a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: #0f5a7a;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.cookie-consent__btn {
  appearance: none;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__btn--accept {
  background: #365a29;
  color: #fff;
}

.cookie-consent__btn--accept:hover {
  background: #2a4620;
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent.is-visible {
    animation: cookie-consent-in 0.28s ease-out;
  }
}

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