/* Isolated preference UI. No site/card typography or layout overrides. */
.ads-consent {
  box-sizing: border-box;
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #30241e;
  background: #fff9f2;
  border: 1px solid #a77c51;
  border-radius: 1rem;
  box-shadow: 0 1rem 4rem #30241e29;
  font-family: inherit;
  text-align: start;
  line-height: 1.55;
}
.ads-consent:not([open]) { display: none; }
.ads-consent::backdrop { background: #30241e73; }
.ads-consent *, .ads-consent *::before, .ads-consent *::after { box-sizing: border-box; }
.ads-consent-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.ads-consent h2 { margin: 0; font-size: 1.45rem; line-height: 1.25; color: #30241e; }
.ads-consent p { margin: .85rem 0; font-size: .94rem; color: #30241e; overflow-wrap: anywhere; }
.ads-consent .ads-consent-small { font-size: .82rem; }
.ads-consent .ads-consent-mode { background: #f3dfd1; padding: .65rem .8rem; border-radius: .5rem; font-weight: 600; }
.ads-consent button { min-height: 44px; padding: .65rem .85rem; color: #30241e; background: #f3dfd1; border: 1px solid #956c49; border-radius: .45rem; font: inherit; font-size: .94rem; cursor: pointer; }
.ads-consent-heading button { flex: 0 0 auto; background: transparent; }
.ads-consent button:disabled { cursor: not-allowed; opacity: .65; }
.ads-consent button:hover:not(:disabled) { background: #ead0bb; }
.ads-consent button:focus-visible, .ads-consent a:focus-visible, [data-ads-preferences]:focus-visible { outline: 3px solid #64451e; outline-offset: 3px; }
.ads-consent-policy { display: inline-block; color: #66451f; text-decoration: underline; text-underline-offset: .2em; padding-block: .45rem; min-height: 44px; }
.ads-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .6rem; }
.ads-consent-actions button { width: 100%; }
[data-ads-preferences] { font: inherit; color: inherit; background: transparent; border: 0; padding: .5rem; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
@media (max-width: 359px) {
  .ads-consent { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); padding: .9rem; }
  .ads-consent h2 { font-size: 1.25rem; }
  .ads-consent-actions { gap: .5rem; }
}
@media print { .ads-consent, [data-ads-preferences] { display: none !important; } }
