:root{
  --hb-cookie-bg:#101d2c;
  --hb-cookie-panel:#ffffff;
  --hb-cookie-text:#eef4fb;
  --hb-cookie-muted:#aebdcd;
  --hb-cookie-line:rgba(255,255,255,.15);
  --hb-cookie-accent:#0b63ce;
  --hb-cookie-accent-hover:#0956b4;
}
.hb-cookie-banner[hidden],.hb-cookie-overlay[hidden],.hb-cookie-modal[hidden]{display:none!important}
.hb-cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:99990;
  background:var(--hb-cookie-bg);color:var(--hb-cookie-text);
  box-shadow:0 -12px 35px rgba(0,0,0,.20);
}
.hb-cookie-banner__inner{
  max-width:1500px;margin:auto;padding:18px 24px;
  display:flex;align-items:center;gap:28px;justify-content:space-between
}
.hb-cookie-copy{max-width:900px}
.hb-cookie-title{font-weight:900;font-size:17px;margin-bottom:5px}
.hb-cookie-icon{margin-right:6px}
.hb-cookie-copy p{margin:0;color:#e5edf6;font-size:14px;line-height:1.55}
.hb-cookie-copy a{color:#7fc1ff;text-decoration:underline}
.hb-cookie-actions{display:flex;gap:10px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.hb-cookie-btn{
  appearance:none;border:1px solid transparent;border-radius:11px;padding:12px 17px;
  font:inherit;font-size:14px;font-weight:800;cursor:pointer;transition:.18s ease;
}
.hb-cookie-btn--ghost{background:transparent;border-color:#50647a;color:#fff}
.hb-cookie-btn--ghost:hover{background:rgba(255,255,255,.08)}
.hb-cookie-btn--primary{background:var(--brand-primary,#0b63ce);color:#fff}
.hb-cookie-btn--primary:hover{filter:brightness(.92)}
.hb-cookie-btn--save{background:#eef5ff;color:#0b4f9d;border-color:#d9e9ff}
.hb-cookie-footer-link{
  display:block;background:none;border:0;padding:0;margin-top:7px;color:inherit;
  font:inherit;text-align:left;cursor:pointer;opacity:.9
}
.hb-cookie-footer-link:hover{text-decoration:underline;opacity:1}

.hb-cookie-overlay{
  position:fixed;inset:0;background:rgba(5,15,28,.58);backdrop-filter:blur(4px);z-index:99991
}
.hb-cookie-modal{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);
  z-index:99992;width:min(720px,calc(100% - 30px));max-height:calc(100vh - 30px);
  overflow:auto;background:#fff;color:#172437;border-radius:22px;
  box-shadow:0 30px 90px rgba(0,0,0,.32)
}
.hb-cookie-modal__head{padding:25px 26px 18px;display:flex;gap:18px;justify-content:space-between;border-bottom:1px solid #e7edf4}
.hb-cookie-kicker{display:block;color:var(--brand-primary,#0b63ce);font-size:11px;font-weight:900;letter-spacing:.12em;margin-bottom:7px}
.hb-cookie-modal h2{margin:0 0 8px;font-size:25px;line-height:1.2;color:#0f1f34}
.hb-cookie-modal__head p{margin:0;color:#68788b;font-size:14px}
.hb-cookie-close{border:0;background:#eef3f8;width:38px;height:38px;border-radius:50%;font-size:25px;cursor:pointer;line-height:1}
.hb-cookie-list{padding:8px 26px}
.hb-cookie-item{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0;border-bottom:1px solid #edf1f5}
.hb-cookie-item:last-child{border-bottom:0}
.hb-cookie-item strong{display:block;font-size:15px;margin-bottom:5px}
.hb-cookie-item p{margin:0;color:#6b7888;font-size:13px;line-height:1.45}
.hb-cookie-always{flex-shrink:0;font-size:12px;font-weight:900;color:#087443;background:#e9f9f0;padding:7px 10px;border-radius:999px}
.hb-cookie-switch{position:relative;width:48px;height:27px;flex:0 0 48px}
.hb-cookie-switch input{position:absolute;opacity:0;pointer-events:none}
.hb-cookie-switch span{position:absolute;inset:0;border-radius:999px;background:#cbd5e1;transition:.2s;cursor:pointer}
.hb-cookie-switch span:after{content:"";position:absolute;width:21px;height:21px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.2);transition:.2s}
.hb-cookie-switch input:checked + span{background:var(--brand-primary,#0b63ce)}
.hb-cookie-switch input:checked + span:after{transform:translateX(21px)}
.hb-cookie-modal__actions{padding:18px 26px 24px;display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid #e7edf4}

@media(max-width:900px){
  .hb-cookie-banner__inner{align-items:flex-start;flex-direction:column;gap:14px}
  .hb-cookie-actions{width:100%;justify-content:stretch}
  .hb-cookie-actions .hb-cookie-btn{flex:1}
}
@media(max-width:600px){
  .hb-cookie-banner__inner{padding:15px}
  .hb-cookie-copy p{font-size:13px}
  .hb-cookie-actions{display:grid;grid-template-columns:1fr 1fr}
  .hb-cookie-actions .hb-cookie-btn--primary{grid-column:1/-1}
  .hb-cookie-modal{width:calc(100% - 18px);border-radius:17px}
  .hb-cookie-modal__head,.hb-cookie-list,.hb-cookie-modal__actions{padding-left:16px;padding-right:16px}
  .hb-cookie-modal h2{font-size:21px}
  .hb-cookie-item{gap:12px}
  .hb-cookie-modal__actions{display:grid;grid-template-columns:1fr 1fr}
  .hb-cookie-modal__actions .hb-cookie-btn--primary{grid-column:1/-1}
}
