/* ----------------------------
   Base banner
---------------------------- */
.gcc-banner{
  position:fixed;
  left:16px;
  bottom:16px;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  z-index:999999;
  background:#1e1e1e;
  color:#fff;
  padding:16px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  font-family:inherit;
  overflow:hidden;
}

/* Wider when preferences are open (JS adds .gcc-wide) */
.gcc-banner.gcc-wide{
  width: min(860px, calc(100vw - 32px));
}

/* This class hides the initial banner (top row) when preferences are open */
.gcc-banner.gcc-hide-initial .gcc-row{
  display:none !important;
}

.gcc-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between
}

.gcc-copy{max-width:820px}
.gcc-title{font-weight:700;margin-bottom:6px;font-size:1.2rem;}
.gcc-text{opacity:.9;margin-bottom:8px;line-height:1.45}
.gcc-link{color:#fff;text-decoration:underline}
.gcc-link:hover{color:#E9590C;}

.gcc-actions{display:flex;gap:10px;flex-wrap:wrap}
.gcc-actions-bottom{margin-top:10px}

.gcc-btn{
  appearance:none;
  border-radius:10px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:600;
  line-height:1;
}
.gcc-btn.primary{background:#fff;color:#111; border:none;}
.gcc-btn.primary:hover{background:rgba(255,255,255,0.8);color:#111;}
.gcc-btn.secondary{background:rgba(255,255,255,0.15);color:#fff; border:none;}
.gcc-btn.secondary:hover{background:rgba(255,255,255,0.2); color:#fff}

/* ----------------------------
   Preferences panel
---------------------------- */
.gcc-panel{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.2);
  display:none;
}

.gcc-panel.open::-webkit-scrollbar{
  width: 10px;
}

.gcc-panel.open::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}

.gcc-panel.open::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.28);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.06);
}

.gcc-panel.open::-webkit-scrollbar-thumb:hover{
  background: rgba(0,245,255,0.55); /* matches your accent hover color */
}

.gcc-panel.open::-webkit-scrollbar-corner{
  background: transparent;
}

/* Panel visible + internally scrollable so it doesn't go off-screen */
.gcc-panel.open{
  display:block;
  max-height: calc(100vh - 160px);
  overflow:auto;
  padding-right:6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) rgba(255,255,255,0.06);
  scrollbar-gutter: stable;
}

/* Preferences intro */
.gcc-pref-title{
  font-weight:800;
  font-size:16px;
  margin:2px 0 10px;
}

/* Collapsible intro text */
.gcc-pref-text{
  position:relative;
}

/* Collapsed state (JS toggles .is-collapsed / .is-expanded) */
.gcc-pref-text.is-collapsed{
  max-height:120px;
  overflow:hidden;
}

/* Optional fade at bottom when collapsed */
.gcc-pref-text.is-collapsed:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:48px;
  background:linear-gradient(to bottom, rgba(30,30,30,0), rgba(30,30,30,1));
  pointer-events:none;
}

.gcc-pref-text p{
  margin:0 0 10px;
  opacity:.9;
  line-height:1.5;
}
.gcc-pref-text p:last-child{margin-bottom:10px}

/* Show more/less button */
.gcc-more-wrap{
  margin:6px 0 14px;
  display:flex;
  justify-content:flex-start;
}
.gcc-more-btn{
  appearance:none;
  border:none !important;
  background:transparent;
  color:#fff !important;
  text-decoration:underline;
  cursor:pointer;
  padding:0;
  font-size:14px;
  opacity:.8;
}
.gcc-more-btn:hover{opacity:1; background:transparent !important;}
.gcc-more-btn:focus{background:transparent !important;}

/* ----------------------------
   Accordion categories
---------------------------- */
.gcc-categories{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

.gcc-cat{
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
}

.gcc-cat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px;
  cursor:pointer;
}

.gcc-cat-left{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.gcc-cat-title{font-weight:750}
.gcc-cat-subtitle{font-size:12px;opacity:.85}

/* Chevron */
.gcc-cat-chevron{
  width:18px;
  height:18px;
  flex:0 0 auto;
  opacity:.8;
  transition:transform .18s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gcc-cat.open .gcc-cat-chevron{transform:rotate(180deg)}

/* Collapsible body */
.gcc-cat-body{
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.2);

  /* smoother feel */
  opacity: 0;
  transition: max-height .32s ease, opacity .20s ease;
  will-change: max-height;
}

.gcc-cat.open .gcc-cat-body{
  opacity: 1;
  /* max-height will be set inline by JS to the exact height */
}

.gcc-cat-body-inner{padding:12px 12px}
.gcc-cat-desc{
  font-size:13px;
  opacity:.9;
  line-height:1.5;
  margin:0 0 10px;
}

/* ----------------------------
   Cookie list table
---------------------------- */
.gcc-cookie-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  opacity:.95;
  border: none;
}
.gcc-cookie-table th,
.gcc-cookie-table td{
  padding:8px 6px;
  border: none;
  vertical-align:top;
}
.gcc-cookie-table th{
  font-weight:700;
  opacity:.9;
  text-align:left;
}

/* Small pill for cookie name */
.gcc-cookie-pill{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:11px;
  white-space:nowrap;
}

/* Script/source list (fallback when cookies list is empty) */
.gcc-src-list{
  margin:8px 0 0;
  padding:0;
  list-style:none;
  font-size:12px;
  opacity:.95;
}
.gcc-src-list li{
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,.12);
  word-break:break-all;
}
.gcc-src-label{
  display:inline-block;
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
  opacity:.9;
}

/* ----------------------------
   Sliding pill switch
---------------------------- */
.gcc-switch{
  position:relative;
  width:46px;
  height:26px;
  flex:0 0 auto;
}
.gcc-switch input{
  opacity:0;
  width:0;
  height:0;
}
.gcc-slider{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.18);
  border-radius:999px;
  transition:background .15s ease;
}
.gcc-slider:before{
  content:"";
  position:absolute;
  height:20px;
  width:20px;
  left:3px;
  top:3px;
  background:#fff;
  border-radius:50%;
  transition:transform .15s ease;
}
.gcc-switch input:checked + .gcc-slider{
  background:#E9590C;
}
.gcc-switch input:checked + .gcc-slider:before{
  transform:translateX(20px);
}
.gcc-switch input:disabled + .gcc-slider{
  opacity:.55;
  cursor:not-allowed;
}

/* ----------------------------
   Mobile
---------------------------- */
@media (max-width: 560px){
  .gcc-banner{
    left:12px;
    bottom:12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
  .gcc-banner.gcc-wide{
    width: calc(100vw - 24px);
  }
  .gcc-panel.open{
    max-height: calc(100vh - 200px);
  }
    .gcc-actions{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }
  .gcc-actions .gcc-btn{
    width:100%;
    display:block;
  }
  #gccReject,
  #gccCustomize{
    width: calc(50% - 5px);
  }
  #gccAccept{
    width:100%;
  }
  .gcc-btn{padding:14px}
}
