/* Cookie Consent Banner — subtle bottom-left card */

#exb-cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9999;
  width: 300px;
  max-width: calc(100vw - 2.5rem);
  background: var(--primary-dark, rgb(0, 44, 53));
  color: #e2f0f4;
  border-radius: var(--radius-lg, 6px);
  padding: 0.875rem 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.8125rem;
  line-height: 1.5;

  /* Hidden by default, slides up on enter */
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#exb-cookie-banner.exb-cookie-banner--in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#exb-cookie-banner.exb-cookie-banner--out {
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
}

.exb-cookie-banner__text {
  margin: 0 0 0.625rem 0;
  color: #cce4ee;
}

.exb-cookie-banner__link {
  color: var(--primary-blue, rgb(0, 142, 201));
  text-decoration: underline;
  white-space: nowrap;
}

.exb-cookie-banner__link:hover {
  color: var(--primary-blue-strong, rgb(77, 163, 255));
}

.exb-cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.exb-cookie-banner__btn {
  flex: 1;
  padding: 0.375rem 0.625rem;
  border: none;
  border-radius: var(--radius-md, 4px);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  line-height: 1.4;
}

.exb-cookie-banner__btn--accept {
  background: var(--primary-blue, rgb(0, 142, 201));
  color: #fff;
}

.exb-cookie-banner__btn--accept:hover {
  background: var(--primary-blue-strong, rgb(77, 163, 255));
}

.exb-cookie-banner__btn--decline {
  background: transparent;
  color: #a0bec8;
  border: 1px solid rgba(160, 190, 200, 0.35);
}

.exb-cookie-banner__btn--decline:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #cce4ee;
}

/* Dark mode — banner already uses dark background, minor adjustments */
[data-theme="dark"] #exb-cookie-banner {
  background: #0a2a33;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* RTL support (Arabic) */
[dir="rtl"] #exb-cookie-banner {
  left: auto;
  right: 1.25rem;
}

@media (max-width: 400px) {
  #exb-cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg, 6px) var(--radius-lg, 6px) 0 0;
  }

  [dir="rtl"] #exb-cookie-banner {
    left: 0;
    right: 0;
  }
}
