.wt-consent,
.wt-consent * {
  box-sizing: border-box;
}

.wt-consent[hidden] {
  display: none !important;
}

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

.wt-consent__panel {
  position: relative;
  width: min(940px, 100%);
  padding: 20px 22px;
  overflow: auto;
  border: 1px solid #dce5f0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  color: #0b1830;
  box-shadow: 0 24px 70px rgba(15, 32, 61, .24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(18px);
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(18px);
}

.wt-consent--visible .wt-consent__panel {
  opacity: 1;
  transform: translateY(0);
}

.wt-consent__brand {
  margin-bottom: 13px;
  color: #05080e;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -.7px;
}

.wt-consent__brand span {
  color: #1769ff;
}

.wt-consent__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
}

.wt-consent__summary[hidden],
.wt-consent__details[hidden] {
  display: none;
}

.wt-consent__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #1769ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wt-consent h2 {
  margin: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.wt-consent p {
  max-width: 610px;
  margin: 8px 0 0;
  color: #526078;
  font-size: 13px;
  line-height: 1.55;
}

.wt-consent a {
  color: #175bcc;
  font-weight: 750;
  text-underline-offset: 3px;
}

.wt-consent__actions,
.wt-consent__details-actions {
  display: flex;
  gap: 9px;
}

.wt-consent-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #cfd9e7;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.wt-consent-button:hover {
  transform: translateY(-1px);
}

.wt-consent-button--secondary {
  background: #fff;
  color: #14213a;
}

.wt-consent-button--secondary:hover {
  border-color: #1769ff;
  background: #f5f8ff;
}

.wt-consent-button--primary {
  border-color: #1769ff;
  background: #1769ff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 105, 255, .2);
}

.wt-consent-button:focus-visible,
.wt-consent__close:focus-visible,
.wt-consent__details-head button:focus-visible,
.wt-consent-category input:focus-visible + i {
  outline: 3px solid rgba(23, 105, 255, .28);
  outline-offset: 2px;
}

.wt-consent__close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #dce5f0;
  border-radius: 50%;
  background: #f7f9fc;
  color: #14213a;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.wt-consent__details-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 40px;
}

.wt-consent__details-head > button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
  color: #14213a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wt-consent__categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.wt-consent-category {
  display: flex;
  min-height: 98px;
  padding: 14px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: #f8faff;
}

.wt-consent-category__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wt-consent-category__copy strong {
  color: #101b31;
  font-size: 13px;
}

.wt-consent-category__copy small {
  color: #66758c;
  font-size: 11px;
  line-height: 1.4;
}

.wt-consent-category__control {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wt-consent-category__control > span {
  color: #66758c;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.wt-consent-category input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wt-consent-category i {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background .15s ease;
}

.wt-consent-category i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .2);
  transition: transform .15s ease;
}

.wt-consent-category input:checked + i {
  background: #1769ff;
}

.wt-consent-category input:checked + i::after {
  transform: translateX(18px);
}

.wt-consent-category--required i {
  background: #16a879;
  cursor: default;
}

.wt-consent__details-actions {
  justify-content: flex-end;
}

html[data-theme="dark"] .wt-consent__panel {
  border-color: #29405f;
  background: rgba(10, 23, 40, .98);
  color: #f2f6fc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
}

html[data-theme="dark"] .wt-consent__brand,
html[data-theme="dark"] .wt-consent-category__copy strong {
  color: #f2f6fc;
}

html[data-theme="dark"] .wt-consent p,
html[data-theme="dark"] .wt-consent-category__copy small,
html[data-theme="dark"] .wt-consent-category__control > span {
  color: #a9bad0;
}

html[data-theme="dark"] .wt-consent-button--secondary,
html[data-theme="dark"] .wt-consent__details-head > button,
html[data-theme="dark"] .wt-consent__close {
  border-color: #314967;
  background: #13243a;
  color: #f2f6fc;
}

html[data-theme="dark"] .wt-consent-category {
  border-color: #29405f;
  background: #0f1d30;
}

