.pwa-install-button {
    position: fixed;
    /* Drop below the status bar / notch on the immersive rider shell
       (viewport-fit=cover). env() is 0px wherever viewport-fit is unset,
       e.g. the driver app, so its placement never moves. */
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #16a34a;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
    cursor: pointer;
}

.pwa-install-icon {
    width: 12px;
    height: 14px;
    position: relative;
    border-bottom: 2px solid currentColor;
}

.pwa-install-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5px;
    width: 2px;
    height: 8px;
    background: currentColor;
}

.pwa-install-icon::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.pwa-install-dialog {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
}

.pwa-install-dialog[hidden], .pwa-install-button[hidden] { display: none; }

.pwa-install-panel {
    width: min(100%, 360px);
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.pwa-install-panel h2 { margin: 0 0 8px; font-size: 18px; }
.pwa-install-panel p { margin: 0 0 16px; line-height: 1.45; }

.pwa-install-close {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}