/* BSV10 Banner Stylesheet — Breakpoint max-width: 999.98px */
#ulb-root { display: none; }

@media (max-width: 999.98px) {
  /* Mode 1: Overlay (Menimpa layar penuh) */
  #ulb-root[data-ready="true"][data-mode="overlay"],
  #ulb-root[data-ready="true"]:not([data-mode]) {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #09131f;
    align-items: center;
    justify-content: center;
    overflow: auto;
    cursor: pointer;
    box-sizing: border-box;
    padding: 20px 16px calc(88px + env(safe-area-inset-bottom));
  }
  body:has(#ulb-root[data-ready="true"][data-mode="overlay"]),
  body:has(#ulb-root[data-ready="true"]:not([data-mode])) {
    overflow: hidden;
  }

  /* Mode 2: Scrollable (Paling atas 1 layar HP 100dvh, konten landing page di bawahnya bisa di-scroll bebas) */
  #ulb-root[data-ready="true"][data-mode="scrollable"] {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 100dvh;
    background: #09131f;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-sizing: border-box;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(112px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  }
}

#ulb-root img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#ulb-root:focus-visible {
  outline: 4px solid #2563eb;
  outline-offset: -4px;
}

/* Tombol Thumb Reach ("Konsultasi Suku Cadang") */
.ulb-btn-wrap {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 380px);
  z-index: 10;
  pointer-events: auto;
}

.ulb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.48), 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ulb-btn:active {
  transform: scale(0.96);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ulb-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.ulb-btn:hover svg {
  transform: translateX(4px);
}

/* Petunjuk Scroll Down di Mode Scrollable */
.ulb-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-align: center;
  padding: 4px 10px;
  animation: ulb-bounce 1.6s infinite ease-in-out;
}

.ulb-scroll-hint svg {
  width: 15px;
  height: 15px;
}

@keyframes ulb-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
