.install-app-backdrop[hidden] {
    display: none !important;
}

.install-app-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    background: rgba(15, 23, 42, .34);
}

.install-app-dialog {
    position: relative;
    width: min(100%, 390px);
    padding: 24px;
    border: 1px solid rgba(22, 38, 67, .1);
    border-radius: 8px;
    background: #fff;
    color: #17243b;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .2);
    font-family: inherit;
    animation: install-app-in .2s ease-out both;
}

.install-app-brand {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding-right: 34px;
}

.install-app-brand img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 64px;
    object-fit: contain;
}

.install-app-title {
    margin: 18px 0 6px;
    color: #17243b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.install-app-copy,
.install-app-ios-help {
    margin: 0;
    color: #5b6678;
    font-size: 14px;
    line-height: 1.5;
}

.install-app-ios-help {
    margin-top: 12px;
    padding: 12px;
    border-left: 3px solid #2443b2;
    background: #f3f6ff;
}

.install-app-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #5b6678;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.install-app-close:hover,
.install-app-close:focus-visible {
    background: #f1f3f7;
    color: #17243b;
}

.install-app-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.install-app-actions button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #2443b2;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.install-app-primary {
    flex: 1;
    background: #2443b2;
    color: #fff;
}

.install-app-primary:hover,
.install-app-primary:focus-visible {
    background: #1b358f;
}

.install-app-secondary {
    background: #fff;
    color: #2443b2;
}

.install-app-secondary:hover,
.install-app-secondary:focus-visible {
    background: #f3f6ff;
}

.install-app-dialog button:focus-visible {
    outline: 3px solid rgba(36, 67, 178, .3);
    outline-offset: 2px;
}

@keyframes install-app-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .install-app-backdrop {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .install-app-dialog {
        width: 100%;
        max-width: none;
        padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 8px 8px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .install-app-dialog {
        animation: none;
    }
}