/* =========================
   COOKIE CONSENT — PREMIUM
========================= */

.cookie-consent-banner[hidden],
.cookie-consent-modal[hidden],
.cookie-consent-backdrop[hidden],
.cookie-consent-manage[hidden]{
  display:none !important;
}

.cookie-consent-banner{
  position:fixed;
  left:20px;
  right:20px;
  bottom:20px;
  z-index:1400;
  display:flex;
  justify-content:center;
  pointer-events:none;
}

.cookie-consent-card{
  width:min(980px, 100%);
  background:rgba(15, 23, 42, .94);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  backdrop-filter:blur(16px);
  padding:22px 22px 18px;
  pointer-events:auto;
}

.cookie-consent-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.cookie-consent-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  font-size:.85rem;
  font-weight:800;
  margin-bottom:12px;
}

.cookie-consent-title{
  margin:0 0 8px;
  font-size:1.2rem;
  font-weight:800;
  line-height:1.2;
}

.cookie-consent-text{
  margin:0;
  color:rgba(255,255,255,.88);
  line-height:1.7;
  max-width:760px;
}

.cookie-consent-link{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
}

.cookie-consent-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.cookie-btn{
  appearance:none;
  border:none;
  border-radius:999px;
  font-weight:800;
  padding:.85rem 1.2rem;
  cursor:pointer;
  transition:all .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.cookie-btn:hover{
  transform:translateY(-1px);
}

.cookie-btn-primary{
  background:#fff;
  color:#0f172a;
}

.cookie-btn-primary:hover{
  background:#f8fafc;
}

.cookie-btn-outline{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
}

.cookie-btn-outline:hover{
  background:rgba(255,255,255,.14);
}

.cookie-btn-ghost{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
}

.cookie-consent-manage{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1390;
  border:none;
  border-radius:999px;
  padding:.82rem 1rem;
  font-weight:800;
  background:#ffffff;
  color:#0f172a;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  transition:all .2s ease;
}

.cookie-consent-manage:hover{
  transform:translateY(-2px);
}

.cookie-consent-backdrop{
  position:fixed;
  inset:0;
  z-index:1490;
  background:rgba(15, 23, 42, .52);
  backdrop-filter:blur(3px);
}

.cookie-consent-modal{
  position:fixed;
  inset:0;
  z-index:1500;
  display:grid;
  place-items:center;
  padding:24px;
}

.cookie-consent-panel{
  width:min(860px, 100%);
  max-height:min(88vh, 920px);
  overflow:auto;
  background:#fff;
  border-radius:28px;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 28px 70px rgba(15, 23, 42, .22);
}

.cookie-consent-panel-head{
  padding:24px 24px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.cookie-consent-panel-title{
  margin:0 0 8px;
  font-size:1.35rem;
  line-height:1.2;
  font-weight:900;
  color:#111827;
}

.cookie-consent-panel-text{
  margin:0;
  color:#6b7280;
  line-height:1.7;
}

.cookie-consent-close{
  border:none;
  background:#f8fafc;
  color:#111827;
  width:42px;
  height:42px;
  border-radius:12px;
  font-size:1.2rem;
  cursor:pointer;
  flex:0 0 auto;
}

.cookie-consent-section{
  padding:18px 24px;
  border-top:1px solid #e5e7eb;
}

.cookie-consent-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.cookie-consent-row h3{
  margin:0 0 6px;
  font-size:1rem;
  font-weight:800;
  color:#111827;
}

.cookie-consent-row p{
  margin:0;
  color:#6b7280;
  line-height:1.6;
}

.cookie-consent-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  background:#ecfdf3;
  color:#166534;
  border:1px solid #bbf7d0;
  font-size:.84rem;
  font-weight:800;
}

.cookie-switch{
  position:relative;
  width:62px;
  height:36px;
  flex:0 0 auto;
}

.cookie-switch input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.cookie-switch-track{
  position:absolute;
  inset:0;
  background:#d1d5db;
  border-radius:999px;
  transition:all .2s ease;
}

.cookie-switch-thumb{
  position:absolute;
  top:4px;
  left:4px;
  width:28px;
  height:28px;
  background:#fff;
  border-radius:50%;
  box-shadow:0 4px 12px rgba(0,0,0,.14);
  transition:all .2s ease;
}

.cookie-switch input:checked + .cookie-switch-track{
  background:#198754;
}

.cookie-switch input:checked + .cookie-switch-track + .cookie-switch-thumb{
  transform:translateX(26px);
}

.cookie-switch input:disabled{
  cursor:not-allowed;
}

.cookie-consent-panel-actions{
  padding:20px 24px 24px;
  border-top:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.cookie-btn-light{
  background:#f8fafc;
  color:#111827;
  border:1px solid #e5e7eb;
}

.cookie-btn-brand{
  background:#198754;
  color:#fff;
}

.cookie-btn-brand:hover{
  background:#157347;
}

@media (max-width: 768px){
  .cookie-consent-banner{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .cookie-consent-card{
    border-radius:20px;
    padding:18px 18px 16px;
  }

  .cookie-consent-top{
    gap:14px;
  }

  .cookie-consent-actions,
  .cookie-consent-panel-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .cookie-btn,
  .cookie-consent-manage{
    width:100%;
  }

  .cookie-consent-manage{
    left:12px;
    right:12px;
    bottom:12px;
    justify-content:center;
  }

  .cookie-consent-modal{
    padding:12px;
  }

  .cookie-consent-panel{
    border-radius:22px;
  }

  .cookie-consent-panel-head,
  .cookie-consent-section,
  .cookie-consent-panel-actions{
    padding-left:18px;
    padding-right:18px;
  }

  .cookie-consent-row{
    align-items:flex-start;
  }
}
