.tos-consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html[data-tool-os-consent-dismissed="1"] .tos-consent-banner {
  display: none;
}

.tos-consent-banner__inner,
.tos-consent-modal__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

.tos-consent-banner__title,
.tos-consent-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.tos-consent-banner__text,
.tos-consent-modal__text {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.tos-consent-banner__actions,
.tos-consent-modal__actions,
.tos-consent-settings-link {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.tos-consent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.tos-consent-button--primary {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.tos-consent-button--secondary {
  background: #f8fafc;
}

.tos-consent-modal[hidden] {
  display: none;
}

.tos-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.55);
}

.tos-consent-modal__panel {
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.2);
}

.tos-consent-options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.tos-consent-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.tos-consent-option__heading {
  margin: 0 0 4px;
  font-size: 16px;
}

.tos-consent-option__text {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.tos-consent-option__toggle {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.tos-consent-settings-link {
  margin-top: 24px;
}

@media (min-width: 768px) {
  .tos-consent-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
  }

  .tos-consent-banner__actions {
    justify-content: flex-end;
    margin-top: 0;
  }
}
