/* Ora Med · Cookie / Local-Storage Consent Banner
   Bilingual (RTL/LTR aware via [dir]). Brand-aligned with privacy.html / index.html.
   Strictly-necessary-only stack — no marketing/analytics trackers in the site today.
*/

#cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  background: rgba(251, 247, 240, 0.98);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-top: 1px solid rgba(29, 27, 24, 0.12);
  box-shadow: 0 -18px 48px -24px rgba(107, 79, 58, 0.28);
  font-family: 'Assistant', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1d1b18;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  animation: cookie-slide-up .35s ease-out;
}
@media (max-width: 759px) {
  #cookie-banner { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  #cookie-banner .cookie-banner__text { font-size: 12.5px; line-height: 1.5; }
  #cookie-banner .cookie-banner__text strong { font-size: 13px; }
  #cookie-banner button { padding: 9px 16px; font-size: 13px; }
  #cookie-banner .cookie-banner__content { gap: 8px; }
  #cookie-banner .cookie-banner__actions { gap: 8px; }
}

#cookie-banner[hidden] {
  display: none !important;
}

#cookie-banner .cookie-banner__content {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 760px) {
  #cookie-banner .cookie-banner__content {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }
}

#cookie-banner .cookie-banner__text {
  flex: 1 1 auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4d4740;
}

#cookie-banner .cookie-banner__text strong {
  color: #1d1b18;
  font-weight: 600;
}

#cookie-banner a {
  color: #8f6a37;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cookie-banner a:hover {
  color: #1d1b18;
}

#cookie-banner .cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#cookie-banner button {
  font: 600 14px/1 'Assistant', 'Inter', system-ui, sans-serif;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 22px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}

#cookie-banner button.cookie-btn--primary {
  background: #1d1b18;
  color: #fbf7f0;
  border: 1px solid #1d1b18;
  box-shadow: 0 6px 20px -10px rgba(29, 27, 24, .5);
}

#cookie-banner button.cookie-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(29, 27, 24, .6);
}

#cookie-banner button.cookie-btn--ghost {
  background: transparent;
  color: #1d1b18;
  border: 1px solid rgba(29, 27, 24, .25);
}

#cookie-banner button.cookie-btn--ghost:hover {
  background: rgba(29, 27, 24, .05);
  border-color: rgba(29, 27, 24, .45);
}

#cookie-banner button:focus-visible {
  outline: 2px solid #c19555;
  outline-offset: 3px;
}

@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Floating "Privacy preferences" reopen link in footer */
.cookie-prefs-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-prefs-link:hover {
  color: #fbf7f0;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  #cookie-banner { animation: none; }
}
