.phone-alert-host {
    position: fixed;
    z-index: 1200;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 28px));
    pointer-events: none;
}

.phone-alert-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.18);
    color: #111827;
    pointer-events: auto;
}

.phone-alert-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 16px;
    overflow: hidden;
    background: #dffbf6;
    color: #0f766e;
    font-size: 1.2rem;
}

.phone-alert-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-alert-icon img:not([hidden]) + i {
    display: none;
}

.phone-alert-copy {
    min-width: 0;
}

.phone-alert-copy p,
.phone-alert-copy strong,
.phone-alert-copy small {
    display: block;
    margin: 0;
}

.phone-alert-copy p {
    color: #0f766e;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.phone-alert-copy strong {
    overflow: hidden;
    margin-top: 3px;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-alert-copy small {
    margin-top: 2px;
    color: #64748b;
    font-weight: 700;
}

.phone-alert-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.phone-alert-actions button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 15px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.phone-alert-open {
    padding: 0 14px;
    background: linear-gradient(135deg, #34d5c5, #14b8a6);
    color: #08111f;
}

.phone-alert-reject {
    width: 42px;
    background: #fee2e2;
    color: #dc2626;
}

.notification-phone-alert-mode {
    display: grid;
    gap: 8px;
    color: #64748b;
    font-weight: 800;
}

.notification-phone-alert-mode select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-weight: 800;
    padding: 0 14px;
}

@media (max-width: 640px) {
    .phone-alert-host {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        left: max(12px, env(safe-area-inset-left));
        width: auto;
    }

    .phone-alert-card {
        grid-template-columns: 42px minmax(0, 1fr);
        border-radius: 18px;
    }

    .phone-alert-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .phone-alert-actions {
        grid-column: 1 / -1;
    }

    .phone-alert-open,
    .phone-alert-reject {
        flex: 1;
    }
}
