/* iPhone / iPad "Install AayBazar" sheet (Shared/_IosInstall.cshtml). Loaded by both layouts, so every rule is
   scoped to .ios-install and restates what Molla or SunnyAdmin would otherwise change (buttons, lists, fonts). */

.ios-install[hidden],
.ios-install-pointer[hidden],
.ios-install [hidden] { display: none !important; }

.ios-install {
    position: fixed; inset: 0; z-index: 1070;            /* over modals (1050) and the pay receipt (1060) */
    display: flex; align-items: flex-end; justify-content: center;
    font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
    color: #1c1c28; text-align: left;
}
.ios-install-dim {
    position: absolute; inset: 0; background: rgba(14, 12, 40, .45);
    opacity: 0; transition: opacity .25s ease;
}
.ios-install-card {
    position: relative; width: 100%; box-sizing: border-box;
    background: #fff; border-radius: 22px 22px 0 0;
    padding: 10px 20px calc(18px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 16px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .15);
    transform: translateY(100%); transition: transform .4s cubic-bezier(.22, .8, .24, 1);
}
.ios-install.is-open .ios-install-dim { opacity: 1; }
.ios-install.is-open .ios-install-card { transform: none; }

/* iPad: a floating card, there being no bottom bar to sit on */
@media (min-width: 600px) {
    .ios-install { padding-bottom: 36px; box-sizing: border-box; }
    .ios-install-card {
        width: 470px; border-radius: 24px; padding: 24px;
        box-shadow: 0 24px 60px rgba(14, 12, 40, .3);
        transform: translateY(24px); opacity: 0; transition: transform .35s cubic-bezier(.22, .8, .24, 1), opacity .25s ease;
    }
    .ios-install.is-open .ios-install-card { opacity: 1; }
    .ios-install-handle { display: none; }
}

.ios-install-handle { width: 40px; height: 5px; border-radius: 3px; background: #d6d7e0; align-self: center; }
.ios-install-head { display: flex; align-items: center; gap: 14px; }
.ios-install-icon { width: 58px; height: 58px; border-radius: 14px; flex: none; background: #fff; box-shadow: 0 4px 12px rgba(22, 0, 160, .18); }
.ios-install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ios-install-title { font-size: 18px; font-weight: 700; color: #1600a0; line-height: 1.25; }
.ios-install-sub { font-size: 13.5px; line-height: 1.4; color: #55576e; }
.ios-install-x {
    width: 32px; height: 32px; flex: none; align-self: flex-start; padding: 0;
    border: 0; border-radius: 50%; background: #f1f2f8; color: #55576e; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.ios-install-x svg { width: 14px; height: 14px; }

.ios-install-steps {
    list-style: none; margin: 0; padding: 12px 14px; border-radius: 14px; background: #f5f6fb;
    display: flex; flex-direction: column; gap: 12px;
}
.ios-install-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; margin: 0; }
/* The step's words and its icon flow as one sentence beside the number, however the browser's copy wraps */
.ios-install-line { flex: 1; min-width: 0; line-height: 1.6; }
.ios-install-steps small { color: #6b6d84; font-size: 12px; }
.ios-install-n {
    width: 24px; height: 24px; flex: none; border-radius: 50%;
    background: #1600a0; color: #fff; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.ios-install-glyph {
    width: 28px; height: 28px; margin: 0 3px; border-radius: 8px; background: #fff; color: #0a7cff; vertical-align: middle;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.ios-install-glyph svg { width: 18px; height: 18px; }

.ios-install-actions { display: flex; flex-direction: column; gap: 6px; }
.ios-install-primary,
.ios-install-later {
    width: 100%; margin: 0; border: 0; border-radius: 14px; cursor: pointer;
    font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none;
}
.ios-install-primary { height: 50px; background: #1600a0; color: #fff; font-size: 16px; }
.ios-install-later { height: 44px; background: transparent; color: #55576e; font-size: 15px; font-weight: 600; }

/* ── The pointer after "Show me where" ── */
.ios-install-pointer {
    position: fixed; z-index: 1070; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; color: #1600a0;
    opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease;
}
.ios-install-pointer.is-open { opacity: 1; transform: none; }
.ios-install-pointer.at-bottom { left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); }
.ios-install-pointer.at-top { top: 6px; right: 14px; align-items: flex-end; }
.ios-install-pointer.at-top .is-down,
.ios-install-pointer.at-bottom .is-up { display: none; }
/* A white halo keeps the indigo arrow visible over a dark page top or banner */
.ios-install-arrow { width: 28px; height: 34px; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff); }
.ios-install-pointer.at-top .ios-install-arrow { margin-right: 18px; animation: iosInstallBobUp 1s ease-in-out infinite; }
.ios-install-pointer.at-bottom .ios-install-arrow { animation: iosInstallBobDown 1s ease-in-out infinite; }
.ios-install-bubble {
    max-width: 280px; padding: 12px 16px; border-radius: 14px; text-align: center;
    background: #1600a0; color: #fff; font-size: 14px; line-height: 1.35;
    box-shadow: 0 0 0 2px #fff, 0 10px 24px rgba(22, 0, 160, .35);   /* the white ring parts it from an indigo banner */
}
.ios-install-step { font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: .75; margin-bottom: 3px; }
@keyframes iosInstallBobDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes iosInstallBobUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce) {
    .ios-install-dim, .ios-install-card, .ios-install-pointer { transition: none; }
    .ios-install-arrow { animation: none !important; }
}
