.confirm-modal {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    z-index: 9999;

    justify-content: center;

    align-items: center;
}


.confirm-modal.show {
    display: flex;
}


/* ========================================= */
/* MODAL CONTENT */
/* ========================================= */

.confirm-modal-content {
    width: 900px;

    max-width: 95%;

    height: 90vh;

    background: #fff;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    animation: fadeIn 0.25s ease;
}


/* ========================================= */
/* HEADER */
/* ========================================= */

.confirm-header {
    flex-shrink: 0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px;

    background: #8B0000;

    color: white;
}


/* ========================================= */
/* BODY */
/* ========================================= */

.confirm-body {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}


/* ========================================= */
/* TABLE */
/* ========================================= */

.confirm-body table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}


.confirm-body td {
    padding: 14px 10px;

    border-bottom: 1px solid #ddd;

    vertical-align: middle;
}


.confirm-body td:first-child {
    width: 300px;

    font-weight: 600;
}


.confirm-body td:last-child {
    text-align: left;

    padding-left: 80px;
}


/* ========================================= */
/* FOOTER */
/* ========================================= */

.confirm-footer {
    flex-shrink: 0;

    padding: 20px;

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 12px;

    background: #fff;
}


/* ========================================= */
/* BOTH BUTTONS */
/* SAME SIZE */
/* ========================================= */

.confirm-footer button {
    font-family: inherit;

    width: auto;

    height: 48px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid transparent;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;

    min-width: 110px;
}


/* ========================================= */
/* CONFIRM BUTTON */
/* ========================================= */

.btn-confirm {
    background:
        #990000;

    color: #fff;
}


.btn-confirm:hover {
    background: #7d0000;
}


.btn-confirm:active {
    transform: scale(0.97);
}


/* ========================================= */
/* EDIT BUTTON */
/* ========================================= */

#confirmModal .confirm-footer #editButton {
    background: #ffffff;

    color: #666666;

    border: 1px solid #dddddd;
}


#confirmModal .confirm-footer #editButton:hover {
    background: #fafafa;
    color: #292929;
    border-color: #bdbdbd;
}


#confirmModal .confirm-footer #editButton:active {
    transform: scale(0.97);
}


/* ========================================= */
/* BUTTON FOCUS */
/* ========================================= */

.confirm-footer button:focus {
    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(128, 0, 0, 0.12);
}


/* ========================================= */
/* CLOSE X */
/* ========================================= */

#closeConfirmModal {
    cursor: pointer;

    font-size: 28px;

    line-height: 1;
}


/* ========================================= */
/* MODAL ANIMATION */
/* ========================================= */

@keyframes fadeIn {

    from {
        opacity: 0;

        transform: scale(0.9);
    }

    to {
        opacity: 1;

        transform: scale(1);
    }

}


/* ========================================= */
/* TABLET */
/* ========================================= */

@media (max-width: 768px) {

    .confirm-modal-content {
        width: 95%;

        height: 92vh;
    }


    .confirm-body {
        padding: 16px;
    }


    .confirm-body td:first-child {
        width: 40%;
    }


    .confirm-body td:last-child {
        padding-left: 20px;
    }


    .confirm-footer {
        padding: 16px;

        gap: 12px;
    }


    .confirm-footer button {
        width: 110px;

        height: 46px;
    }

}


/* ========================================= */
/* MOBILE */
/* ========================================= */

@media (max-width: 480px) {

    .confirm-modal-content {
        width: 96%;

        height: 94vh;
    }


    .confirm-header {
        padding: 16px;
    }


    .confirm-header h2 {
        font-size: 18px;
    }


    .confirm-body {
        padding: 14px;
    }


    .confirm-body h3 {
        font-size: 16px;
    }


    .confirm-body table {
        table-layout: auto;
    }


    .confirm-body td {
        padding: 11px 6px;

        font-size: 13px;
    }


    .confirm-body td:first-child {
        width: 42%;
    }


    .confirm-body td:last-child {
        padding-left: 12px;
    }


    .confirm-footer {
        padding: 14px;

        gap: 10px;
    }


    .confirm-footer button {
        flex: 1;

        width: auto;

        height: 46px;

        font-size: 14px;
    }


    #closeConfirmModal {
        font-size: 26px;
    }

}