.tb-consent-banner{
  position:fixed;
  z-index:22000;
  left:50%;
  bottom:max(18px,env(safe-area-inset-bottom));
  width:min(860px,calc(100vw - 32px));
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:22px;
  padding:20px;
  border:1px solid rgba(42,75,58,.14);
  border-radius:24px;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
  backdrop-filter:blur(18px) saturate(1.08);
  box-shadow:0 28px 80px rgba(17,42,28,.22),0 5px 18px rgba(17,42,28,.08);
  color:#173325;
  overflow:hidden;
  isolation:isolate
}
.tb-consent-banner::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,#5b2698,#2f7d32)
}
.tb-consent-copy{min-width:0;display:grid;gap:6px}
.tb-consent-copy p{margin:0}
.tb-consent-lead{
  max-width:58ch;
  color:#183a28;
  font-size:clamp(.98rem,1.4vw,1.08rem);
  font-weight:760;
  line-height:1.55;
  letter-spacing:-.01em
}
.tb-consent-settings-note{
  color:#465c50;
  font-size:.94rem;
  line-height:1.5
}
.tb-consent-actions{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap
}
.tb-consent-actions button{
  min-height:42px;
  padding:9px 14px;
  border:1px solid #d4dfd8;
  border-radius:12px;
  background:#fff;
  color:#1e3a2a;
  font:inherit;
  font-size:.88rem;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
  box-shadow:none;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease
}
.tb-consent-actions button:hover{
  transform:translateY(-1px);
  border-color:#a8bdb0;
  box-shadow:0 7px 18px rgba(24,58,40,.10)
}
.tb-consent-actions button:focus-visible{
  outline:3px solid rgba(91,38,152,.20);
  outline-offset:2px
}
.tb-consent-actions [data-all],
.tb-consent-actions [data-consent-all],
.tb-consent-actions [data-save],
.tb-consent-actions [data-consent-save]{
  border-color:#2f7d32;
  background:#2f7d32;
  color:#fff
}
.tb-consent-actions [data-settings],
.tb-consent-actions [data-consent-settings]{
  border-color:#d8cce9;
  background:#f7f2fc;
  color:#51238a
}
.tb-consent-banner--settings{
  width:min(680px,calc(100vw - 32px));
  grid-template-columns:1fr;
  align-items:stretch;
  gap:10px;
  padding:20px
}
.tb-consent-banner--settings .tb-consent-copy{margin-bottom:2px}
.tb-consent-option{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:flex-start;
  padding:13px 14px;
  border:1px solid #e0e8e3;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease
}
.tb-consent-option:hover{
  border-color:#c1d1c7;
  box-shadow:0 6px 18px rgba(20,55,36,.06)
}
.tb-consent-option:has(input:focus-visible){
  outline:3px solid rgba(91,38,152,.16);
  outline-offset:1px
}
.tb-consent-option input{
  width:19px;
  height:19px;
  margin:2px 0 0;
  accent-color:#2f7d32
}
.tb-consent-option input:disabled{opacity:.72;cursor:not-allowed}
.tb-consent-option span{display:grid;gap:3px;min-width:0}
.tb-consent-option b{color:#1c3928;font-size:.92rem;line-height:1.35}
.tb-consent-option small{color:#617168;font-size:.82rem;line-height:1.45}
.tb-consent-banner--settings .tb-consent-actions{
  margin-top:4px;
  padding-top:4px;
  justify-content:space-between
}
@media(max-width:760px){
  .tb-consent-banner{
    left:12px;
    right:12px;
    bottom:max(12px,env(safe-area-inset-bottom));
    width:auto;
    transform:none;
    grid-template-columns:1fr;
    gap:14px;
    padding:17px;
    border-radius:22px
  }
  .tb-consent-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%
  }
  .tb-consent-actions button{width:100%}
  .tb-consent-actions [data-all],
  .tb-consent-actions [data-consent-all],
  .tb-consent-banner:not(.tb-consent-banner--settings) .tb-consent-actions button:first-child{
    grid-column:1/-1
  }
  .tb-consent-banner--settings{
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-height:min(82dvh,760px);
    overflow:auto;
    border-radius:26px 26px 0 0;
    padding:18px 14px calc(16px + env(safe-area-inset-bottom))
  }
  .tb-consent-banner--settings .tb-consent-actions{
    grid-template-columns:1fr;
  }
}
@media(prefers-reduced-motion:no-preference){
  .tb-consent-banner{animation:tb-consent-enter .24s ease-out both}
  @keyframes tb-consent-enter{
    from{opacity:0;translate:0 12px}
    to{opacity:1;translate:0 0}
  }
}
