/* One reserved banner row; map rendering and ad refresh behavior are unchanged. */
html.adsterra-visible {
  --desk-bottom: 140px;
}
#adsterraPlacement {
  position: fixed;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  max-width: 100vw;
  height: 78px;
  z-index: 19;
  background: #0d120f;
  color: #ddd4bd;
  pointer-events: auto;
}
#adsterraPlacement[hidden],
body.booting #adsterraPlacement,
body.arrival-cinematic #adsterraPlacement {
  display: none;
}
.adsterra-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  font:
    12px/1.2 Georgia,
    serif;
}
.adsterra-heading button,
.adsterra-settings {
  font:
    12px/1.4 Georgia,
    serif;
  color: #ddd4bd;
  background: #0d120f;
  border: 1px solid #82704c;
  cursor: pointer;
  padding: 3px 8px;
}
#adsterraHost {
  width: 320px;
  height: 50px;
  overflow: hidden;
}
#adsterraHost iframe {
  display: block;
  border: 0;
}
#adsterraPlacement.adsterra-dossier {
  position: relative;
  inset: auto;
  transform: none;
  margin: 32px auto;
  width: 300px;
  height: 278px;
  max-width: 100%;
  z-index: auto;
}
.adsterra-dossier #adsterraHost {
  width: 300px;
  height: 250px;
}
#adsterraConsent {
  position: fixed;
  z-index: 100;
  bottom: calc(65px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px));
  box-sizing: border-box;
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #82704c;
  background: #101610;
  color: #ede3ce;
  font:
    14px/1.5 Georgia,
    serif;
  box-shadow: 0 8px 24px #0009;
}
#adsterraConsent[hidden] {
  display: none;
}
#adsterraConsent p {
  margin: 0 0 12px;
}
#adsterraConsent a {
  color: #ebc981;
  text-decoration: underline;
}
.adsterra-actions {
  display: flex;
  gap: 12px;
}
.adsterra-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #82704c;
  background: #1e261f;
  color: #ede3ce;
  font:
    14px Georgia,
    serif;
  cursor: pointer;
}
#adsterraConsent button:focus-visible,
[data-adsterra-settings]:focus-visible {
  outline: 2px solid #ebc981;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  html.adsterra-visible {
    --desk-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
  html.adsterra-visible .mobile-workspace {
    height: calc(50px + env(safe-area-inset-bottom, 0px));
  }
  #adsterraPlacement {
    bottom: calc(55px + env(safe-area-inset-bottom, 0px));
  }
}
