/* Modal Fix CSS */

/* Fix for modal backdrop */
.modal-backdrop {
    z-index: 1040 !important;
}

/* Fix for modal */
.modal {
    z-index: 1050 !important;
}

/* Fix for modal dialog */
.modal-dialog {
    z-index: 1060 !important;
    pointer-events: auto !important;
}

/* Fix for modal content */
.modal-content {
    pointer-events: auto !important;
}

/* Fix for select2 in modals */
.select2-container {
    z-index: 1070 !important;
}

/* Last resort fix - hide backdrop completely */
.modal-backdrop {
    display: none !important;
}

/* Fix for body when modal is open */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Fix for address modals specifically */
#addAddressModal,
#editAddressModal,
#deleteAddressModal {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Fix for modal animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out !important;
    transform: translate(0, -50px) !important;
}

.modal.show .modal-dialog {
    transform: none !important;
}
