/* Cookie consent manager */
.cookie-consent{
  position:fixed;
  z-index:9999;
  left:20px;
  right:20px;
  bottom:20px;
  display:none;
  pointer-events:none;
}
.cookie-consent.show{
  display:block;
}
.cookie-consent-panel{
  width:min(100%,980px);
  margin-left:auto;
  margin-right:auto;
  pointer-events:auto;
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:center;
  padding:22px;
  border-radius:28px;
  background:rgba(255,255,255,.96);
  border:1px solid #dfe8f7;
  box-shadow:0 28px 90px rgba(15,35,70,.22);
  backdrop-filter:blur(18px);
}
.cookie-consent h2{
  font-size:22px;
  letter-spacing:-.035em;
  margin:0 0 8px;
}
.cookie-consent p{
  color:#536173;
  line-height:1.65;
  margin:0;
  font-size:14px;
}
.cookie-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.cookie-btn{
  border:1px solid #dce7f7;
  background:#fff;
  color:#0b172a;
  min-height:44px;
  padding:11px 16px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}
.cookie-btn:hover{
  transform:translateY(-1px);
  border-color:#a9c7ff;
}
.cookie-btn.primary{
  color:#fff;
  border-color:#1268ff;
  background:linear-gradient(135deg,#1268ff,#074ed4);
  box-shadow:0 14px 30px rgba(18,104,255,.26);
}
.cookie-btn.link{
  border-color:transparent;
  background:transparent;
  color:#0d55d6;
}
.cookie-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(6,16,33,.52);
  backdrop-filter:blur(8px);
}
.cookie-modal.show{
  display:flex;
}
.cookie-modal-card{
  width:min(100%,680px);
  max-height:min(90vh,760px);
  overflow:auto;
  padding:26px;
  border-radius:30px;
  background:#fff;
  border:1px solid #e4ebf7;
  box-shadow:0 34px 90px rgba(0,0,0,.24);
}
.cookie-modal-card h2{
  font-size:32px;
  margin:0 0 10px;
}
.cookie-modal-card > p{
  color:#536173;
  line-height:1.65;
  margin-bottom:20px;
}
.cookie-option{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
  padding:16px;
  border:1px solid #e4ebf7;
  border-radius:20px;
  margin-bottom:12px;
  background:#f8fbff;
}
.cookie-option strong{
  display:block;
  margin-bottom:4px;
  color:#0b172a;
}
.cookie-option span{
  color:#667085;
  line-height:1.5;
  font-size:14px;
}
.cookie-toggle{
  position:relative;
  width:56px;
  height:32px;
}
.cookie-toggle input{
  opacity:0;
  width:0;
  height:0;
}
.cookie-slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  border-radius:999px;
  background:#cbd5e1;
  transition:.2s ease;
}
.cookie-slider:before{
  content:"";
  position:absolute;
  height:24px;
  width:24px;
  left:4px;
  top:4px;
  border-radius:50%;
  background:#fff;
  transition:.2s ease;
  box-shadow:0 3px 10px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + .cookie-slider{
  background:#1268ff;
}
.cookie-toggle input:checked + .cookie-slider:before{
  transform:translateX(24px);
}
.cookie-toggle input:disabled + .cookie-slider{
  background:#13b981;
  cursor:not-allowed;
}
.cookie-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
  flex-wrap:wrap;
}
@media(max-width:760px){
  .cookie-consent{
    left:12px;
    right:12px;
    bottom:12px;
  }
  .cookie-consent-panel{
    grid-template-columns:1fr;
    padding:18px;
    border-radius:22px;
  }
  .cookie-actions{
    justify-content:stretch;
  }
  .cookie-actions .cookie-btn{
    flex:1 1 auto;
  }
  .cookie-modal{
    padding:12px;
  }
  .cookie-modal-card{
    padding:20px;
    border-radius:22px;
  }
  .cookie-option{
    grid-template-columns:1fr;
  }
}
