/**
 * @file
 * App download promo: desktop QR block + mobile sticky smart-banner.
 */

/* ── Desktop QR block ─────────────────────────────────────────────── */
.hbmsu-appdl-desktop__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Title inherits the footer "social media" heading look via Bootstrap
   utilities (fs-6 fw-bold mb-3) on the element, so no custom rule here. */

/* QR tiles stacked one per row. */
.hbmsu-appdl-desktop__stores {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The whole tile is the store link; the QR image is the only child. */
.hbmsu-appdl-card {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.hbmsu-appdl-card:hover {
  transform: translateY(-2px);
}

.hbmsu-appdl-card__qr {
  width: 160px;
  display: block;
}

/* ── Mobile sticky smart-banner ───────────────────────────────────── */
.hbmsu-appdl-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: #0a2540;
  color: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.hbmsu-appdl-banner.is-visible {
  transform: translateY(0);
}

.hbmsu-appdl-banner__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.hbmsu-appdl-banner__title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbmsu-appdl-banner__subtitle {
  font-size: 0.8rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbmsu-appdl-banner__cta {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: #4da3ff;
  color: #04213f;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hbmsu-appdl-banner__cta:hover {
  background: #6fb6ff;
}

.hbmsu-appdl-banner__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.hbmsu-appdl-banner__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ── RTL (Arabic) ─────────────────────────────────────────────────── */
[dir="rtl"] .hbmsu-appdl-banner__title,
[dir="rtl"] .hbmsu-appdl-banner__subtitle {
  text-align: right;
}

/* ── Small screens ────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .hbmsu-appdl-banner__subtitle {
    display: none;
  }
}
