/* MODALE RELAIS */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 960px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* BOUTON FERMETURE */
.modal .close {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal .close:hover {
    color: #000;
}

/* CONTENU INTERNE */
#relais_conteneur {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* LISTE DE POINTS RELAIS */
#relais_liste {
    flex: 1 1 320px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    background-color: #f9f9f9;
}

.point_relais {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.7rem;
    margin-bottom: 0.6rem;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.point_relais:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
}

.point_relais.selected {
    border: 2px solid #0077cc;
    background-color: #eaf4ff;
}

.point_relais h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.point_relais span {
    font-size: 0.9rem;
    color: #555;
}

.readonly-field {
    background-color: #d8d8d8;
    cursor: not-allowed;
    pointer-events: none; 
}

.shipping-method.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* CARTE */
#map {
    flex: 1 1 400px;
    min-height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1rem;
    }

    #relais_conteneur {
        flex-direction: column;
    }

    #map {
        height: 300px;
    }
}
