/* RideCabby v1.32.0 — "Download App" bar + popup modal
   Lives at: /assets/css/pwa-install.css
   .pwa-install-bar   - desktop-only, sits next to the hero CTA buttons
   .pwa-modal-overlay - popup opened by the nav "Download App" link
   Colors match home-marketing.css's --mk-ink / --mk-orange. */

/* ── Shared content styling (icon / text / button / fallback note) ─────── */
.pwa-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pwa-install-text h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.3;
}

.pwa-install-text p {
    margin: 3px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .68);
    line-height: 1.4;
}

.btn-pwa-install {
    display: inline-block !important;
    background: var(--mk-orange, #FF9D1A) !important;
    color: #1a1200 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 1 !important;
    box-shadow: none !important;
    transition: filter 0.15s ease;
}

.btn-pwa-install:hover {
    filter: brightness(1.08);
}

.pwa-fallback-note {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

/* ── Inline bar: desktop only, next to the hero CTA buttons ────────────── */
.pwa-install-bar {
    display: none; /* shown at 900px+ below, mirrors the hero's own breakpoint */
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    max-width: 480px;
}
.pwa-install-bar .pwa-install-text { flex: 1 1 200px; min-width: 0; }
.pwa-install-bar .pwa-fallback-note { flex: 1 1 100%; }

@media (min-width: 900px) {
    .pwa-install-bar { display: flex; flex-wrap: wrap; }
}

/* ── Popup modal, opened from the nav "Download App" link ──────────────── */
.pwa-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 20, .68);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pwa-modal-overlay.pwa-modal-open {
    display: flex;
}

.pwa-modal-card {
    position: relative;
    background: #0B1220;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.pwa-modal-card .pwa-install-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.pwa-modal-card .btn-pwa-install {
    width: 100%;
}

.pwa-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .6);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
.pwa-modal-close:hover {
    color: #ffffff;
}
