.ads-preferences {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink, #163b36);
  font: inherit;
  font-size: 12px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 40px;
  justify-self: start;
}

.ads-consent {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100% - 40px));
  max-height: min(70vh, 490px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--line, #d8ded8);
  border-radius: 10px;
  background: #fcfcf9;
  box-shadow: 0 8px 30px #163b362b;
  color: var(--ink, #163b36);
}

.ads-consent h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.ads-consent p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
}

.ads-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ads-consent summary {
  font-size: 13px;
  cursor: pointer;
}

.ads-consent details p {
  margin-top: 8px;
}

.ads-consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ads-consent-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--ink, #163b36);
  border-radius: 4px;
  padding: 8px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ads-consent-actions button:hover {
  background: #e9eee6;
}

.ads-consent :focus-visible,
.ads-preferences:focus-visible {
  outline: 2px solid var(--ink, #163b36);
  outline-offset: 3px;
}

@media (max-width: 650px) {
  .ads-consent {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 100px - env(safe-area-inset-bottom));
    padding: 16px;
  }
}
