.adsterra-sticky {
  --adsterra-top: 0px;
  position: sticky;
  top: var(--adsterra-top);
  z-index: 9;
  display: flex;
  width: 100%;
  max-width: 100vw;
  height: 50px;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.adsterra-sticky[hidden] {
  display: none;
}

.adsterra-sticky__inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 56rem;
  height: 50px;
  padding-right: 2.5rem;
  pointer-events: auto;
}

.adsterra-sticky iframe {
  display: block;
  width: 320px;
  height: 50px;
  max-width: 100%;
  margin-inline: auto;
  border: 0;
}

.adsterra-sticky__close {
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0 0 0 8px;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font: 700 20px/1 system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.adsterra-sticky__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -4px;
}

@media (max-width: 359px) {
  .adsterra-sticky__inner {
    padding-right: 0;
  }

  .adsterra-sticky__close {
    right: 0;
  }
}

.adsterra-rail {
  position: fixed;
  z-index: 8;
  width: 160px;
  background: transparent;
}

.adsterra-rail[hidden] {
  display: none;
}

.adsterra-rail iframe {
  display: block;
  width: 160px;
  border: 0;
  background: transparent;
}

.adsterra-rail__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 0 6px auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font: 700 20px/1 system-ui, sans-serif;
  cursor: pointer;
}

.adsterra-rail__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -4px;
}

@media (min-width: 1366px) {
  body[data-adsterra-rails] main .wrap,
  body[data-adsterra-rails] footer .wrap {
    width: min(var(--max), calc(100% - 352px));
  }
}

.adsterra-content-bottom {
  width: 728px;
  max-width: 100%;
  height: 90px;
  margin: 32px auto;
  overflow: hidden;
}

.adsterra-content-bottom[hidden] {
  display: none;
}

.adsterra-content-bottom iframe {
  display: block;
  width: 728px;
  height: 90px;
  border: 0;
  background: transparent;
}

.adsterra-home-native {
  display: block;
  width: min(var(--max, 1180px), calc(100% - 32px));
  margin: 32px auto 0;
  overflow: hidden;
}

.adsterra-home-native iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  background: transparent;
}
