/* Cookie banner, in the site's own colours (see consent.js). */
.bm-consent {
  --bm-bg: #292929;
  --bm-text: #ffffff;
  --bm-muted: rgba(255, 255, 255, 0.72);
  --bm-line: rgba(255, 255, 255, 0.25);
  --bm-accent: #c5dac7;
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2147483000; /* above the Futy chat button */
  box-sizing: border-box;
  width: min(440px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  background: var(--bm-bg);
  color: var(--bm-text);
  border: 1px solid #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.2px;
}
.bm-consent *, .bm-consent *::before { box-sizing: border-box; }
.bm-consent__title { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.bm-consent__text { margin: 0 0 16px; color: var(--bm-muted); }
.bm-consent a { color: var(--bm-accent); text-decoration: underline; }
.bm-consent__prefs { margin: 0 0 16px; border-top: 1px solid var(--bm-line); }
.bm-consent__prefs[hidden] { display: none; }
.bm-consent__option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--bm-line);
  color: var(--bm-muted);
  cursor: pointer;
}
.bm-consent__option strong { color: var(--bm-text); font-weight: 600; }
.bm-consent__option input { position: absolute; opacity: 0; pointer-events: none; }
.bm-consent__switch {
  flex: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.2s;
}
.bm-consent__switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  transition: transform 0.2s;
}
.bm-consent__option input:checked + .bm-consent__switch { background: var(--bm-accent); }
.bm-consent__option input:checked + .bm-consent__switch::before { transform: translateX(16px); background: var(--bm-bg); }
.bm-consent__option input:disabled + .bm-consent__switch { opacity: 0.55; }
.bm-consent__option input:focus-visible + .bm-consent__switch { outline: 2px solid var(--bm-accent); outline-offset: 2px; }
.bm-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-consent__btn {
  flex: 1 1 auto;
  padding: 11px 16px;
  border: 1px solid #ffffff;
  background: transparent;
  color: var(--bm-text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.bm-consent__btn:hover { background: rgba(197, 218, 199, 0.12); }
.bm-consent__btn--primary { background: var(--bm-accent); border-color: var(--bm-accent); color: var(--bm-bg); }
.bm-consent .bm-consent__btn--primary:hover,
.bm-consent .bm-consent__btn--primary:focus { background: #d6e6d8; color: var(--bm-bg); }
.bm-consent__btn--link { flex: 0 0 100%; border: 0; padding: 6px; color: var(--bm-muted); text-decoration: underline; }
.bm-consent__btn--link:hover { background: none; color: var(--bm-text); }

@media (max-width: 767px) {
  .bm-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
}

/* Form feedback after a Netlify Forms submit (see main.js). */
.bm-form-message { margin: 12px 0 0; font-family: Montserrat, sans-serif; font-size: 14px; color: #c5dac7; }
.bm-form-message.is-error { color: #ff9b9b; }
