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

.ws-consent-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  color: #fafafa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
}

.ws-consent-root[hidden] {
  display: none;
}

.ws-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.ws-consent-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: rgba(9, 9, 11, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}

.ws-consent-panel[hidden] {
  display: none;
}

.ws-consent-kicker {
  margin: 0 0 8px;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ws-consent-title {
  margin: 0;
  color: #fafafa;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.ws-consent-copy {
  max-width: 720px;
  margin: 10px 0 0;
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.65;
}

.ws-consent-copy a,
.ws-consent-dialog a {
  color: #fafafa;
  text-decoration: underline;
  text-decoration-color: #52525b;
  text-underline-offset: 3px;
}

.ws-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ws-consent-button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #3f3f46;
  border-radius: 5px;
  background: transparent;
  color: #e4e4e7;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.ws-consent-button:hover {
  border-color: #71717a;
  color: #fafafa;
}

.ws-consent-button--primary {
  border-color: #fafafa;
  background: #fafafa;
  color: #09090b;
}

.ws-consent-button--primary:hover {
  border-color: #e4e4e7;
  background: #e4e4e7;
  color: #09090b;
}

.ws-consent-dialog-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: auto;
}

.ws-consent-dialog-wrap[hidden] {
  display: none;
}

.ws-consent-dialog {
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #09090b;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}

.ws-consent-dialog-head,
.ws-consent-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.ws-consent-dialog-head {
  border-bottom: 1px solid #27272a;
}

.ws-consent-dialog-foot {
  flex-wrap: wrap;
  border-top: 1px solid #27272a;
}

.ws-consent-close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #3f3f46;
  border-radius: 5px;
  background: transparent;
  color: #d4d4d8;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.ws-consent-options {
  display: grid;
  gap: 0;
  padding: 0 22px;
}

.ws-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #27272a;
}

.ws-consent-option:last-child {
  border-bottom: 0;
}

.ws-consent-option h3 {
  margin: 0;
  color: #fafafa;
  font-size: 15px;
  font-weight: 400;
}

.ws-consent-option p {
  margin: 6px 0 0;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.55;
}

.ws-consent-switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
}

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

.ws-consent-switch span {
  width: 46px;
  height: 26px;
  border: 1px solid #52525b;
  border-radius: 999px;
  background: #27272a;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.ws-consent-switch span::after {
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px;
  border-radius: 50%;
  background: #a1a1aa;
  content: "";
  transition: transform 180ms ease, background-color 180ms ease;
}

.ws-consent-switch input:checked + span {
  border-color: #fafafa;
  background: #fafafa;
}

.ws-consent-switch input:checked + span::after {
  transform: translateX(20px);
  background: #09090b;
}

.ws-consent-switch input:focus-visible + span,
.ws-consent-button:focus-visible,
.ws-consent-close:focus-visible,
.ws-consent-link:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 3px;
}

.ws-consent-switch input:disabled + span {
  opacity: 0.72;
}

.ws-consent-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  transition: color 180ms ease;
}

.ws-consent-link:hover {
  color: #fafafa;
}

@media (max-width: 820px) {
  .ws-consent-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .ws-consent-actions {
    justify-content: stretch;
  }

  .ws-consent-button {
    flex: 1 1 150px;
  }
}

@media (max-width: 520px) {
  .ws-consent-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
  }

  .ws-consent-actions,
  .ws-consent-dialog-foot {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ws-consent-button {
    width: 100%;
  }

  .ws-consent-dialog-wrap {
    padding: 12px;
  }

  .ws-consent-option {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-consent-root *,
  .ws-consent-root *::after {
    transition: none !important;
  }
}
