/* First-party App Store handoff. Used by the storefront shell and auth pages,
   without requiring the floating dock on a sign-in screen. */
.sbs-install-prompt {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 80px);
  z-index: 89;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  min-height: 64px;
  margin: 8px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  padding: 8px;
  color: #fff;
  background: rgba(16, 16, 18, 0.90);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.sbs-install-prompt[hidden] { display: none !important; }

.sbs-install-prompt__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}

.sbs-install-prompt__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.15;
}

.sbs-install-prompt__title {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sbs-install-prompt__subtitle {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sbs-install-prompt__store {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #000;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.sbs-install-prompt__dismiss {
  width: 36px;
  min-width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.sbs-install-prompt__store:active,
.sbs-install-prompt__dismiss:active { transform: scale(0.94); }

@media (min-width: 545px) {
  .sbs-install-prompt { margin-inline: auto; }
}

@media (max-width: 359px) {
  .sbs-install-prompt { gap: 8px; margin-inline: 8px; }
  .sbs-install-prompt__subtitle { display: none; }
  .sbs-install-prompt__store { padding-inline: 11px; }
  .sbs-install-prompt__dismiss { flex-basis: 32px; width: 32px; min-width: 32px; }
}
