/* Styles pour la popup */
.other-breadcrumbs {
    cursor: pointer;
}
.other-breadcrumbs span:hover {
    color: var(--awb-text-hover-color) !important;
}
.breadcrumb-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0; /* Commence totalement transparent */
    visibility: hidden; /* Cacher le modal initialement */
    transition: opacity 0.3s ease, visibility 0s ease 0.3s; /* Transition de l'opacité et de la visibilité */
}

.breadcrumb-modal.show {
    opacity: 1; /* Rendre le modal visible */
    visibility: visible; /* Rendre le modal visible */
    transition: opacity 0.3s ease, visibility 0s ease 0s; /* Transition sans délai pour visibility */
}

.breadcrumb-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 50%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.breadcrumb-modal-close {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 30px;
	height: 30px;
	background-color: #000;
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.breadcrumb-modal-close:hover,
.breadcrumb-modal-close:focus {
	background-color: #555;
}

.breadcrumb-modal-items {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto; /* Si la liste est trop longue, ajoute un défilement */
}

.breadcrumb-modal-items li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.breadcrumb-modal-items li:last-child {
    border-bottom: none;
}

/* Empêche le contenu derrière la popup d’être cliquable */
body.modal-open {
    overflow: hidden;
}
