/* Cookie consent banner + customise modal (F6.10.2)
   Visibility is class-driven (.active), never inline style. No inline handlers.
   z-index: banner 9990 (sits below the sticky mobile CTA bar at 9999);
   modal 10000 (above the sticky CTA only while actively making a choice). */

.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 -2px 16px rgba(15, 37, 72, 0.28);
}

.cookie-banner.active { display: block; }

.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 360px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.cookie-btn:hover { opacity: 0.9; }

.cookie-btn-accept {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.cookie-btn-decline,
.cookie-btn-customise {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

/* Customise modal */
.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 37, 72, 0.55);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.active { display: flex; }

.cookie-modal-box {
  background: #fff;
  color: var(--navy-dark);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 1.75rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(15, 37, 72, 0.35);
}

.cookie-modal-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.cookie-modal-intro {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-category {
  border: 1px solid var(--bg-alt);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-category-info { flex: 1; }

.cookie-category-info h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.cookie-category-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cookie-toggle {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cookie-toggle:disabled { cursor: not-allowed; }

.cookie-modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* Footer "Cookie Settings" link.
   In column-list footers (.footer-links a) the existing footer rule wins on
   specificity, so this only colours the inline-copyright footer variants. */
.cookie-settings-link {
  color: var(--text-muted);
  cursor: pointer;
}

a[data-action="cookie-settings"] { cursor: pointer; }

@media (max-width: 480px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 12px;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
  .cookie-modal-actions { flex-direction: column-reverse; }
  .cookie-modal-actions .cookie-btn { width: 100%; }
}
