/* Cookie consent banner + preferences dialog. Tokens only — no floating hex. */

.ls24-consent[hidden]{ display:none; }

/* Shared button variant used by the consent UI. */
.btn-outline{ padding:12px 24px; border:1px solid var(--line-4); background:transparent; color:var(--text); }
.btn-outline:hover{ background:var(--fill-2); border-color:var(--brand-link); color:var(--text); }

/* ---- Bottom banner ---- */
.ls24-consent__banner{
  position:fixed; left:0; right:0; bottom:0; z-index:80;
  padding:16px var(--pad-x) calc(16px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97); backdrop-filter:blur(16px);
  border-top:1px solid var(--line-3); box-shadow:var(--shadow-float);
}
.ls24-consent__banner[hidden]{ display:none; }
.ls24-consent__banner-inner{
  max-width:var(--maxw); margin:0 auto;
  display:flex; align-items:center; gap:20px 28px; flex-wrap:wrap; justify-content:space-between;
}
.ls24-consent__text{ flex:1 1 380px; min-width:0; }
.ls24-consent__text strong{ display:block; font-family:var(--font-head); font-weight:600; font-size:16px; margin-bottom:4px; color:var(--text); }
.ls24-consent__text p{ margin:0; font-size:13.5px; line-height:1.55; color:var(--muted-2); }
.ls24-consent__text a{ color:var(--brand-link); text-decoration:underline; text-underline-offset:2px; }
.ls24-consent__actions{ display:flex; align-items:center; gap:8px; flex:none; flex-wrap:wrap; }

/* ---- Preferences dialog ---- */
.ls24-consent__overlay{
  position:fixed; inset:0; z-index:90;
  display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(0,0,0,.62); backdrop-filter:blur(4px);
}
.ls24-consent__overlay[hidden]{ display:none; }
.ls24-consent__dialog{
  width:100%; max-width:540px; max-height:calc(100dvh - 40px); overflow-y:auto;
  background:var(--surface-2); border:1px solid var(--line-3); border-radius:var(--r-card);
  box-shadow:var(--shadow-card); padding:26px clamp(20px,4vw,30px);
}
.ls24-consent__dialog-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:6px; }
.ls24-consent__dialog-head h2{ font-family:var(--font-head); font-weight:700; font-size:22px; margin:0; color:var(--text); }
.ls24-consent__close{
  flex:none; display:grid; place-items:center; width:38px; height:38px;
  border:1px solid var(--line-3); border-radius:10px; background:var(--fill-2); color:var(--text-2); cursor:pointer;
}
.ls24-consent__close:hover{ background:var(--fill-3); color:var(--text); }
.ls24-consent__intro{ font-size:14px; line-height:1.6; color:var(--muted-2); margin:0 0 20px; }

.ls24-consent__cats{ display:flex; flex-direction:column; gap:14px; margin-bottom:24px; }
.ls24-consent__cat{ padding:16px; border:1px solid var(--line-2); border-radius:var(--r-input); background:var(--fill-1); }
.ls24-consent__cat-desc{ margin:8px 0 0; font-size:13px; line-height:1.55; color:var(--muted-3); }
.ls24-consent__always{ font-style:normal; font-size:11.5px; font-weight:600; letter-spacing:.4px; color:var(--success); margin-left:8px; }

.ls24-consent__dialog-foot{ display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }

/* ---- Toggle switch ---- */
.ls24-switch{ display:flex; align-items:center; gap:12px; cursor:pointer; }
.ls24-switch input{ position:absolute; opacity:0; width:0; height:0; }
.ls24-switch__track{
  flex:none; position:relative; width:44px; height:26px; border-radius:var(--r-pill);
  background:var(--fill-3); border:1px solid var(--line-3); transition:.18s;
}
.ls24-switch__thumb{
  position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%;
  background:var(--text-2); transition:.18s;
}
.ls24-switch input:checked + .ls24-switch__track{ background:var(--brand-grad); border-color:transparent; }
.ls24-switch input:checked + .ls24-switch__track .ls24-switch__thumb{ transform:translateX(18px); background:#fff; }
.ls24-switch input:disabled + .ls24-switch__track{ opacity:.6; cursor:not-allowed; }
.ls24-switch input:focus-visible + .ls24-switch__track{ outline:2px solid var(--brand-link); outline-offset:2px; }
.ls24-switch__label{ font-family:var(--font-head); font-weight:600; font-size:15px; color:var(--text); }

/* ---- Footer "Cookie settings" opener ---- */
.ls24-cookie-prefs-open{
  background:none; border:none; padding:0; cursor:pointer;
  color:var(--muted-2); font:inherit; font-size:inherit;
}
.ls24-cookie-prefs-open:hover{ color:var(--brand-link); }

@media (max-width:600px){
  .ls24-consent__actions{ width:100%; }
  .ls24-consent__actions .btn{ flex:1 1 auto; }
  .ls24-consent__dialog-foot .btn{ flex:1 1 auto; }
}
