/* =========================================================
   Cookie consent banner (GDPR) - compact variant
   Desktop: thin fixed bar, one row. Tablet/mobile: tight card.
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: #ffffff;
  border-top: 1px solid #e3ebf7;
  box-shadow: 0 -2px 10px rgba(10, 42, 94, .08);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  /* Enter animation: slide up + fade in. Leaves via .is-leaving. */
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1),
              opacity   .35s cubic-bezier(.2, .7, .2, 1);
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.is-leaving {
  transform: translateY(100%);
  opacity: 0;
}

/* Desktop (default, >=1025px): thin bar — text left, buttons right, single row */
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.cookie-banner__text {
  flex: 1 1 auto;
  min-width: 0;
}
.cookie-banner__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .98rem;
  color: #0a2a5e;
  margin: 0 0 2px;
  line-height: 1.2;
}
.cookie-banner__desc {
  margin: 0;
  color: #4a5a74;
  font-size: .85rem;
  line-height: 1.4;
}
.cookie-banner__link {
  color: #0f4fb6;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie-banner__link:hover { color: #2a7bff; }

.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease,
              background .2s ease, color .2s ease;
}
.cookie-btn:focus-visible {
  outline: 2px solid #2a7bff;
  outline-offset: 2px;
}
.cookie-btn--accept {
  background: linear-gradient(135deg, #0f4fb6, #2a7bff);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 79, 182, .2);
}
.cookie-btn--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 79, 182, .25);
  color: #ffffff;
}
.cookie-btn--reject {
  background: transparent;
  color: #0f4fb6;
  border-color: #0f4fb6;
}
.cookie-btn--reject:hover {
  background: #e8f0ff;
}

/* Discreet "Setari cookies" link in footer-bottom */
.footer-cookie-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: .85;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-cookie-link:hover { opacity: 1; color: #ffffff; }

/* Tablet: 768-1024px - stacked, buttons on a single row below the text */
@media (max-width: 1024px) {
  .cookie-banner {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie-banner__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  .cookie-btn {
    padding: 9px 20px;
  }
}

/* Mobile: <=767px - tighter padding, smaller fonts, buttons share the row */
@media (max-width: 767px) {
  .cookie-banner {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    max-height: 45vh;
    overflow-y: auto;
  }
  .cookie-banner__inner {
    gap: 8px;
  }
  .cookie-banner__title {
    font-size: 1.1rem;
    margin: 0 0 2px;
    line-height: 1.2;
  }
  .cookie-banner__desc {
    font-size: .85rem;
    line-height: 1.4;
  }
  .cookie-banner__actions {
    gap: 8px;
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1 1 0;
    padding: 9px 12px;
    font-size: .88rem;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}
