#collection_points_modal.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
}
#collection_points_modal.modal .close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
}
.pac-container {
    z-index: 80400!important;
}
#collection_points_modal .modal-content {
    position: absolute;
    background-color: #fefefe;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 1200px;
    height: 90%;
    overflow: scroll;
    max-width: 90%;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 40px;

    & .modal__title {
        text-align: center;
        font-size: 32px;
        font-weight: 700;
    }

    & .modal__info {
        font-size: 14px;
        height: 80%;
        text-align: center;
    }

    & .modal__button {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);

        & button {
            cursor: pointer;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            padding: 12px 24px;
            gap: 8px;
            background: #0066CC;
            border: 0 solid black;
            border-radius: 4px;
            font-style: normal;
            font-weight: 700;
            font-size: 16px;
            line-height: 24px;
            color: #FFFFFF;

            &:disabled {
                opacity: 0.6;
            }
        }
    }
}

#collection_points_modal .wrapper {
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 2fr;
    grid-template-rows: 50px 25px auto;
    grid-gap: 10px;
    grid-auto-rows: minmax(50%, auto);
}
#collection_points_modal .wrapper-no-filter {
    grid-template-rows: 50px 0 auto;
}
#collection_points_modal #search {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    gap: 20px;
}

#collection_points_modal #filters-area {
    grid-column: 1;
    grid-row: 2 / 3;
}
#collection_points_modal #results {
    grid-column: 1;
    grid-row: 3 / 3;
    overflow-y: scroll;
}
#collection_points_modal #results #relais-container {
    padding-right: 5px;
}
#collection_points_modal #geolocate-btn {
    border: 1px solid #0066CC;
    border-radius: 4px;
    background: white;
    min-width: 170px;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    text-align: right;
    color: #0066CC;
    box-sizing: border-box;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}
#collection_points_modal #filters {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #EDEDED;
    margin-bottom: 15px;
    padding-bottom: 15px;
    font-weight: 700;
}
#collection_points_modal #filters > div {
    margin-right: 15px;
}
#collection_points_modal #filters img {
    max-width: 22px;
    width: 22px;
    max-height: 22px;
    margin-right: 10px;
}

#collection_points_modal input[type="checkbox"] {
    display: none;
}

#collection_points_modal input[type="checkbox"] + label {
    display: flex;
    padding-left: 30px;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#collection_points_modal input[type="checkbox"] + label:before {
    content: '';
    display: block;
    width: 1rem;
    height: 1rem;
    border: 1px solid #000;
    position: absolute;
    left: .3125rem;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transition: all .12s, border-color .08s;
    transition: all .12s, border-color .08s;
}

#collection_points_modal input[type="checkbox"]:checked + label:before {
    width: .625rem;
    top: calc(50% - .625rem);
    left: .5rem;
    border-radius: 0;
    border-top-color: transparent;
    border-left-color: transparent;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

#collection_points_modal #map {
    grid-column: 2 / -1;
    grid-row: 1 / 4;
}

#collection_points_modal .d-none {
    display: none!important;
}
#collection_points_modal .d-mobile {
    display: none;
}
#collection_points_modal .collection-point-tabs {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2px;
    width: 100%;
    height: 44px;
    background: #EDEDED;
    border-radius: 100px;
}

#collection_points_modal .collection-point-tabs .tab-elt {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    border-radius: 100px;
    width: 50%;
    font-weight: bold;
    background: #EDEDED;
    color: #989898;
    cursor: pointer;
}
#collection_points_modal .collection-point-tabs .tab-elt.active {
    background: #FFFFFF;
    color: #000;
}


@media (max-width: 800px) {
    #collection_points_modal .modal-content {
        padding: 15px;
        gap: 15px;
        min-height: unset;
    }
    #collection_points_modal .modal__button button {
        font-size: 14px !important;
        width: 100%;
        justify-content: center;
    }
    #collection_points_modal .d-mobile {
        display: block;
    }
    #collection_points_modal .d-mobile-none {
        display: none!important;
    }
    #collection_points_modal .modal-content {
        height: 95vh;
    }
    #collection_points_modal .wrapper {
        grid-template-rows: 45px 100px auto 110px;
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }
    #collection_points_modal .wrapper-no-filter {
        grid-template-rows: 45px 45px auto 110px;
    }
    #collection_points_modal #search {
        grid-column: 1;
        grid-row: 1;
    }
    #collection_points_modal #map {
        grid-column: 1;
        grid-row: 3;
    }
    .map-selected-collection-point {
        grid-column: 1;
        grid-row: 4;
    }
    .map-selected-collection-point .schedule-toggler, .map-selected-collection-point .schedule-collapse {
        display: none!important;
    }
    #collection_points_modal #filters-area {
        grid-column: 1;
        grid-row: 2;
    }
    #collection_points_modal #results {
        grid-column: 1;
        grid-row: 3 / 5;
    }
    #collection_points_modal #geolocate-btn {
        min-width: unset;
        height: 34px;
        width: 34px;
        padding: 6px;
    }
    #collection_points_modal #geolocate-btn svg {
        width: 20px;
        height: 20px;
    }
    #collection_points_modal #geolocate-btn span {
        display: none;
    }
    #collection_points_modal #filters {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
}

@supports (height: 95dvh) {
    @media (max-width: 800px) {
        #collection_points_modal .modal-content {
            height: 95dvh;
        }
    }
}

.collection-point-elt {
    width: 100%;
    display: flex;
    padding: 12px 16px;
    border: 1px solid #EDEDED;
    margin-top: 15px;
    text-align: left;
    border-radius: 4px;
}
.collection-point-elt.selected {
    border: 1px solid #0066CC;
}

.collection-point-elt .collection-point-name {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 19px;
    color: #181A22;
    margin-bottom: 5px;
}
.collection-point-elt .collection-point-name img{
    max-width: 22px;
    max-height: 22px;
    margin-right: 10px;
}

.collection-point-elt  .collection-point-infos {
    width: 100%;
}
.collection-point-elt .collection-point-address {
    margin: 0;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #181A22;
}
.collection-point-elt .collection-point-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.collection-point-elt .schedule-toggler {
    font-style: italic;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #BDBDBD;
    border: 0;
    background: none;
    padding-left: 0;
    margin-top: 5px;
    cursor: pointer;
}
.collection-point-elt .schedule-toggler:after {
    content: '˅';
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    margin-left: 8px;
}
.collection-point-elt .schedule-toggler.toggled:after {
    transform: rotate(-180deg);
}
.collection-point-elt .schedule-collapse {
    font-style: italic;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #BDBDBD;
    flex: none;
    flex-grow: 0;
}

#collection_points_modal input[type=radio] {
    -webkit-appearance: radio;
    display: block;
}
#collection_points_modal label input[type=radio]:checked +  * {
    border: 1px solid #0066CC;
}

.collection-point-select {
    width: 100%;
    border-top: 1px solid #ccc;
    margin-top: 20px;
    padding: 20px;
}
.collection-point-select .collection-point-blue-btn {
    box-sizing: border-box;
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    width: 100%;
    border: 1px solid #0066CC;
    border-radius: 4px;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #0066CC;
    cursor: pointer;
}
