/* SHA Parking — PWA install prompt (login page)
 * Clean, non-blocking card consistent with the app design system.
 */

#pwa-install-root {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 0 16px 20px;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

#pwa-install-root.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pwa-install-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 14px;
    padding: 16px 16px 14px;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.25);
}

.pwa-install-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted, #6B7280);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pwa-install-close:hover {
    background: #F3F4F6;
    color: var(--text, #1F2937);
}

.pwa-install-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 26px;
}

.pwa-install-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.pwa-install-icon img {
    display: block;
    width: 44px;
    height: 44px;
}

.pwa-install-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #1F2937);
    line-height: 1.3;
}

.pwa-install-text {
    margin: 3px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted, #6B7280);
}

.pwa-install-actions {
    margin-top: 13px;
}

.pwa-install-actions .btn {
    width: 100%;
    border-radius: 10px;
}

/* Manual instructions panel (iOS / Android without native prompt) */
.pwa-install-steps {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--border, #E5E7EB);
}

.pwa-install-steps[hidden] {
    display: none;
}

.pwa-install-steps-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-green, #14532D);
    margin-bottom: 9px;
}

.pwa-install-steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwa-install-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text, #1F2937);
}

.pwa-step-num {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F0FDF4;
    color: #15803D;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #BBF7D0;
}

@media (max-width: 480px) {
    #pwa-install-root {
        padding: 0 12px 12px;
    }
}