/* Reusable GDPR cookie-consent banner — drop-in for any site.
   Namespaced with "cc-" prefixed classes to avoid collisions.
   Uses var(--token, fallback) so it looks right even without the host site's design tokens. */

.cc-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9999;
  background:var(--white,#fff);
  border-top:1px solid #e2e7f0;
  box-shadow:0 -8px 30px rgba(15,30,60,.12);
  font-family:'Inter',sans-serif;
  transform:translateY(0);
  opacity:1;
  transition:transform .35s ease, opacity .35s ease;
}
.cc-banner.cc-hide{
  transform:translateY(20px);
  opacity:0;
  pointer-events:none;
}
.cc-banner-inner{
  max-width:1180px;
  margin:0 auto;
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.cc-text strong{
  display:block;
  font-family:'Poppins',sans-serif;
  font-size:15.5px;
  font-weight:700;
  color:var(--heading-dark,#1e293b);
  margin-bottom:4px;
}
.cc-text p{
  font-size:13.5px;
  line-height:1.6;
  color:var(--text-gray,#334155);
  max-width:640px;
}
.cc-text a{
  color:var(--blue-500,#2C92FC);
  text-decoration:underline;
}
.cc-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  flex-shrink:0;
}
.cc-btn{
  font-family:'Poppins',sans-serif;
  font-size:13.5px;
  font-weight:600;
  border-radius:8px;
  padding:11px 18px;
  border:1.5px solid transparent;
  cursor:pointer;
  white-space:nowrap;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.cc-btn-primary{
  background:var(--coral-500,#F94A4A);
  color:#fff;
}
.cc-btn-primary:hover{background:var(--blue-500,#2C92FC);}
.cc-btn-outline{
  background:transparent;
  border-color:#d7deea;
  color:var(--heading-dark,#1e293b);
}
.cc-btn-outline:hover{border-color:var(--blue-500,#2C92FC);color:var(--blue-500,#2C92FC);}
.cc-btn-ghost{
  background:transparent;
  color:var(--text-gray,#334155);
  text-decoration:underline;
  padding:11px 6px;
}

.cc-panel{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px 22px;
  border-top:1px solid #eef1f6;
}
.cc-panel[hidden]{display:none;}
.cc-panel-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:16px 0;
  border-bottom:1px solid #f1f4f9;
}
.cc-panel-row:last-of-type{border-bottom:none;}
.cc-panel-info strong{
  display:block;
  font-family:'Poppins',sans-serif;
  font-size:14px;
  font-weight:600;
  color:var(--heading-dark,#1e293b);
  margin-bottom:3px;
}
.cc-panel-info p{
  font-size:13px;
  line-height:1.55;
  color:var(--text-gray,#334155);
  max-width:560px;
}
.cc-panel-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:16px;
}

.cc-switch{
  position:relative;
  display:inline-block;
  width:42px;
  height:24px;
  flex-shrink:0;
}
.cc-switch input{opacity:0;width:0;height:0;}
.cc-slider{
  position:absolute;
  inset:0;
  background:#d7deea;
  border-radius:999px;
  cursor:pointer;
  transition:background .18s ease;
}
.cc-slider::before{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  left:3px;
  top:3px;
  background:#fff;
  border-radius:50%;
  transition:transform .18s ease;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.cc-switch input:checked + .cc-slider{background:var(--blue-500,#2C92FC);}
.cc-switch input:checked + .cc-slider::before{transform:translateX(18px);}
.cc-switch-disabled .cc-slider{cursor:not-allowed;opacity:.6;}

@media (max-width:767.98px){
  .cc-banner-inner{padding:16px 18px;}
  .cc-actions{width:100%;flex-direction:column;align-items:stretch;}
  .cc-btn{width:100%;text-align:center;}
  .cc-panel{padding:0 18px 18px;}
}