@media (max-width: 820px) {
  .wt-consent__summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wt-consent__actions {
    justify-content: stretch;
  }

  .wt-consent__actions .wt-consent-button {
    flex: 1 1 0;
  }

  .wt-consent__categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wt-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .wt-consent__panel {
    max-height: calc(100dvh - 20px);
    padding: 17px;
    border-radius: 18px;
  }

  .wt-consent__brand {
    margin-bottom: 11px;
    font-size: 17px;
  }

  .wt-consent h2 {
    font-size: 20px;
  }

  .wt-consent p {
    font-size: 12px;
  }

  .wt-consent__actions,
  .wt-consent__details-actions {
    flex-direction: column;
  }

  .wt-consent__actions .wt-consent-button,
  .wt-consent__details-actions .wt-consent-button {
    width: 100%;
  }

  .wt-consent__actions .wt-consent-button--primary {
    order: -1;
  }

  .wt-consent-category {
    min-height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wt-consent__panel,
  .wt-consent-button,
  .wt-consent-category i,
  .wt-consent-category i::after {
    transition: none;
  }
}

/* 2026 compact consent UI */
.wt-consent{right:16px;bottom:16px;left:16px;justify-content:flex-end}
.wt-consent__panel{width:min(720px,100%);padding:16px 18px;border-color:#e4e4e7;border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 18px 50px rgba(15,23,42,.18)}
.wt-consent__brand{margin-bottom:9px;font-size:16px;letter-spacing:-.6px}
.wt-consent__summary{grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}
.wt-consent__eyebrow{margin-bottom:4px;color:#a1a1aa;font-size:8px;letter-spacing:.1em}
.wt-consent h2{font-size:17px;letter-spacing:-.025em}
.wt-consent p{max-width:500px;margin-top:6px;color:#71717a;font-size:10px;line-height:1.5}
.wt-consent__actions,.wt-consent__details-actions{gap:6px}
.wt-consent-button{min-height:32px;padding:6px 10px;border-color:#e4e4e7;border-radius:8px;font-size:8.5px}
.wt-consent-button:hover{transform:none}
.wt-consent-button--secondary{background:#fff;color:#52525b}
.wt-consent-button--secondary:hover{border-color:#cfd5df;background:#fafafa}
.wt-consent-button--primary{border-color:#155eef;background:#155eef;box-shadow:none}
.wt-consent__close{top:10px;right:10px;width:28px;height:28px;border-color:#e4e4e7;border-radius:8px;background:#fafafa;color:#71717a;font-size:18px}
.wt-consent__details-head{gap:10px;padding-right:32px}
.wt-consent__details-head>button{min-height:30px;padding:5px 8px;border-color:#e4e4e7;border-radius:7px;font-size:8px}
.wt-consent__categories{gap:7px;margin:13px 0}
.wt-consent-category{min-height:76px;padding:10px;border-color:#e4e4e7;border-radius:9px;background:#fafafa}
.wt-consent-category__copy{gap:4px}.wt-consent-category__copy strong{font-size:9.5px}.wt-consent-category__copy small{color:#71717a;font-size:8px;line-height:1.4}
.wt-consent-category__control{gap:6px}.wt-consent-category__control>span{color:#a1a1aa;font-size:7px}
.wt-consent-category i{width:36px;height:20px}.wt-consent-category i::after{top:3px;left:3px;width:14px;height:14px}.wt-consent-category input:checked+i::after{transform:translateX(16px)}
@media(min-width:821px){
.wt-consent__panel{width:min(780px,100%);padding:20px 22px;border-radius:16px}
.wt-consent__brand{margin-bottom:11px;font-size:18px}
.wt-consent__summary{gap:22px}
.wt-consent__eyebrow{margin-bottom:5px;font-size:9.5px}
.wt-consent h2{font-size:20px}
.wt-consent p{max-width:560px;margin-top:8px;font-size:12px;line-height:1.55}
.wt-consent__actions,.wt-consent__details-actions{gap:8px}
.wt-consent-button{min-height:38px;padding:8px 13px;border-radius:9px;font-size:11px}
.wt-consent__close{top:12px;right:12px;width:32px;height:32px;font-size:20px}
.wt-consent__details-head{gap:12px;padding-right:38px}
.wt-consent__details-head>button{min-height:36px;padding:7px 10px;font-size:10.5px}
.wt-consent__categories{gap:9px;margin:16px 0}
.wt-consent-category{min-height:90px;padding:13px;border-radius:10px}
.wt-consent-category__copy{gap:5px}
.wt-consent-category__copy strong{font-size:11.5px}
.wt-consent-category__copy small{font-size:10px;line-height:1.45}
.wt-consent-category__control{gap:8px}
.wt-consent-category__control>span{font-size:9px}
.wt-consent-category i{width:40px;height:22px}
.wt-consent-category i::after{width:16px;height:16px}
.wt-consent-category input:checked+i::after{transform:translateX(18px)}
}
html[data-theme="dark"] .wt-consent__panel{border-color:var(--wt-line);background:rgba(17,28,44,.98)}
html[data-theme="dark"] .wt-consent-button--secondary,html[data-theme="dark"] .wt-consent__details-head>button,html[data-theme="dark"] .wt-consent__close{border-color:var(--wt-line);background:var(--wt-surface-soft);color:var(--wt-text)}
html[data-theme="dark"] .wt-consent-category{border-color:var(--wt-line);background:var(--wt-surface-soft)}
@media(max-width:820px){.wt-consent{justify-content:center}.wt-consent__summary{grid-template-columns:1fr}.wt-consent__actions{justify-content:stretch}}
@media(max-width:560px){.wt-consent{right:8px;bottom:8px;left:8px}.wt-consent__panel{max-height:calc(100dvh - 16px);padding:14px;border-radius:12px}.wt-consent__actions,.wt-consent__details-actions{gap:5px}.wt-consent__brand{font-size:15px}.wt-consent h2{font-size:16px}}
