.styled-alert-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(8px);
}

.styled-alert-modal.is-open {
    display: flex;
    animation: styled-alert-fade-in 0.18s ease-out;
}

.styled-alert-backdrop {
    position: absolute;
    inset: 0;
}

.styled-alert-card {
    position: relative;
    width: min(92vw, 540px);
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--dark-gray);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.styled-alert-accent {
    position: absolute;
    top: 0;
    left: 0;
    height: 7px;
    width: 100%;
    background: var(--red);
    padding-bottom: 12px;
}
.styled-alert-body {
    padding: 24px 24px 12px;
}

.styled-alert-title {
    margin: 0 0 12px;
    font-family: var(--font);
    font-size: var(--font-size-lg, 1.9rem);
    font-weight: bold;
    color: var(--font-color);
}

.styled-alert-description {
    margin: 0;
    font-family: var(--font);
    font-size: var(--font-size-med, 1.05rem);
    line-height: 1.55;
    color: var(--font-color);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 52vh;
    overflow: auto;
}

.styled-alert-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 24px 24px;
    gap: var(--spacing-sm, 12px);
}

.styled-alert-button {
    margin: 0;
    padding: var(--spacing-sm) var(--spacing-sm);
    border-radius: var(--radius);
    color: var(--font-color);
    background-color: var(--gray);
    font-family: var(--font);
    font-size: var(--font-size-med);
    height: auto;
    border: none;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
}

.styled-alert-button:hover {
    background-color: var(--black);
    color: var(--black);
    border-radius: var(--radius);
}

.styled-alert-button:disabled {
    background-color: var(--gray-disabled);
    color: var(--font-color-disabled);
    cursor: not-allowed;
}

body.styled-alert-open {
    overflow: hidden;
}

@keyframes styled-alert-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .styled-alert-modal.is-open {
        animation: none;
    }
}