.dgba-slot{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}.dgba-banner{max-width:100%;line-height:0;border-radius:18px;overflow:hidden;isolation:isolate}.dgba-banner>a,.dgba-banner>img{display:block;border-radius:inherit}.dgba-banner img{display:block;width:auto;height:auto;max-width:100%;object-fit:contain;border-radius:inherit}.dgba-slot--post_related,.dgba-slot--shop_top{width:100%;margin:18px auto 26px}.dgba-slot--post_related .dgba-banner,.dgba-slot--shop_top .dgba-banner{width:100%}.dgba-slot--post_related img,.dgba-slot--shop_top img{width:100%;height:auto;object-fit:contain}.dgba-slot--post_sidebar{width:100%;margin-top:14px}.dgba-slot--post_sidebar .dgba-banner{width:100%;aspect-ratio:1/1}.dgba-slot--post_sidebar img{width:100%;height:100%;object-fit:contain}.dgba-floating{position:fixed;z-index:8500;max-height:calc(100dvh - 35px);max-width:calc(100vw - 30px);pointer-events:auto}.dgba-floating--bottom_right{right:16px;bottom:16px}.dgba-floating--popup{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8501}.dgba-floating .dgba-slot{max-height:calc(100dvh - 35px);max-width:calc(100vw - 30px);overflow:auto}.dgba-floating .dgba-banner img{max-height:calc(100dvh - 55px);max-width:calc(100vw - 40px);object-fit:contain}.dgba-close{position:absolute;top:0;right:0;transform:translate(30%,-35%);border:1px solid #e4e1f3;border-radius:50%;background:#fff;color:#533ae8;width:29px;height:29px;line-height:1;font-size:23px;display:grid;place-items:center;cursor:pointer;z-index:2;box-shadow:0 4px 15px #0002}.dgba-close:hover,.dgba-close:focus{color:#533ae8;background:#f3f0ff}.dgba-floating[hidden]{display:none!important}@media(max-width:767px){.dgba-slot--post_sidebar{display:none!important}.dgba-floating--bottom_right{right:9px;bottom:12px}.dgba-floating .dgba-banner img{max-width:calc(100vw - 28px)}}

/* Individual per-banner mobile visibility; does not affect desktop or other banners. */
@media screen and (max-width:767px){.dgba-banner.dgba-hide-mobile{display:none!important}.dgba-floating.dgba-hide-floating-mobile{display:none!important}}

/* Bottom-right banner: compact floating card regardless of original artwork resolution.
   Scoped to this placement so popup and inline banner sizing stay unchanged. */
html body .dgba-floating.dgba-floating--bottom_right {
  position:fixed;
  right:16px;
  left:auto;
  bottom:16px;
  top:auto;
  transform:none;
  width:max-content;
  max-width:min(300px,calc(100vw - 32px));
  max-height:min(300px,calc(100dvh - 48px));
  overflow:visible;
  z-index:8500;
}
html body .dgba-floating--bottom_right .dgba-slot {
  width:max-content;
  max-width:100%;
  max-height:min(300px,calc(100dvh - 48px));
  overflow:hidden;
  align-items:flex-end;
}
html body .dgba-floating--bottom_right .dgba-banner {
  width:max-content;
  max-width:100%;
  max-height:100%;
  border-radius:16px;
  overflow:hidden;
}
html body .dgba-floating--bottom_right .dgba-banner > a {
  display:block;
  max-width:100%;
}
html body .dgba-floating--bottom_right .dgba-banner img {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:min(300px,calc(100dvh - 48px));
  object-fit:contain;
  border-radius:inherit;
}
html body .dgba-floating--bottom_right > .dgba-close {
  position:absolute;
  display:grid;
  place-items:center;
  top:7px;
  right:7px;
  left:auto;
  bottom:auto;
  transform:none;
  width:29px;
  height:29px;
  min-width:29px;
  padding:0;
  border:1px solid #ded9fa;
  border-radius:50%;
  background:#fff;
  color:#533ae8;
  font:normal 22px/1 Arial,sans-serif;
  z-index:10;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,.18);
  opacity:1;
  visibility:visible;
}
html body .dgba-floating--bottom_right > .dgba-close:hover,
html body .dgba-floating--bottom_right > .dgba-close:focus-visible {
  background:#f2efff;
  color:#533ae8;
}
@media(max-width:767px){
  html body .dgba-floating.dgba-floating--bottom_right {
    right:10px;
    bottom:10px;
    max-width:min(210px,calc(100vw - 20px));
    max-height:min(210px,calc(100dvh - 30px));
  }
  html body .dgba-floating--bottom_right .dgba-slot,
  html body .dgba-floating--bottom_right .dgba-banner img {
    max-height:min(210px,calc(100dvh - 30px));
  }
}

