/* cookie.css — GDPR consent banner (assets/cookie.css) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: #0a1f3c;
  color: #eaf0fb;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
  font-size: 14px;
  line-height: 1.5;
  display: none; /* shown by JS only when no choice stored */
}
.cookie-banner.is-open { display: block; }

.cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1 1 420px; min-width: 260px; }
.cookie-text strong { color: #fff; }
.cookie-text a { color: #6fb0ff; text-decoration: underline; }
.cookie-text a:hover { color: #aacbff; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: #1f6feb;
  color: #fff;
}
.cookie-btn-accept:hover { background: #1a5fcc; }
.cookie-btn-reject {
  background: transparent;
  color: #eaf0fb;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cookie-btn-reject:hover { border-color: #fff; }

/* Floating re-open button (Cookie Settings) — placed bottom-LEFT in LTR so it
   does not collide with the chat widget (bottom-right). Mirrored in RTL. */
.cookie-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1100;
  background: #0a1f3c;
  color: #eaf0fb;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
}
.cookie-fab.is-visible { display: inline-flex; }
.cookie-fab:hover { background: #14305a; }

/* RTL */
[dir="rtl"] .cookie-fab { left: auto; right: 16px; }
[dir="rtl"] .cookie-inner { flex-direction: row-reverse; }

@media (max-width: 640px) {
  .cookie-banner {
    max-height: 55vh;
    overflow-y: auto;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }
  .cookie-text {
    flex: 1 1 auto;   /* reset 420px basis which became a min-height in column layout */
    min-width: auto;
  }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1 1 auto; text-align: center; }
}
