/* NEOSYM Cookie Consent v1.0.0
 * Brand: #B66113 (orange), #4E2F00 (brown), Calibri.
 * Button orange is darkened to #A2560F so white text meets WCAG AA (5.4:1).
 * All selectors are prefixed .nsc- and fully specified so the site's
 * global styles (*, p, h2, Bootstrap) don't leak in.
 */
:root {
  --nsc-brand: #A2560F;
  --nsc-brand-hover: #8A490C;
  --nsc-brand-light: #B66113;
  --nsc-dark: #4E2F00;
  --nsc-text: #333333;
  --nsc-muted: #5C5C5C;
  --nsc-bg: #FFFFFF;
  --nsc-surface: #F9F6F2;
  --nsc-border: #DDD3C7;
  --nsc-focus: #4E2F00;
  --nsc-font: Calibri, "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  --nsc-z: 2147483000;
}

.nsc-banner, .nsc-banner *,
.nsc-overlay, .nsc-overlay *,
.nsc-fab {
  box-sizing: border-box;
  font-family: var(--nsc-font);
}

/* ---------- Banner ---------- */
.nsc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--nsc-z);
  background: var(--nsc-bg);
  color: var(--nsc-text);
  border-top: 4px solid var(--nsc-brand-light);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
  animation: nsc-up .25s ease-out;
}
.nsc-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nsc-banner__text { flex: 1 1 auto; min-width: 0; }

.nsc-banner .nsc-title,
.nsc-overlay .nsc-title {
  margin: 0 0 6px;
  padding: 0;
  width: auto;
  background: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nsc-dark);
  text-transform: none;
}
.nsc-banner .nsc-body,
.nsc-overlay .nsc-body {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  color: var(--nsc-text);
}
.nsc-banner .nsc-links,
.nsc-overlay .nsc-links {
  margin: 0;
  font-size: 14px;
  text-align: left;
  color: var(--nsc-muted);
}
.nsc-banner a,
.nsc-overlay a {
  color: var(--nsc-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nsc-banner a:hover,
.nsc-overlay a:hover { color: var(--nsc-dark); }
.nsc-links a + a { margin-left: 18px; }

/* ---------- Buttons ---------- */
.nsc-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
.nsc-banner .nsc-actions { flex-direction: column; width: 220px; }

.nsc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;           /* touch target */
  padding: 10px 20px;
  margin: 0;
  border: 2px solid var(--nsc-brand);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
/* Accept and Reject are deliberately given equal weight. */
.nsc-btn--primary { background: var(--nsc-brand); color: #FFFFFF; }
.nsc-btn--primary:hover { background: var(--nsc-brand-hover); border-color: var(--nsc-brand-hover); }
.nsc-btn--outline { background: #FFFFFF; color: var(--nsc-brand); }
.nsc-btn--outline:hover { background: var(--nsc-surface); color: var(--nsc-dark); border-color: var(--nsc-dark); }

.nsc-btn:focus-visible,
.nsc-close:focus-visible,
.nsc-fab:focus-visible,
.nsc-switch:focus-visible,
.nsc-details summary:focus-visible,
.nsc-banner a:focus-visible,
.nsc-overlay a:focus-visible,
.nsc-dialog:focus-visible {
  outline: 3px solid var(--nsc-focus);
  outline-offset: 2px;
}

/* ---------- Preference centre ---------- */
html.nsc-lock, html.nsc-lock body { overflow: hidden; }

.nsc-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--nsc-z) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 18, 0, .55);
}
.nsc-overlay[hidden] { display: none; }

.nsc-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 32px);
  background: var(--nsc-bg);
  color: var(--nsc-text);
  border-top: 4px solid var(--nsc-brand-light);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  animation: nsc-fade .2s ease-out;
}
.nsc-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 12px;
  border-bottom: 1px solid var(--nsc-border);
}
.nsc-dialog__head .nsc-title { margin: 0; }
.nsc-dialog__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.nsc-dialog__foot {
  justify-content: flex-end;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--nsc-border);
}

.nsc-close {
  width: 44px; height: 44px;
  margin: 0 -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--nsc-dark);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.nsc-close:hover { background: var(--nsc-surface); }

