/* Scoped to the optional consent component; uses the landingpage palette. */
.es-ads-panel {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 1000;
  width: min(740px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin-inline: auto;
  color: var(--ink, #1b1d1d);
  background: var(--paper, #f7f5f2);
  border: 1px solid var(--line, #ddd8ce);
  border-radius: 14px;
  box-shadow: 0 12px 48px #1b1d1d29;
  font-family: Inter, Arial, sans-serif;
}
.es-ads-panel[hidden] { display: none !important; }
.es-ads-panel__inner { padding: 24px; }
.es-ads-panel__title {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.es-ads-panel__text,
.es-ads-panel__status {
  margin: 0 0 12px;
  color: var(--muted, #69665f);
  font-size: 13px;
  line-height: 1.65;
}
.es-ads-panel__status { margin-top: 14px; }
.es-ads-panel__privacy,
.es-ads-settings {
  color: var(--ink, #1b1d1d);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.es-ads-settings {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.es-ads-settings--fallback {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  padding: 10px 14px;
  color: var(--ink, #1b1d1d);
  background: var(--paper, #f7f5f2);
  border: 1px solid var(--line, #ddd8ce);
  border-radius: 5px;
  font-family: Inter, Arial, sans-serif;
}
.es-ads-panel__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.es-ads-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--ink, #1b1d1d);
  border-radius: 5px;
  color: var(--paper, #f7f5f2);
  background: var(--ink, #1b1d1d);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
}
.es-ads-panel__button:hover { background: #353837; }
.es-ads-panel__button:disabled { opacity: .55; cursor: default; }
.es-ads-panel :focus-visible,
.es-ads-settings:focus-visible { outline: 2px solid var(--accent, #75634e); outline-offset: 4px; }
@media (max-width: 640px) {
  .es-ads-panel { inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 20px); }
  .es-ads-panel__inner { padding: 20px; }
  .es-ads-panel__title { font-size: 21px; }
  .es-ads-panel__actions { grid-template-columns: 1fr; }
  .es-ads-panel__button { font-size: 14px; min-height: 48px; }
  .es-ads-settings--fallback { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Keep the settings entry readable on the existing dark footer. */
.site-footer .es-ads-settings { color: inherit; }
