/* ===================================================================
   Cookie Consent Banner
   GDPR / UK GDPR compliant — Raw & Well marketing layer
   No CSS custom properties from main.css — fully self-contained
   =================================================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem; /* 13px */
  line-height: 1.5;
  color: #374151;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
}

.cookie-banner__text {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner__text p {
  margin: 0;
  color: #4b5563;
}

.cookie-banner__text a {
  color: #14B8A6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: #0d9488;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-banner__btn--accept {
  background-color: #14B8A6;
  color: #ffffff;
  border: 1px solid #14B8A6;
}

.cookie-banner__btn--accept:hover {
  background-color: #0d9488;
  border-color: #0d9488;
}

.cookie-banner__btn--accept:focus-visible {
  outline: 2px solid #14B8A6;
  outline-offset: 2px;
}

.cookie-banner__btn--essential {
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.cookie-banner__btn--essential:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.cookie-banner__btn--essential:focus-visible {
  outline: 2px solid #6b7280;
  outline-offset: 2px;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-banner__btn {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1rem;
  }
}

#cookie-banner.is-hidden {
  display: none !important;
}

