/* Cookie consent banner and preferences dialog (js/consent.js). Uses the site palette and fonts.
   Prefix ac- ("Artèria consent"): the Webflow CSS already uses cc- combo classes (.button.cc-banner, ...). */
.ac-root {
  --ac-red: #f02635;
  --ac-red-dark: #a50410;
  --ac-black: #101010;
  --ac-ink: #f4f1ee;
  --ac-muted: #b9b3ad;
  --ac-line: rgba(244, 241, 238, .16);
  font-family: Lato, sans-serif;
  color: var(--ac-ink);
}
.ac-root *, .ac-root *::before, .ac-root *::after { box-sizing: border-box; }
/* The Webflow stylesheet styles bare h2/h3/p/li: reset them inside the component. */
.ac-root h2, .ac-root h3, .ac-root p, .ac-root ul, .ac-root li, .ac-root span, .ac-root label, .ac-root button {
  font-family: Lato, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

/* Banner */
.ac-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  width: min(440px, calc(100vw - 32px));
  padding: 24px 24px 20px;
  background: var(--ac-black);
  border-top: 4px solid var(--ac-red);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
  animation: ac-in .35s cubic-bezier(.2, .7, .2, 1) both;
}
.ac-banner[hidden], .ac-dialog:not([open]) { display: none; }
@keyframes ac-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.ac-root .ac-title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ac-red);
}
.ac-lang { display: flex; gap: 4px; }
.ac-lang a {
  padding: 2px 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ac-muted);
  text-decoration: none;
  border-radius: 4px;
}
.ac-lang a[aria-current="true"] { color: var(--ac-red); }
/* Tap targets: invisible 44px hit area centred on the control, layout unchanged. */
.ac-lang a, .ac-link { position: relative; }
.ac-lang a::after, .ac-link::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
.ac-lang a:hover { color: var(--ac-ink); }

.ac-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ac-ink); }
.ac-text a, .ac-row-desc a { color: var(--ac-ink); text-decoration: underline; text-underline-offset: 2px; }
.ac-text a:hover, .ac-row-desc a:hover { color: var(--ac-red); }

/* Buttons: accept and reject share size, place and style (equal prominence). */
.ac-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ac-root .ac-btn {
  appearance: none;
  margin: 0;
  padding: 11px 16px;
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ac-red);
  background: transparent;
  border: 2px solid var(--ac-red);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.ac-root .ac-btn:hover { background: var(--ac-red); color: var(--ac-black); }
.ac-root .ac-btn-save { grid-column: 1 / -1; background: var(--ac-red); color: var(--ac-black); }
.ac-root .ac-btn-save:hover { background: var(--ac-ink); border-color: var(--ac-ink); }
.ac-link {
  appearance: none;
  display: block;
  margin: 14px auto 0;
  padding: 4px 6px;
  font: inherit;
  font-size: 14px;
  color: var(--ac-muted);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ac-link:hover { color: var(--ac-ink); }

.ac-root :focus-visible, .ac-open:focus-visible { outline: 2px solid var(--ac-ink); outline-offset: 2px; }

/* Preferences dialog */
.ac-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--ac-ink);
  background: var(--ac-black);
  border: 0;
  border-top: 4px solid var(--ac-red);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}
.ac-dialog::backdrop { background: rgba(16, 16, 16, .72); }
.ac-dialog-fallback { position: fixed; inset: 0; z-index: 2001; display: block; }
.ac-dialog-body { padding: 28px 28px 24px; }
.ac-dialog .ac-head { margin-bottom: 12px; }
.ac-close {
  appearance: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -6px -8px 0 0;
  padding: 0;
  color: var(--ac-ink);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.ac-close:hover { color: var(--ac-red); }
.ac-close svg { width: 18px; height: 18px; }

.ac-rows { margin: 18px 0 4px; padding: 0; list-style: none; border-top: 1px solid var(--ac-line); }
.ac-row { padding: 16px 0; border-bottom: 1px solid var(--ac-line); }
.ac-row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ac-row-name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ac-ink); cursor: default; }
label.ac-row-name { cursor: pointer; }
.ac-row-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ac-muted); }
.ac-root .ac-always { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ac-muted); white-space: nowrap; }

/* Switch */
.ac-switch { position: relative; display: inline-flex; flex: none; width: 48px; height: 28px; cursor: pointer; }
.ac-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ac-switch-track {
  position: absolute;
  inset: 0;
  background: #3a3a3a;
  border-radius: 999px;
  transition: background-color .2s;
  pointer-events: none;
}
.ac-switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: var(--ac-ink);
  border-radius: 50%;
  transition: transform .2s;
}
.ac-switch input:checked + .ac-switch-track { background: var(--ac-red); }
.ac-switch input:checked + .ac-switch-track::after { transform: translateX(20px); background: var(--ac-black); }
.ac-switch input:focus-visible + .ac-switch-track { outline: 2px solid var(--ac-ink); outline-offset: 2px; }

/* Footer trigger: a <button> that looks like the neighbouring legal links. Zero specificity (:where) so
   .footer-legal-link keeps its colour, size and margin. */
:where(.ac-open) {
  appearance: none; margin: 0; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit;
  text-align: inherit; text-decoration: underline;
}

@media (max-width: 479px) {
  .ac-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px 18px 16px; }
  .ac-root .ac-title { font-size: 22px; }
  .ac-text { font-size: 14px; }
  .ac-root .ac-btn { padding: 11px 10px; font-size: 14px; }
  .ac-dialog-body { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-banner { animation: none; }
  .ac-btn, .ac-switch-track, .ac-switch-track::after { transition: none; }
}
