/* Optional analytics consent banner. Independent of page theme tokens. */
.wtsn-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  box-sizing: border-box;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #101828;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.28);
  font-family: Inter, "DM Sans", system-ui, sans-serif;
}

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

.wtsn-consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.wtsn-consent-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.wtsn-consent-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.wtsn-consent-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #e4e7ec;
}

.wtsn-consent-desc a {
  color: #dbeafe;
  text-decoration: underline;
}

.wtsn-consent-desc a:focus-visible,
.wtsn-consent-btn:focus-visible,
.wtsn-privacy-settings:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.wtsn-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.wtsn-consent-btn {
  appearance: none;
  min-height: 44px;
  min-width: 148px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.wtsn-consent-btn:hover {
  background: #f8fafc;
}

.wtsn-privacy-settings {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 0 0.35em;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

html.wtsn-consent-open {
  padding-bottom: 168px;
}

@media (max-width: 640px) {
  .wtsn-consent-actions {
    width: 100%;
  }

  .wtsn-consent-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  html.wtsn-consent-open {
    padding-bottom: 220px;
  }
}
