/* Overlay for darkening the background */
#custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997 !important;
    display: none;
}

#custom-confirm-wrapper {
    display: none;
    z-index: 998 !important;
    position: fixed;
    flex-direction: column;
    min-width: 280px;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    background: var(--jf-theme-slide-up-card-background-color, #18151f);
    overflow: hidden;
}

#custom-confirm-wrapper .custom-confirm-header {
    background: var(--jf-theme-primary-color, #31304b);
    padding: 16px 20px;
    border-bottom: 1px solid var(--jf-theme-separator-color, rgba(212, 182, 255, 0.4));
}

#custom-confirm-wrapper .custom-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--jf-theme-primary-text-color, #fff);
    margin: 0;
}

#custom-confirm-wrapper .custom-confirm-body {
    background: var(--jf-theme-slide-up-card-background-color, #18151f);
    padding: 20px;
}

#custom-confirm-wrapper .custom-confirm-message {
    font-size: 15px;
    font-weight: 400;
    color: var(--jf-theme-primary-text-color, #fff);
    opacity: 0.9;
    line-height: 1.5;
}

#custom-confirm-wrapper .custom-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

#custom-confirm-wrapper .confirm-btn {
    background: var(--bs-danger, #dc3545);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

#custom-confirm-wrapper .confirm-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

#custom-confirm-wrapper .cancel-btn {
    background: transparent;
    border: 1px solid var(--jf-theme-primary-lighter-color, #d4b6ff);
    color: var(--jf-theme-primary-lighter-color, #d4b6ff);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

#custom-confirm-wrapper .cancel-btn:hover {
    background: rgba(212, 182, 255, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 1080px) {
    #custom-confirm-wrapper {
        max-width: calc(100% - 40px);
        min-width: 280px;
    }
}

@media (min-width: 1081px) {
    #custom-confirm-wrapper {
        max-width: 400px;
        min-width: 320px;
    }
}
