.message-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
}

.message-overlay[hidden] {
    display: none;
}

.message-box {
    width: 100%;
    max-width: 420px;
    padding: 22px;

    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.message-box h2 {
    margin: 0 0 16px;
    font-size: 19px;
}

#messageBoxText {
    margin-bottom: 24px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.message-box-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.message-box-buttons button.primary {
    color: white;
    background: #2878c8;
    border-color: #2878c8;
}

.message-box-buttons button.primary:hover {
    background: #1e65aa;
}