/* Minimal, framework-agnostic styles for cookie banner + modal */
:root{
  --tp-bg:#0b0b0c;
  --tp-fg:#ffffff;
  --tp-muted:#c8c8cc;
  --tp-border:rgba(255,255,255,.18);
  --tp-shadow:0 8px 40px rgba(0,0,0,.35);
  --tp-radius:14px;
  --tp-gap:12px;
  --tp-max:1040px;
  --tp-focus:2px solid rgba(255,255,255,.85);
}

.tp-cookie-banner{
  position:fixed; left:0; right:0; bottom:0;
  z-index:9999;
  background:var(--tp-bg);
  color:var(--tp-fg);
  border-top:1px solid var(--tp-border);
  box-shadow:var(--tp-shadow);
  padding:16px;
}
.tp-cookie-banner__inner{
  max-width:var(--tp-max);
  margin:0 auto;
  display:flex;
  gap:16px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.tp-cookie-banner__title{ margin:0 0 8px 0; font-size:18px; }
.tp-cookie-banner__desc{ margin:0 0 8px 0; color:var(--tp-muted); line-height:1.4; max-width:70ch; }
.tp-cookie-banner__links{ margin:0; }
.tp-cookie-banner__link{ color:var(--tp-fg); text-decoration:underline; }
.tp-cookie-banner__actions{ display:flex; gap:var(--tp-gap); flex-wrap:wrap; }

.tp-btn{
  appearance:none;
  border-radius:999px;
  border:1px solid var(--tp-border);
  background:transparent;
  color:var(--tp-fg);
  padding:10px 14px;
  font-weight:600;
  cursor:pointer;
}
.tp-btn:focus{ outline:var(--tp-focus); outline-offset:2px; }
.tp-btn--primary{ background:#ffffff; color:#0b0b0c; border-color:#ffffff; }
.tp-btn--secondary{ background:transparent; }
.tp-btn--ghost{ background:transparent; color:var(--tp-muted); }

.tp-cookie-modal{
  position:fixed; inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tp-cookie-modal__backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.55);
}
.tp-cookie-modal__panel{
  position:relative;
  width:min(720px, calc(100vw - 24px));
  background:#ffffff;
  color:#111114;
  border-radius:var(--tp-radius);
  box-shadow:var(--tp-shadow);
  overflow:hidden;
}
.tp-cookie-modal__header{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 18px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.tp-cookie-modal__header h2{ margin:0; font-size:18px; }
.tp-icon-btn{
  appearance:none;
  border:none;
  background:transparent;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.tp-icon-btn:focus{ outline:2px solid rgba(0,0,0,.6); outline-offset:2px; }

.tp-cookie-modal__body{
  padding:14px 18px;
}
.tp-cookie-category{
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  padding:12px 14px;
  margin-top:10px;
}
.tp-cookie-category__row{
  display:flex; gap:16px; justify-content:space-between; align-items:center;
}
.tp-cookie-category__hint{
  font-size:13px;
  color:rgba(0,0,0,.68);
  margin-top:4px;
}

.tp-cookie-modal__footer{
  display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
  padding:14px 18px;
  border-top:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.02);
}

/* Switch */
.tp-switch{ position:relative; display:inline-flex; align-items:center; }
.tp-switch input{ position:absolute; opacity:0; width:0; height:0; }
.tp-switch__slider{
  width:46px; height:28px;
  border-radius:999px;
  background:rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.12);
  position:relative;
  transition:background .15s ease;
}
.tp-switch__slider::after{
  content:"";
  position:absolute;
  top:50%; left:3px;
  width:22px; height:22px;
  background:#ffffff;
  border-radius:50%;
  transform:translateY(-50%);
  box-shadow:0 2px 8px rgba(0,0,0,.16);
  transition:left .15s ease;
}
.tp-switch input:checked + .tp-switch__slider{ background:#0b0b0c; }
.tp-switch input:checked + .tp-switch__slider::after{ left:21px; }

@media (max-width:600px){
  .tp-cookie-banner__actions{ width:100%; }
  .tp-btn{ width:100%; justify-content:center; }
}