.nsc-cat {
  padding: 14px 16px;
  margin: 0 0 12px;
  background: var(--nsc-surface);
  border: 1px solid var(--nsc-border);
  border-radius: 4px;
}
.nsc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.nsc-overlay .nsc-cat__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--nsc-dark);
}
.nsc-cat__title label { margin: 0; cursor: pointer; font-weight: 700; }
.nsc-always {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--nsc-brand);
}

/* Toggle switch built on a native checkbox (role="switch") */
.nsc-switch {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 50px; height: 28px;
  margin: 0;
  border-radius: 14px;
  background: #8C8C8C;
  cursor: pointer;
  transition: background-color .15s;
}
.nsc-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .15s;
}
.nsc-switch:checked { background: var(--nsc-brand); }
.nsc-switch:checked::after { transform: translateX(22px); }

.nsc-details { margin-top: 6px; font-size: 14px; }
.nsc-details summary {
  display: list-item;
  cursor: pointer;
  color: var(--nsc-brand);
  font-weight: 700;
  padding: 4px 0;
}
.nsc-tablewrap { overflow-x: auto; margin-top: 8px; }
.nsc-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  font-size: 13px;
}
.nsc-table th,
.nsc-table td {
  padding: 6px 8px;
  border: 1px solid var(--nsc-border);
  text-align: left;
  vertical-align: top;
}
.nsc-table th { background: #F1E9DF; color: var(--nsc-dark); }

/* ---------- Fallback floating settings button ---------- */
.nsc-fab {
  position: fixed;
  left: 12px; bottom: 12px;
  z-index: calc(var(--nsc-z) - 1);
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--nsc-brand);
  border-radius: 18px;
  background: #FFFFFF;
  color: var(--nsc-brand);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ---------- Footer link + map placeholder (site integration) ---------- */
.botmenu ul li a.cookie-settings-link { cursor: pointer; }

.nsc-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  height: 100%;
  font-family: var(--nsc-font);
  font-size: 15px;
  color: var(--nsc-text);
}
.nsc-map-placeholder p { margin: 0; text-align: left; font-size: 15px; }

/* ---------- Screen-reader only ---------- */
.nsc-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ----------
 * The site has no viewport meta tag, so phones render it zoomed out.
 * cookie-consent.js sets --nsc-zoom to restore a legible size and toggles
 * .nsc-w-md / .nsc-w-sm on <html> from the *effective* width (instead of
 * media queries, which would see the ~1000px zoomed-out layout width).
 */
.nsc-banner, .nsc-overlay, .nsc-fab { zoom: var(--nsc-zoom, 1); }

.nsc-w-md .nsc-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
.nsc-w-md .nsc-banner .nsc-actions { flex-direction: row; width: auto; }
.nsc-w-md .nsc-banner .nsc-btn { flex: 1 1 180px; }

.nsc-w-sm .nsc-banner .nsc-title, .nsc-w-sm .nsc-overlay .nsc-title { font-size: 18px; }
.nsc-w-sm .nsc-banner .nsc-body { font-size: 14px; max-height: 30vh; overflow-y: auto; }
.nsc-w-sm .nsc-actions,
.nsc-w-sm .nsc-banner .nsc-actions { flex-direction: column; }
.nsc-w-sm .nsc-btn,
.nsc-w-sm .nsc-banner .nsc-btn { width: 100%; flex: 0 0 auto; }
.nsc-w-sm .nsc-overlay { padding: 0; align-items: stretch; }
.nsc-w-sm .nsc-dialog { max-width: none; max-height: none; height: 100%; border-radius: 0; }
.nsc-w-sm .nsc-dialog__head, .nsc-w-sm .nsc-dialog__body, .nsc-w-sm .nsc-dialog__foot { padding-left: 16px; padding-right: 16px; }

@media (prefers-reduced-motion: reduce) {
  .nsc-banner, .nsc-dialog { animation: none; }
  .nsc-switch, .nsc-switch::after, .nsc-btn { transition: none; }
}
@media (forced-colors: active) {
  .nsc-switch { border: 2px solid ButtonText; }
  .nsc-switch:checked::after { background: Highlight; }
}

@keyframes nsc-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes nsc-fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
