/* Cookie consent banner + preferences panel. Visual language matches the
   existing .lx-cta-bar (dark navy, blurred, gold hairline) and .lx-pop
   modal already on the site — no new colors/fonts introduced.

   Positioned at the TOP, just below the header, not the bottom. A bottom
   bar was tried first and measured (Playwright) to genuinely overlap the
   homepage hero's own CTA buttons and the hero event strip at common
   desktop viewport heights (~900px) — this hero is already tightly
   packed (see hero-events-strip.css's own notes on the same problem on
   mobile). Top placement structurally avoids that whole class of
   conflict: the only thing above the fold at top:0 is the header (height
   measured at runtime, not guessed) and the hero's decorative, non-
   interactive eyebrow line — never a button or a clickable card. */

.lx-consent-banner{
  position:fixed;
  left:12px;right:12px;
  top:calc(12px + var(--lx-header-h,0px) + env(safe-area-inset-top));
  z-index:9000;
  max-width:860px;
  margin:0 auto;
  background:rgba(6,21,37,.96);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(201,165,92,.32);
  border-radius:16px;
  box-shadow:0 10px 40px rgba(0,0,0,.4);
  padding:18px 20px;
  animation:lxConsentIn .35s ease;
}
@keyframes lxConsentIn{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}

.lx-consent-inner{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px}
.lx-consent-msg{flex:1 1 320px;min-width:0;margin:0;color:#D7DFE7;font-family:'Jost',sans-serif;font-size:.84rem;line-height:1.55}
.lx-consent-msg a{color:#D8BC7A;text-decoration:underline;text-underline-offset:3px}

.lx-consent-actions{display:flex;flex-wrap:wrap;gap:10px;flex:0 0 auto}
.lx-consent-btn{
  font-family:'Jost',sans-serif;
  font-weight:600;
  font-size:.74rem;
  letter-spacing:.03em;
  padding:11px 18px;
  border-radius:10px;
  border:1px solid rgba(201,165,92,.4);
  background:transparent;
  color:#fff;
  cursor:pointer;
  transition:background .25s ease,border-color .25s ease,transform .15s ease;
  min-height:42px;
}
.lx-consent-btn:hover{border-color:#D8BC7A}
.lx-consent-btn:active{transform:scale(.97)}
.lx-consent-btn:focus-visible{outline:2px solid #D8BC7A;outline-offset:2px}
.lx-consent-btn--accept{background:linear-gradient(135deg,#C9A55C,#D8BC7A);color:#061525;border-color:transparent}
.lx-consent-btn--accept:hover{filter:brightness(1.06)}
.lx-consent-btn--reject{background:rgba(255,255,255,.04)}
.lx-consent-btn--manage{background:rgba(255,255,255,.04)}

/* ---- preferences panel ---- */
.lx-consent-panel{position:fixed;inset:0;z-index:9100;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(6,21,37,.72);backdrop-filter:blur(5px)}
.lx-consent-panel-card{
  position:relative;
  width:100%;max-width:460px;
  background:linear-gradient(160deg,#0B2438,#061525);
  border:1px solid rgba(201,165,92,.35);
  border-radius:18px;
  padding:30px 26px 26px;
  box-shadow:0 40px 120px rgba(0,0,0,.6);
}
.lx-consent-panel-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(201,165,92,.3);background:rgba(0,0,0,.25);color:#D7DFE7;font-size:1.1rem;cursor:pointer;line-height:1}
.lx-consent-panel-close:hover{background:#D8BC7A;color:#061525;border-color:#D8BC7A}
.lx-consent-panel-card h3{font-family:'Cormorant Garamond',serif;color:#fff;font-size:1.5rem;font-weight:500;margin:0 0 10px}
.lx-consent-panel-intro{color:#9FAFBE;font-size:.82rem;line-height:1.6;margin:0 0 20px}

.lx-consent-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid rgba(201,165,92,.18)}
.lx-consent-row strong{display:block;color:#fff;font-family:'Jost',sans-serif;font-size:.86rem;font-weight:600;margin-bottom:4px}
.lx-consent-row p{margin:0;color:#9FAFBE;font-size:.76rem;line-height:1.5}

.lx-consent-toggle{position:relative;flex:0 0 auto;display:inline-block;width:42px;height:24px;margin-top:2px}
.lx-consent-toggle input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.lx-consent-toggle-track{position:absolute;inset:0;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(201,165,92,.3);transition:background .2s ease}
.lx-consent-toggle-track::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s ease}
.lx-consent-toggle input:checked + .lx-consent-toggle-track{background:#C9A55C;border-color:#C9A55C}
.lx-consent-toggle input:checked + .lx-consent-toggle-track::after{transform:translateX(18px)}
.lx-consent-toggle input:focus-visible + .lx-consent-toggle-track{outline:2px solid #D8BC7A;outline-offset:2px}
.lx-consent-toggle--locked{width:42px;height:24px;border-radius:999px;background:rgba(201,165,92,.22);border:1px solid rgba(201,165,92,.3)}
.lx-consent-toggle--locked::after{content:"";position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background:#D8BC7A}

.lx-consent-panel-actions{display:flex;gap:10px;margin-top:22px}
.lx-consent-panel-actions .lx-consent-btn{flex:1 1 0}

@media(max-width:560px){
  .lx-consent-banner{left:8px;right:8px;top:calc(8px + var(--lx-header-h,0px) + env(safe-area-inset-top));padding:16px}
  .lx-consent-inner{gap:12px}
  .lx-consent-actions{width:100%}
  .lx-consent-btn{flex:1 1 0;padding:11px 10px;font-size:.7rem}
}

@media(prefers-reduced-motion:reduce){
  .lx-consent-banner{animation:none}
}
