.btt-sb-layer[hidden], .btt-sb-banner[hidden] { display: none !important; }
.btt-sb-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: clip;
  --btt-sb-max-height: calc(100vh - var(--btt-sb-top) - 16px);
}
.btt-sb-banner {
  position: absolute;
  top: var(--btt-sb-top);
  display: block;
  pointer-events: auto;
  text-decoration: none !important;
  filter: drop-shadow(0 5px 12px #15254c26);
}
.btt-sb-banner--left { right: calc(50% + var(--btt-sb-half-content) + 16px); }
.btt-sb-banner--right { left: calc(50% + var(--btt-sb-half-content) + 16px); }
.btt-sb-banner > img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--btt-sb-width);
  max-height: var(--btt-sb-max-height);
  margin: 0;
  border-radius: 8px;
}
.btt-sb-banner:focus-visible {
  outline: 3px solid #1662de;
  outline-offset: 3px;
  border-radius: 8px;
}

@supports (height: 100dvh) {
  .btt-sb-layer { --btt-sb-max-height: calc(100dvh - var(--btt-sb-top) - 16px); }
}

body:has(dialog:modal) .btt-sb-layer { visibility: hidden; }

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .btt-sb-layer { display: none !important; }
}