/* v1.84.00: floating-popup dimensions independent of inline banners. */
html body .dgba-floating.dgba-floating--popup{
  width:max-content;
  max-width:min(480px,calc(100vw - 32px));
  max-height:min(520px,calc(100dvh - 48px));
  overflow:visible;
}
html body .dgba-floating--popup .dgba-slot{
  width:max-content;
  max-width:100%;
  max-height:min(520px,calc(100dvh - 48px));
  overflow:hidden;
}
html body .dgba-floating--popup .dgba-banner{
  max-width:100%;max-height:min(520px,calc(100dvh - 48px));
  border-radius:18px;overflow:hidden;
}
html body .dgba-floating--popup .dgba-banner img{
  display:block;width:auto;height:auto;max-width:100%;
  max-height:min(520px,calc(100dvh - 48px));object-fit:contain;
}
/* Consistent close control for both floating placements; never project outside screen. */
html body .dgba-floating > .dgba-close{
  position:absolute;top:9px;right:9px;left:auto;bottom:auto;
  display:grid;place-items:center;transform:none;
  width:34px;height:34px;min-width:34px;padding:0;
  color:#29243f;background:rgba(255,255,255,.94);
  border:1px solid rgba(119,102,174,.2);border-radius:12px;
  box-shadow:0 5px 18px rgba(22,16,40,.18);
  z-index:25;cursor:pointer;transition:background .15s ease,box-shadow .15s ease;
}
html body .dgba-floating > .dgba-close svg{width:16px;height:16px;pointer-events:none;}
html body .dgba-floating > .dgba-close:hover,
html body .dgba-floating > .dgba-close:focus-visible{
  color:#533ae8;background:#f4f1ff;box-shadow:0 6px 20px rgba(22,16,40,.22);
  outline:2px solid #533ae8;outline-offset:1px;
}
.dgba-banner[hidden]{display:none!important;}
@media(max-width:767px){
 html body .dgba-floating.dgba-floating--popup{max-width:calc(100vw - 28px);max-height:min(420px,calc(100dvh - 40px));}
 html body .dgba-floating--popup .dgba-slot,
 html body .dgba-floating--popup .dgba-banner,
 html body .dgba-floating--popup .dgba-banner img{max-height:min(420px,calc(100dvh - 40px));}
}

/* Multiple article-end/sidebar banners form a clean vertical stack; other placements are single-banner. */
.dgba-slot--post_related,.dgba-slot--post_sidebar{display:flex;flex-direction:column;gap:18px;align-items:stretch}.dgba-slot--post_related .dgba-banner,.dgba-slot--post_sidebar .dgba-banner{flex:0 0 auto;min-width:0}.dgba-slot--post_related .dgba-banner:not(:last-child),.dgba-slot--post_sidebar .dgba-banner:not(:last-child){margin-bottom:0}

/* Blog archive banner: same fluid rectangular presentation as shop banner. */
.dgba-slot--blog_top{width:100%;margin:18px auto 26px}
.dgba-slot--blog_top .dgba-banner{width:100%}
.dgba-slot--blog_top img{width:100%;height:auto;object-fit:contain}
