.nvbm-slot {
  box-sizing: border-box;
  margin: 24px auto;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.nvbm-slot picture,
.nvbm-slot img,
.nvbm-video,
.nvbm-youtube,
.nvbm-youtube-facade {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nvbm-youtube-facade {
  background: #111;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nvbm-youtube-facade img {
  filter: saturate(1.05);
}

.nvbm-youtube-play {
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  height: 58px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
}

.nvbm-youtube-play::before {
  border-bottom: 13px solid transparent;
  border-left: 19px solid #fff;
  border-top: 13px solid transparent;
  content: '';
  left: 23px;
  position: absolute;
  top: 16px;
}
.nvbm-creative-link,
.nvbm-creative-media {
  display: block;
  height: 100%;
  width: 100%;
}

.nvbm-slot-hero_top { aspect-ratio: 12 / 5; }
.nvbm-slot-after_hero { aspect-ratio: 48 / 5; }
.nvbm-slot-video_showcase { aspect-ratio: 16 / 9; }
.nvbm-slot-mid_page { aspect-ratio: 24 / 5; }
.nvbm-slot-before_cta { aspect-ratio: 32 / 5; }
.nvbm-slot-shop_top { aspect-ratio: 16 / 3; }
.nvbm-slot-product_top { aspect-ratio: 4 / 1; }
.nvbm-slot-product_after_summary { aspect-ratio: 24 / 5; }
.nvbm-slot-blog_inline {
  aspect-ratio: 364 / 45;
  max-width: 728px;
}

.nvbm-slot-sticky_top {
  height: 48px;
  left: 0;
  margin: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9998;
}

.admin-bar .nvbm-slot-sticky_top { top: 32px; }

.nvbm-popup {
  background: rgba(0, 0, 0, 0.56);
  bottom: 0;
  display: none;
  height: auto;
  left: 0;
  margin: 0;
  max-width: none;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.nvbm-popup.is-visible {
  align-items: center;
  display: flex;
  justify-content: center;
}

.nvbm-popup .nvbm-creative-link,
.nvbm-popup .nvbm-creative-media {
  aspect-ratio: 3 / 2;
  background: #fff;
  max-width: 600px;
}

.nvbm-popup-close {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  height: 40px;
  line-height: 1;
  position: absolute;
  right: max(24px, calc(50vw - 332px));
  top: max(24px, calc(50vh - 232px));
  width: 40px;
  z-index: 2;
}

.nvbm-cta {
  background: #111;
  bottom: 16px;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  padding: 10px 16px;
  position: absolute;
  right: 16px;
  text-decoration: none;
}

.nvbm-device-desktop { display: block; }
.nvbm-device-mobile { display: none; }

@media (max-width: 767px) {
  .admin-bar .nvbm-slot-sticky_top { top: 46px; }
  .nvbm-device-desktop { display: none; }
  .nvbm-device-mobile { display: block; }
  .nvbm-slot-hero_top,
  .nvbm-slot-video_showcase { aspect-ratio: 4 / 5; }
  .nvbm-slot-after_hero { aspect-ratio: 9 / 2; }
  .nvbm-slot-mid_page { aspect-ratio: 27 / 13; }
  .nvbm-slot-before_cta { aspect-ratio: 18 / 7; }
  .nvbm-slot-shop_top,
  .nvbm-slot-product_top { aspect-ratio: 18 / 7; }
  .nvbm-slot-product_after_summary { aspect-ratio: 3 / 1; }
  .nvbm-slot-blog_inline { aspect-ratio: 16 / 3; }
  .nvbm-popup .nvbm-creative-link,
  .nvbm-popup .nvbm-creative-media {
    aspect-ratio: 3 / 4;
    max-width: min(92vw, 420px);
  }
  .nvbm-popup-close {
    right: 12px;
    top: 12px;
  }
}

.nvbm-auto-mounts { display: none !important; }


.nvbm-background-creative {
  display: block;
  height: 100%;
  min-height: inherit;
  width: 100%;
}
