/* ─── COOKIE BANNER ──────────────────────────────────────────── */

@keyframes cookie-wobble {
  0%, 100% { transform: rotate(-15deg); }
  50%       { transform: rotate(15deg); }
}

@keyframes cookie-slide-in {
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);   opacity: 1; }
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: min(720px, calc(100% - 48px));
  background: rgba(44, 36, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 90, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  animation: cookie-slide-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cookie-banner.is-hiding {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* ── Inner layout ── */
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

/* ── Icon ── */
.cookie-banner__icon {
  font-size: 2rem;
  flex-shrink: 0;
  display: inline-block;
  animation: cookie-wobble 2.4s ease-in-out infinite;
  line-height: 1;
}

/* ── Content ── */
.cookie-banner__content {
  flex: 1;
  min-width: 0;
}

.cookie-banner__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  margin: 0 0 2px;
}

.cookie-banner__text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 38ch;
  margin: 0;
}

.cookie-banner__link {
  color: var(--color-gold-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.cookie-banner__link:hover {
  text-decoration-color: var(--color-gold-muted);
  color: #fff;
}

/* ── Actions ── */
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
  align-items: center;
}

.cookie-banner__btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.8rem;
  font-family: var(--font-body, sans-serif);
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.cookie-banner__btn--reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.cookie-banner__btn--reject:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cookie-banner__btn--accept {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  box-shadow: 0 4px 16px rgba(184, 150, 46, 0.4);
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 150, 46, 0.55);
}

/* ── Close button ── */
.cookie-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cookie-banner__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cookie-banner__close svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.8);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .cookie-banner {
    width: calc(100% - 24px);
    bottom: 12px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 1.2rem 1.2rem;
    gap: 0.9rem;
  }

  .cookie-banner__text {
    max-width: none;
  }

  .cookie-banner__actions {
    width: 100%;
    margin-left: 0;
  }

  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}
