/* Cookie consent banner — PECR: nothing non-essential loads until the visitor chooses.
   Bottom-left card on desktop (the chatbot bubble sits bottom-right), full width on phones. */
.swc-banner {
  --swc-navy: #0A2540;
  --swc-teal: #2FD3BF;
  --swc-teal-dark: #13A892;
  --swc-text: rgba(255, 255, 255, 0.86);
  --swc-muted: rgba(255, 255, 255, 0.62);
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 10000;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--swc-navy);
  color: var(--swc-text);
  border: 1px solid rgba(47, 211, 191, 0.25);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(7, 28, 48, 0.45);
  padding: 20px 20px 18px;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  box-sizing: border-box;
}
.swc-banner[hidden] { display: none !important; }
.swc-banner *, .swc-banner *::before, .swc-banner *::after { box-sizing: border-box; }
.swc-title {
  margin: 0 0 6px;
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
}
.swc-text { margin: 0 0 14px; }
.swc-text a, .swc-link { color: var(--swc-teal); text-decoration: underline; }
.swc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swc-btn {
  font: 700 13.5px 'Raleway', system-ui, sans-serif;
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
/* Accept and Reject carry equal weight (ICO guidance) */
.swc-btn-primary, .swc-btn-secondary { background: var(--swc-teal); color: var(--swc-navy); border: 2px solid var(--swc-teal); }
.swc-btn-primary:hover, .swc-btn-secondary:hover { background: #fff; border-color: #fff; }
.swc-btn-ghost {
  grid-column: 1 / -1;
  background: transparent;
  color: var(--swc-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.swc-btn-ghost:hover { border-color: var(--swc-teal); color: var(--swc-teal); }
.swc-btn:focus-visible, .swc-toggle input:focus-visible + .swc-switch, .swc-link:focus-visible {
  outline: 2px solid var(--swc-teal);
  outline-offset: 2px;
}
.swc-cats { list-style: none; margin: 4px 0 14px; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.swc-cat { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.swc-cat-body { flex: 1; min-width: 0; }
.swc-cat-name { display: block; color: #fff; font-weight: 700; font-size: 13.5px; }
.swc-cat-desc { display: block; color: var(--swc-muted); font-size: 12.5px; }
.swc-toggle { position: relative; flex: 0 0 auto; margin-top: 2px; }
.swc-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swc-switch {
  display: block; width: 40px; height: 22px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.25); position: relative; cursor: pointer; transition: background-color 0.2s;
}
.swc-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.swc-toggle input:checked + .swc-switch { background: var(--swc-teal-dark); }
.swc-toggle input:checked + .swc-switch::after { transform: translateX(18px); }
.swc-toggle input:disabled + .swc-switch { opacity: 0.6; cursor: not-allowed; }
.swc-always { color: var(--swc-teal); font-size: 12px; font-weight: 700; white-space: nowrap; margin-top: 2px; }

/* Footer "Cookie settings" link and privacy-page button */
.swc-footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: inherit; }
.swc-footer-link:hover { color: #2FD3BF; }

/* Placeholder shown in place of a Google Maps embed until consent */
.swc-map-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 20px; text-align: center;
  background: #EEF4F8; border: 1px dashed #B9CCDC; border-radius: 10px;
  color: #0A2540; font-family: 'Open Sans', system-ui, sans-serif; font-size: 13.5px; line-height: 1.5;
}
.swc-map-ph .swc-map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.swc-map-ph button, .swc-map-ph a {
  font: 700 13px 'Raleway', system-ui, sans-serif; border-radius: 8px; padding: 9px 16px; cursor: pointer; text-decoration: none;
}
.swc-map-ph button { background: #0A2540; color: #fff; border: 2px solid #0A2540; }
.swc-map-ph a { background: transparent; color: #0A2540; border: 2px solid #0A2540; }
.swc-map-ph button:hover { background: #13A892; border-color: #13A892; }
.swc-map-ph a:hover { color: #13A892; border-color: #13A892; }

@media (max-width: 600px) {
  .swc-banner { left: 12px; right: 12px; width: auto; bottom: max(12px, env(safe-area-inset-bottom, 0px)); padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .swc-btn, .swc-switch, .swc-switch::after { transition: none; }
}
