.vmr5-alert-overlay {
    align-items: center;
    background: rgba(0, 0, 0, 0.32);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    opacity: 0;
    padding: 16px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.16s ease;
    visibility: hidden;
    z-index: 11000;
}

.vmr5-alert-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.vmr5-alert-dialog {
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    color: #1f2933;
    max-width: 500px;
    min-width: 320px;
    overflow: hidden;
    position: relative;
    transform: translateY(8px);
    transition: transform 0.16s ease;
    width: 100%;
}

.vmr5-alert-overlay.is-visible .vmr5-alert-dialog {
    transform: translateY(0);
}

.vmr5-alert-accent {
    bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
    width: 5px;
}

.vmr5-alert-header {
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 16px 18px 8px 20px;
}

.vmr5-alert-icon {
    align-items: center;
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 28px;
    font-size: 13px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 1;
    text-transform: uppercase;
    width: 28px;
}

.vmr5-alert-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.vmr5-alert-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #5f6b7a;
    display: flex;
    font-size: 18px;
    height: 28px;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    width: 28px;
}

.vmr5-alert-close:hover,
.vmr5-alert-close:focus {
    background: #edf2f7;
    color: #1f2933;
    outline: none;
}

.vmr5-alert-message {
    font-size: 14px;
    line-height: 1.45;
    max-height: 50vh;
    overflow: auto;
    padding: 8px 20px 4px 58px;
    white-space: pre-wrap;
    word-break: break-word;
}

.vmr5-alert-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 14px 18px 16px 20px;
}

.vmr5-alert-cancel {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #334155;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    min-width: 72px;
    padding: 4px 12px;
}

.vmr5-alert-cancel:hover,
.vmr5-alert-cancel:focus {
    background: #edf2f7;
    border-color: #94a3b8;
    color: #1f2933;
}

.vmr5-alert-ok {
    background: #0077d3;
    border: 1px solid #0077d3;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    min-width: 72px;
    padding: 4px 12px;
}

.vmr5-alert-ok:hover,
.vmr5-alert-ok:focus {
    background: #0066b6;
    border-color: #0066b6;
}

.vmr5-alert-info .vmr5-alert-accent,
.vmr5-alert-info .vmr5-alert-icon {
    background: #0077d3;
}

.vmr5-alert-warning .vmr5-alert-accent,
.vmr5-alert-warning .vmr5-alert-icon {
    background: #b56b00;
}

.vmr5-alert-error .vmr5-alert-accent,
.vmr5-alert-error .vmr5-alert-icon {
    background: #c62828;
}

.vmr5-alert-success .vmr5-alert-accent,
.vmr5-alert-success .vmr5-alert-icon {
    background: #2f7d32;
}

@media (max-width: 480px) {
    .vmr5-alert-overlay {
        align-items: flex-start;
        padding-top: 56px;
    }

    .vmr5-alert-dialog {
        min-width: 0;
    }

    .vmr5-alert-message {
        padding-left: 20px;
    }
}
