:root {
  --kg-bottom-ad-space: 0px;
}

body.kg-monetize-host {
  padding-bottom: calc(16px + var(--kg-bottom-ad-space, 0px));
}

.kg-ad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  clear: both;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.kg-ad-box[hidden],
.kg-ad-box[data-ad-collapsed="true"] {
  display: none !important;
}

.kg-ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(190, 215, 235, 0.58);
  margin-bottom: 6px;
  line-height: 1;
}

.kg-ad-box--mobile-top {
  margin: 8px auto 24px;
  min-height: 66px;
}

.kg-ad-box--result-top {
  margin: 28px auto;
  width: 100%;
  max-width: 640px;
}

.kg-ad-box--in-article {
  margin: 28px auto;
  width: 100%;
  max-width: 728px;
}

.kg-ad-rail {
  display: none;
}

@media (min-width: 1000px) {
  .kg-ad-box--mobile-top {
    display: none !important;
  }

  .kg-ad-rail--right {
    display: flex;
    position: fixed;
    top: 84px;
    right: 12px;
    width: 164px;
    z-index: 30;
    margin: 0;
  }

  body.kg-monetize-host main {
    padding-right: 184px;
  }
}

@media (min-width: 1220px) {
  .kg-ad-rail--left {
    display: flex;
    position: fixed;
    top: 84px;
    left: 12px;
    width: 164px;
    z-index: 30;
    margin: 0;
  }

  body.kg-monetize-host main {
    padding-left: 184px;
    padding-right: 184px;
  }
}

@media (max-width: 999px) {
  .kg-ad-rail {
    display: none !important;
  }
}
