.messagebox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 1;
    transition: opacity .25s ease;
}

.messagebox-overlay.closing {
    opacity: 0;
}

.messagebox {
    background: #fff;
    position: fixed;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem #000;
    text-align: left;
    font-family: sans-serif;
    min-width: 300px;
    max-width: 70%;
    border: 0px;
}

.messagebox {
    animation: zoomIn 0.25s ease-out;
}

.messagebox.closing {
    animation: zoomOut 0.15s ease-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.messagebox button {
    margin: 0px;
    /* niente padding verticale: l'altezza è fissa (3.8rem, css/main.css) e con il padding
       il testo non ci starebbe e scivolerebbe verso il basso; così resta centrato */
    padding: 0 0.8rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    font-weight: bold;
}

.boxbuttons {
    padding-top: 1rem;
    display: flex;
    text-align: center;
    gap: 1rem;
}

.title-message {
    text-align: left;
    font-size: 2.3rem;
    font-weight: bold;
    padding-bottom: 1rem;
}

.content-message {
    font-size: 2rem;
    padding-bottom: 2rem;
}

.confirm-btn {
    background-color: #02920e;
    text-align: center;
    color: white;
    border: 1px solid #00000030 !important;
    border-radius: 0.4rem;
    font-size: var(--font-size-table);
    cursor: pointer;
    width: 100%;
}

/* .confirm-btn:focus {
    border: 1px solid #00000030 !important;
    outline: none;
} */

/* disabilitati: bordo sottile, altrimenti vale "button:disabled" di main.d564292e.css (2px) */
.confirm-btn:disabled,
.cancel-btn:disabled {
    background-color: #b9b9b9 !important;
    border: 1px solid #00000030 !important;
}

.cancel-btn {
    margin-top: 1rem;
    background-color: #dc3545;
    color: white;
    border: 1px solid #00000030 !important;
    border-radius: 0.4rem;
    font-size: var(--font-size-table);
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.confirm-btn:hover {
    background-color: #22a32c;
}

.cancel-btn:hover {
    background-color: #ff0019;
}

.messagebox ol {
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: my-awesome-counter;
}

.messagebox li {
    counter-increment: my-awesome-counter;
    margin: 1.0rem 0;
    padding: 5px;
    vertical-align: middle;
    border-radius: 0.4rem;
    cursor: pointer;
}

.messagebox li::before {
    content: counter(my-awesome-counter);
    background: #3f3f3f;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-block;
    line-height: 2.5rem;
    color: white;
    text-align: center;
    margin-right: 1.0rem;
}

.messagebox ol li:hover {
    background-color: var(--selected-color);
}

input,
textarea {
    box-sizing: border-box;
}

.messagebox .row {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}