/* Custom Confirm Dialog Styling */

#custom-confirm-dialog {
    display: none;
    z-index: 1000;
    background-color: #fff;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: auto;
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;  
    transform: translateY(-50%);
}

#custom-confirm-dialog.active {
    display: block;
}

body:has(#custom-confirm-dialog.active) #dim-background {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    opacity: 0.7;
    z-index: 21;
}

#custom-confirm-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #F1F1F1;
}

#custom-confirm-title {
    margin: 0;
    font-family: "League Spartan", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1D1D1D;
    text-align: center;
}

#custom-confirm-body {
    padding: 20px 20px;
}

#custom-confirm-message {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #1D1D1D;
    text-align: center;
}

#custom-confirm-footer {
    padding: 10px 20px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#custom-confirm-confirm-btn {
    background-color: #9D0910;
    color: #fff;
}

#custom-confirm-confirm-btn:hover {
    background-color: #d90429;
}

@media (min-width: 600px) {
    #custom-confirm-dialog {
        width: 450px;
    }
}

@media (min-width: 1000px) {

    body:has(.desktop-nav-open) #custom-confirm-dialog {
        transform: translateY(-50%) translateX(127.5px); /* 127.5px is half of the width of the desktop nav when open (255px) */
    }

    body:has(.desktop-nav-closed) #custom-confirm-dialog {
        transform: translateY(-50%) translateX(27px); /* 27px is half of the width of the desktop nav when closed (54px) */
    }
}