/**
 *  @author    Alexandre DEBUSSCHÈRE <alexandre@kosmonaft.dev>
 *  @copyright 2021 Kosmonaft.dev
 *  @license   Commercial
 */

#mrmax-carrier-extra-content {
    border: 1px solid gainsboro;
    max-height: 50vh;
    overflow-y: scroll;
    /* Scrollbar Firefox */
    scrollbar-color: #eaeaea;
    scrollbar-width: 10px;
}

/* Scrollbar Chromium */
#mrmax-carrier-extra-content::-webkit-scrollbar {
    width: 10px;
}

#mrmax-carrier-extra-content::-webkit-scrollbar-track {
    background-color: #eaeaea;
    border-left: 1px solid #ccc;
}

#mrmax-carrier-extra-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
}

#mrmax-carrier-extra-content::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

#mrmax-carrier-extra-content .table-fixed {
    table-layout: fixed;
}

#mrmax-carrier-extra-content .btn-sm {
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

#mrmax_sumup_displayed {
    background-color: #f6f6f6;
    padding: 15px;
    margin-bottom: 1rem;
}

.row.carrier-extra-content:not([style*="display: none"]):not(:empty) {
    margin-bottom: 1rem;
}

@media (max-width: 990px) {
    .row.carrier-extra-content {
        margin-left: 0;
        margin-right: 0;
    }
}

.mrmax_pickup_block:not(:first-child) {
    border-top: 1px solid gainsboro;
}

.mrmax_pickup_block {
    padding: 15px;
}

.mrmax_pickup_block.selected {
    background-color: #f6f6f6;
}

.mrmax_pickup_block:last-child {
    border-bottom: 1px solid gainsboro;
}

.mrmax_pickup_block summary {
    cursor: pointer;
}

.mrmax_pickup_block button {
    float: right;
}

.mrmax_pickup_block table {
    margin-top: 1rem;
}

/* Widget */
.MR-Widget {
    width: 100% !important;
}

.MRW-Title {
    display: none !important;
}

.MR-Widget .MRW-Content {
    height: 100% !important;
}

.MRW-Search {
    padding-top: 20px !important;
}

.MRW-Container label {
    width: auto !important;
    margin-right: 5px !important;
}

.MRW-CityContainer input {
    min-width: 250px !important;
}

.MRW-RList {
    width: 30% !important;
    padding: 0 !important;
    margin-right: 10px !important;
}

.MR-Widget .PR-List-Item {
    padding: 5px 0 5px 10px !important;
    margin-bottom: 10px !important;
}

.MRW-Map {
    width: calc(70% - 10px) !important;
}

.MR-Widget.MR-Widget-Responsive {
    overflow: hidden !important;
}

.MR-Widget.MR-Widget-Responsive .MRW-ButtonContainer button:hover {
    background-color: #f6abb6 !important;
}

.MR-Widget.MR-Widget-Responsive .MRW-Results {
    height: calc(100% - 95px) !important;
}

#mrmax-widget-container-content {
    max-height: calc(100% - 40px) !important;
}

.MR-Widget.MR-Widget-Responsive .MRW-RList {
    max-height: none !important;
}

#mrmax-widget-container .MR-Widget svg.leaflet-attribution-flag {
    width: 12px !important;
    height: 8px !important;
}

.btn-mrmax {
    font-family: 'Montserrat', Verdana !important;
    font-weight: bold !important;
    background-color: #96154a !important;
    border: solid 1px #96154a !important;
    color: white !important;
    width: 100% !important;
    border-radius: 40px !important;
}

.btn-mrmax:hover {
    background-color: #f6abb6 !important;
}

/* Hide disabled relay on map and list */
div.leaflet-marker-icon:has(.marker-image[src$="pin_grey.png"]),
.PR-List-Item.PR-Disabled {
    display: none;
}

@media screen and (max-width: 700px) {
    .MR-Widget.MR-Widget-Responsive .MRW-Results {
        height: calc(100% - 111px) !important;
    }
}