.rz-ad {
  position: relative;
  box-sizing: border-box;
  color-scheme: light;
}

.rz-ad-shell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(60, 60, 67, .14);
  border-radius: 8px;
  background: rgba(246, 246, 247, .96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.rz-ad-label {
  position: absolute;
  left: 8px;
  top: -22px;
  color: rgba(60, 60, 67, .56);
  font: 12px/1.4 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rz-ad-close {
  position: absolute;
  right: -9px;
  top: -9px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(60, 60, 67, .18);
  border-radius: 999px;
  background: #fff;
  color: rgba(60, 60, 67, .72);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  cursor: pointer;
  font: 16px/1 Arial, sans-serif;
}

.rz-ad-close:hover {
  color: rgba(60, 60, 67, .95);
}

.rz-ad-slot {
  display: grid;
  place-items: center;
}

.rz-ad-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  overflow: hidden;
  background: transparent;
}

.rz-ad-content {
  display: flex;
  justify-content: center;
  margin: 24px auto 30px;
}

.rz-ad-content .rz-ad-shell {
  width: 300px;
  min-height: 250px;
}

.rz-ad-content .rz-ad-slot {
  width: 300px;
  min-height: 250px;
}

.rz-ad-content .rz-ad-frame {
  width: 300px;
  height: 250px;
}

.rz-ad-side {
  position: fixed;
  right: max(12px, calc((100vw - 1280px) / 2 - 184px));
  top: 104px;
  z-index: 45;
  width: 160px;
}

.rz-ad-side .rz-ad-shell {
  min-height: 620px;
  padding: 8px;
}

.rz-ad-side .rz-ad-slot {
  width: 100%;
  min-height: 600px;
}

.rz-ad-side .rz-ad-frame {
  width: 160px;
  height: 600px;
}

.rz-ad-bottom {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 70;
  width: 728px;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
}

.rz-ad-bottom .rz-ad-shell {
  min-height: 90px;
}

.rz-ad-bottom .rz-ad-slot {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
}

.rz-ad-bottom .rz-ad-frame {
  width: 728px;
  height: 90px;
}

.rz-ad-mobile-bottom {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 70;
  width: 320px;
  max-width: calc(100vw - 20px);
  transform: translateX(-50%);
}

.rz-ad-mobile-bottom .rz-ad-shell {
  min-height: 50px;
}

.rz-ad-mobile-bottom .rz-ad-slot {
  width: 320px;
  max-width: 100%;
  min-height: 50px;
}

.rz-ad-mobile-bottom .rz-ad-frame {
  width: 320px;
  height: 50px;
}

body.rz-has-bottom-ad {
  padding-bottom: 118px;
}

body.rz-has-mobile-bottom-ad {
  padding-bottom: 72px;
}

@media (max-width: 1399px) {
  .rz-ad-side {
    display: none;
  }
}

@media (max-width: 767px) {
  .rz-ad-bottom,
  .rz-ad-side {
    display: none;
  }

  .rz-ad-content {
    margin: 22px auto 26px;
  }
}

@media (min-width: 768px) {
  .rz-ad-mobile-bottom {
    display: none;
  }
}
