.mm-map-conditions :is(.mm-map-endpoint-card, .mm-map-route-card) {
    border-radius: 20px;
    box-shadow: 0 4px 12px #0002;
}
.mm-map-conditions :is(.mm-map-endpoint-card, .mm-map-route-card) .mm-map-card-close {
    top: 6px; right: 4px; width: 48px; height: 48px; color: #3c3c43; background: transparent; border: 0;
}
.mm-map-conditions .mm-map-endpoints { font-weight: 600; }
.mm-map-conditions [data-endpoint-value] { color: inherit; }
.mm-map-conditions .mm-map-panel.mm-map-route-card { padding: 16px 22px 0; }
.mm-map-conditions .mm-map-route-summary { font-size: 14px; line-height: 20px; }
.mm-map-route-itinerary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mm-map-route-view {
    flex: none; min-height: 44px; padding: 0 4px; border: 0; background: transparent;
    color: #0758b0; font: inherit; font-size: 14px; cursor: pointer;
}
.mm-map-route-view:hover { text-decoration: underline; }
.mm-map-condition-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    border-top: 1px solid #11182017; min-height: 50px; gap: 0 8px;
}
.mm-map-endpoint-card .mm-map-condition-bar { margin: 0 22px; }
.mm-map-condition-bar .mm-map-route-pager { margin: 0 0 0 auto; border: 0; gap: 0; color: #252830; }
.mm-condition-trigger {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; max-width: 100%;
    text-align: start; border: 0; padding: 2px 0; background: transparent; color: #24282e;
    font-size: 14px; font-weight: 600; line-height: 1.45;
}
.mm-condition-trigger img { flex: none; }
.mm-condition-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.mm-condition-copy small { color: #525d6b; font-weight: 400; white-space: nowrap; }
.mm-map-condition-bar:has(.mm-map-route-pager:not([hidden])) .mm-condition-trigger { flex: 1 1 9em; }
.mm-condition-trigger:hover, .mm-map-conditions button.mm-map-endpoint:hover { color: #0758b0; }
#map-conditions { width: min(396px, calc(100% - 28px)); padding: 20px 22px; }
html:has(#map-conditions) { scrollbar-gutter: stable; }
#map-conditions header, #map-conditions footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#map-conditions h2 { font-size: 20px; margin: 0; }
#map-conditions header button { border: 0; }
#map-conditions fieldset { min-width: 0; padding: 0; margin: 14px 0; border: 0; }
#map-conditions legend, .mm-condition-date > span {
    float: none; width: auto; margin: 0 0 6px; display: block; font-size: 14px; font-weight: 600;
}
.mm-condition-options { display: flex; flex-wrap: wrap; gap: 4px; }
.mm-condition-options label { position: relative; flex: 1 1 auto; }
.mm-condition-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mm-condition-options span, #map-conditions footer button {
    display: grid; place-items: center; min-height: 44px; padding: 6px 8px;
    border: 1px solid #d8dfe6; border-radius: 9px; background: #fff; color: #25354b;
    font: inherit; cursor: pointer;
}
.mm-condition-options input:checked + span { color: #064da4; border-color: #2773c7; background: #eef5ff; font-weight: 600; }
.mm-condition-options input:focus-visible + span { outline: 2px solid #1765bd; outline-offset: 1px; }
.mm-condition-date { display: block; }
.mm-condition-date input { width: 100%; min-height: 46px; border: 1px solid #b4bfca; border-radius: 9px; padding: 6px 10px; background: #fff; color: inherit; }
#map-conditions footer { border-top: 1px solid #e2e7ec; padding-top: 14px; }
#map-conditions footer button { flex: 1; font-weight: 600; }
#map-conditions footer button[type="submit"] { background: #0758b0; color: #fff; border-color: #0758b0; }
