/* Cookie consent banner + preferences dialog (views/partials/consent-banner.ejs). */
.to-consent-banner[hidden], .to-consent-dialog[hidden], .to-consent-dialog__gpc[hidden] { display: none !important; }

.to-consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000;
  max-width: 880px; margin: 0 auto;
  background: #FFFFFF; color: #131313;
  border: 1px solid rgba(23, 40, 75, 0.12); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 29, 56, 0.18);
  font-family: 'Roboto', sans-serif;
}
.to-consent-banner__inner { display: flex; align-items: center; gap: 16px 24px; padding: 16px 20px; flex-wrap: wrap; }
.to-consent-banner__text { flex: 1 1 320px; margin: 0; font-size: 0.9rem; line-height: 1.5; color: #3F3F3F; }
.to-consent-banner__text a { color: #5B8FA8; text-decoration: underline; white-space: nowrap; }
.to-consent-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.to-consent-btn {
  border-radius: 9999px; padding: 0.55rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; line-height: 1.2; font-family: inherit; transition: background 0.15s, color 0.15s;
}
.to-consent-btn--primary { background: #17284B; color: #FFFFFF; border: 1px solid #17284B; }
.to-consent-btn--primary:hover { background: #0F1D38; }
.to-consent-btn--ghost { background: #FFFFFF; color: #17284B; border: 1px solid rgba(23, 40, 75, 0.35); }
.to-consent-btn--ghost:hover { background: #F1F5F8; }
.to-consent-btn:focus-visible, .to-consent-dialog__close:focus-visible, .to-consent-toggle:focus-visible { outline: 2px solid #5B8FA8; outline-offset: 2px; }

.to-consent-dialog { position: fixed; inset: 0; z-index: 9001; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Roboto', sans-serif; }
.to-consent-dialog__backdrop { position: absolute; inset: 0; background: rgba(15, 29, 56, 0.55); }
.to-consent-dialog__panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #FFFFFF; color: #131313; border-radius: 18px; padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(15, 29, 56, 0.3);
}
.to-consent-dialog__title { font-family: 'Libre Caslon Display', serif; font-weight: 400; font-size: 1.6rem; margin: 0 0 8px; color: #131313; }
.to-consent-dialog__intro { font-size: 0.9rem; line-height: 1.55; color: #565656; margin: 0 0 16px; }
.to-consent-dialog__gpc { font-size: 0.875rem; line-height: 1.5; background: #E8EDF0; color: #17284B; border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; }
.to-consent-dialog__close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: #6B7280; cursor: pointer; padding: 4px 8px; }

.to-consent-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #E5E5E5; cursor: pointer; }
.to-consent-option:first-of-type { cursor: default; }
.to-consent-option__name { margin: 0 0 4px; font-weight: 600; font-size: 0.95rem; color: #131313; }
.to-consent-option__desc { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #565656; }
.to-consent-option__always { flex-shrink: 0; font-size: 0.8rem; font-weight: 600; color: #3E7A55; padding-top: 2px; }
.to-consent-toggle { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: #17284B; cursor: pointer; }
.to-consent-toggle:disabled { cursor: not-allowed; }

.to-consent-dialog__actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid #E5E5E5; }

@media (max-width: 520px) {
  .to-consent-banner { left: 8px; right: 8px; bottom: 8px; }
  .to-consent-banner__actions { width: 100%; }
  .to-consent-banner__actions .to-consent-btn { flex: 1 1 0; }
}

/* Short privacy notices that sit under data-collection forms. */
.collection-notice { font-size: 0.75rem; line-height: 1.5; margin: 0.5rem 0 0; }
.collection-notice a { text-decoration: underline; }
.collection-notice--light { color: #6B7280; }
.collection-notice--light a { color: #5B8FA8; }
.collection-notice--dark { color: rgba(255, 255, 255, 0.6); }
.collection-notice--dark a { color: rgba(255, 255, 255, 0.85); }
