/*
 * Bottom cards that invite phone visitors to install the site as an app, and installed-app
 * users to set up push notifications. Markup and logic: templates/components/pwa_prompts.html.
 */
.fm-prompt {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 1070;
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid #374151;
    border-radius: 1rem;
    background: #111827;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    color: #e5e7eb;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 200ms ease, transform 200ms ease;
}

.fm-prompt[hidden] {
    display: none;
}

.fm-prompt.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 500px) {
    html.fm-standalone body.fm-has-bottom-nav .fm-prompt {
        bottom: calc(var(--fm-bottom-nav-height, 3.5rem) + env(safe-area-inset-bottom, 0px) + 0.75rem);
    }
}

.fm-prompt__close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: none;
    color: #9ca3af;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.fm-prompt__head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-right: 1.5rem;
}

.fm-prompt__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

.fm-prompt .fm-prompt__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: normal;
    color: #fff;
}

.fm-prompt__text {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #9ca3af;
}

.fm-prompt__steps {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    list-style: decimal;
    border-radius: 0.6rem;
    background: #1f2937;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #e5e7eb;
}

.fm-prompt__steps[hidden],
.fm-prompt__actions[hidden] {
    display: none;
}

.fm-prompt__steps li + li {
    margin-top: 0.4rem;
}

.fm-prompt__inline-icon {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0 0.1rem;
    vertical-align: -0.2rem;
    color: #60a5fa;
}

.fm-prompt__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.fm-prompt__primary,
.fm-prompt__secondary {
    flex: 1 1 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.fm-prompt__primary {
    border: 0;
    background: #f97316;
    color: #fff;
}

.fm-prompt__secondary {
    border: 1px solid #4b5563;
    background: transparent;
    color: #d1d5db;
}
