.confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    box-sizing: border-box;

    /* make sure it sits above Bootstrap widgets (modals ~1055) */
    z-index: 12000;
    /* or higher if needed */

    opacity: 0;
    animation-name: confirm---open;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;

    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm--close {
    animation-name: confirm---close;
}

.confirm__window {
    width: 100%;
    z-index: 12001;
    max-width: 400px;
    background: white;
    font-size: 14px;
    font-family: verdana;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);

    opacity: 0;
    transform: scale(0.75);
    animation-name: confirm__window---open;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
    animation-delay: 0.2s;
}

.confirm__titlebar {
    padding: 1em;
}

.confirm__content,
.confirm__buttons {
    padding: 1.5em;
}

.confirm__titlebar {
    background: var(--color_primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.confirm__title {
    font-weight: bold;
    font-size: 1.1em;
}

.confirm__content {
    line-height: 1.8em;
}

.confirm__buttons {
    background: #eeeeee;
    display: flex;
    justify-content: center;
}

.confirm__button {
    margin: 0 5px !important;
    padding: 0.4em 0.8em !important;
    border: 2px solid var(--color_secondary);
    border-radius: 5px;
    background: #ffffff;
    color: var(--color_secondary);
    font-weight: bold;
    font-size: 1.1em;
    font-family: verdana;
    cursor: pointer;
    outline: none;
}

.confirm__button:hover {
    background: var(--color_secondary);
    color: #ffffff;
}

.confirm__button:focus {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.confirm__icon {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    font-size: 1.5rem;
    /* Adjust the size as needed */
    color: var(--primary-color);
    /* Adjust to match your theme */
}


@keyframes confirm---open {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes confirm---close {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes confirm__window---open {
    to {
        opacity: 1;
        transform: scale(1);
    }
}