.hwai-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 2147483000;
  display: none;
  justify-content: flex-end;
  pointer-events: none;
}

.hwai-consent[data-open="true"] {
  display: flex;
}

.hwai-consent__panel {
  width: min(392px, calc(100vw - 36px));
  border: 1px solid rgba(16, 24, 32, 0.16);
  border-radius: 18px;
  background: rgba(250, 250, 248, 0.97);
  box-shadow: 0 18px 56px rgba(16, 24, 32, 0.16);
  color: #101820;
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  padding: 14px;
  pointer-events: auto;
}

.hwai-consent__eyebrow {
  margin: 0 0 6px;
  color: #69706c;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hwai-consent__title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.08;
}

.hwai-consent__copy {
  max-width: 44ch;
  margin: 8px 0 0;
  color: #4c575c;
  font-size: 13px;
  line-height: 1.42;
}

.hwai-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.hwai-consent__button,
.hwai-cookie-settings-link {
  appearance: none;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #101820;
  cursor: pointer;
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 560;
  line-height: 1;
  padding: 10px 12px;
  text-align: center;
}

.hwai-consent__button {
  background: rgba(255, 255, 255, 0.72);
}

.hwai-consent__button:hover,
.hwai-cookie-settings-link:hover {
  border-color: #08796d;
  color: #08796d;
}

.hwai-consent__button--primary {
  border-color: rgba(16, 24, 32, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #101820;
}

.hwai-consent__button--primary:hover {
  border-color: #08796d;
  background: rgba(255, 255, 255, 0.9);
  color: #08796d;
}

.hwai-consent__button--settings {
  grid-column: 1 / -1;
  border: 0;
  padding: 2px 0 0;
  background: transparent;
  color: #69706c;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hwai-consent__setting {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.hwai-consent__setting input {
  margin-top: 3px;
  accent-color: #0aa38f;
}

.hwai-consent__setting strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.hwai-consent__setting span {
  display: block;
  margin-top: 4px;
  color: #69706c;
  font-size: 13px;
  line-height: 1.4;
}

.hwai-cookie-settings {
  width: min(var(--max, 720px), calc(100% - 36px));
  margin: -30px auto 42px;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  align-items: baseline;
}

.hwai-cookie-settings-link {
  display: inline-flex;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #69706c;
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

@media (max-width: 640px) {
  .hwai-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
  }

  .hwai-consent__panel {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
  }

  .hwai-consent__actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hwai-consent__button {
    width: 100%;
  }

  .hwai-consent__title {
    font-size: 19px;
  }

  .hwai-consent__copy {
    font-size: 12.5px;
  }
}
