.frontend-flash-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.frontend-flash-modal.is-open {
    display: block;
}

.frontend-flash-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
}

.frontend-flash-modal__dialog {
    position: relative;
    width: min(100% - 32px, 520px);
    margin: min(10vh, 80px) auto 0;
    padding: 28px 24px 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
    text-align: center;
    animation: frontendFlashModalIn 0.22s ease;
}

.frontend-flash-modal__dialog--success {
    border-top: 5px solid #10b981;
}

.frontend-flash-modal__dialog--error {
    border-top: 5px solid #ef4444;
}

.frontend-flash-modal__dialog--warning {
    border-top: 5px solid #f59e0b;
}

.frontend-flash-modal__dialog--info {
    border-top: 5px solid #0ea5e9;
}

.frontend-flash-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.frontend-flash-modal__close svg {
    width: 18px;
    height: 18px;
}

.frontend-flash-modal__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frontend-flash-modal__icon svg {
    width: 34px;
    height: 34px;
}

.frontend-flash-modal__icon--success {
    background: #ecfdf5;
    color: #10b981;
}

.frontend-flash-modal__icon--error {
    background: #fef2f2;
    color: #ef4444;
}

.frontend-flash-modal__icon--warning {
    background: #fffbeb;
    color: #f59e0b;
}

.frontend-flash-modal__icon--info {
    background: #eff6ff;
    color: #0ea5e9;
}

.frontend-flash-modal__title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.15;
}

.frontend-flash-modal__message {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.frontend-flash-modal__actions {
    margin-top: 22px;
}

.frontend-flash-modal__button {
    min-width: 140px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 100%);
    color: #ffffff;
    font-weight: 700;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
}

body.has-frontend-flash-modal {
    overflow: hidden;
}

@keyframes frontendFlashModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .frontend-flash-modal__dialog {
        width: min(100% - 20px, 520px);
        margin-top: 40px;
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .frontend-flash-modal__title {
        font-size: 24px;
    }

    .frontend-flash-modal__message {
        font-size: 15px;
    }
}