/* ========== COOKIE CONSENT BANNER ========== */
#cp-consent{
  position:fixed;bottom:0;left:0;right:0;z-index:999;
  /* Isolate the banner from document layout so it never triggers page reflow.
     `contain:layout paint style` means the browser won't involve the banner
     when computing positions of surrounding elements, eliminating layout shift
     when the banner appears, expands (preferences panel), or is removed. */
  contain:layout paint style;
  /* Promote to its own compositor layer so resize/transform animations skip
     the layout and paint steps entirely. */
  will-change:transform;
  background:rgba(8,14,32,.96);
  border-top:1px solid #223D66;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 -8px 40px rgba(0,0,0,.45);
  font-family:'Instrument Sans',system-ui,sans-serif;
  font-size:14px;
  color:#DCE7F5;
  transition:opacity .3s ease,transform .3s ease;
}
#cp-consent.cp-hiding{opacity:0;transform:translateY(12px);pointer-events:none}

.cp-consent-inner{
  max-width:1120px;margin:0 auto;padding:16px 24px;
}

/* Main bar row */
.cp-consent-main{
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;
}
.cp-consent-text{flex:1;min-width:260px}
.cp-consent-text strong{
  font-family:'Archivo',sans-serif;font-weight:700;font-stretch:110%;
  font-size:14.5px;color:#DCE7F5;display:block;margin-bottom:3px;
}
.cp-consent-text p{
  color:#93A9CE;font-size:13px;line-height:1.5;margin:0;
}
.cp-consent-text a{color:#3E8EF7;text-decoration:none}
.cp-consent-text a:hover{text-decoration:underline}

.cp-consent-actions{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0;
}

/* Buttons */
.cp-btn{
  display:inline-flex;align-items:center;
  font-family:'Archivo',sans-serif;font-weight:600;font-size:13px;
  padding:8px 16px;border-radius:7px;border:1px solid transparent;
  cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s,border-color .15s;
  line-height:1;white-space:nowrap;
}
.cp-btn:focus-visible{outline:2px solid #3E8EF7;outline-offset:3px}
.cp-btn-primary{background:#3E8EF7;color:#041228;border-color:#3E8EF7}
.cp-btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(62,142,247,.35)}
.cp-btn-ghost{background:transparent;color:#DCE7F5;border-color:#223D66}
.cp-btn-ghost:hover{border-color:#3E8EF7;background:rgba(62,142,247,.1)}
.cp-btn-text{
  background:none;border-color:transparent;color:#93A9CE;
  padding:8px 10px;font-size:13px;
}
.cp-btn-text:hover{color:#DCE7F5}

/* Preferences panel */
.cp-prefs{
  border-top:1px solid rgba(34,61,102,.6);
  margin-top:14px;padding-top:14px;
}
.cp-prefs[hidden]{display:none}

.cp-prefs-row{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:10px 0;
  border-bottom:1px solid rgba(34,61,102,.45);
}
.cp-prefs-row:last-of-type{border-bottom:none}
.cp-prefs-info{flex:1}
.cp-prefs-info strong{
  display:block;font-family:'Archivo',sans-serif;font-weight:600;font-stretch:110%;
  font-size:13.5px;color:#DCE7F5;margin-bottom:2px;
}
.cp-prefs-info span{font-size:12.5px;color:#93A9CE}

/* Toggle switch */
.cp-toggle{flex-shrink:0;cursor:pointer;padding:4px 0}
.cp-toggle-disabled{cursor:default;opacity:.5}
.cp-toggle-track{
  width:40px;height:22px;border-radius:999px;
  background:#223D66;border:1px solid #2A4E86;
  position:relative;transition:background .2s,border-color .2s;
}
.cp-toggle-track.cp-toggle-on{background:#3E8EF7;border-color:#3E8EF7}
.cp-toggle-thumb{
  position:absolute;top:3px;left:3px;
  width:14px;height:14px;border-radius:50%;
  background:#fff;transition:transform .2s;
  box-shadow:0 1px 4px rgba(0,0,0,.3);
}
.cp-toggle-track.cp-toggle-on .cp-toggle-thumb{transform:translateX(18px)}

.cp-prefs-footer{
  padding-top:12px;display:flex;justify-content:flex-end;
}

/* Responsive */
@media (max-width:640px){
  .cp-consent-main{flex-direction:column;align-items:flex-start;gap:14px}
  .cp-consent-actions{width:100%;justify-content:flex-start}
}
