/*!
 * This file is part of con4gis, the gis-kit for Contao CMS.
 * @package con4gis
 * @version 8
 * @author con4gis contributors (see "authors.txt")
 * @license LGPL-3.0-or-later
 * @copyright (c) 2010-2022, by Küstenschmiede GmbH Software & Design
 * @link https://www.con4gis.org
 */

.route-features-list-wrapper {
    list-style-type: none;
    padding: 0;
}

.c4g-routing-layer-values > button {
    min-width: 30%;
    width: auto !important;
}

.c4g-router-layers-selection {
    background-color: rgba(24, 61, 93, .8);
    background-color: var(--main-color);
    color: rgba(255, 255, 255, .9);
    color: var(--font-color);
    width: 100%;
}

.route-features-list-element > div {
    border-top: 1px solid;
}

.c4g-routing-toggle {
    display: block;
    width: 100%;
    height: 14px;
    margin: 0;
    -webkit-appearance: none;
    outline: none;
}
#c4g-router-button-route.c4g-active {
    color: var(--font-color);
    background-color: var(--shadow-color);
}
#c4g-router-button-route.c4g-inactive {
    color: var(--main-color);
    background-color: var(--font-color);
}
#c4g-router-button-route:before {
    content: "\f4d7";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
#c4g-router-button-area.c4g-active {
    color: var(--font-color);
    background-color: var(--shadow-color);
}
#c4g-router-button-area.c4g-inactive {
    color: var(--main-color);
    background-color: var(--font-color);
}

#c4g-router-button-area:before {
    content: "\f5a0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
.c4g-routing-toggle::-webkit-slider-runnable-track {
    position: relative;
    height: 12px;
    border-radius: 0%;
    border-radius: var(--button-radius-percent);
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
}

.c4g-routing-toggle::-moz-range-track {
    position: relative;
    height: 12px;
    border-radius: 0%;
    border-radius: var(--button-radius-percent);
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
}

.c4g-routing-toggle::-ms-track {
    position: relative;
    height: 12px;
    border-radius: 0%;
    border-radius: var(--button-radius-percent);
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
}

.c4g-routing-toggle::-webkit-slider-thumb {
    position: relative;
    top: -5px;
    width: 50px;
    height: 24px;
    border: 1px solid rgba(0, 155, 222, .5);
    border: 1px solid var(--shadow-color);
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
    box-shadow: inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25);
    border-radius: 0%;
    border-radius: var(--button-radius-percent);
    cursor: pointer;
}

.c4g-routing-toggle::-moz-range-thumb {
    position: relative;
    top: -5px;
    width: 50px;
    height: 24px;
    border: 1px solid rgba(0, 155, 222, .5);
    border: 1px solid var(--shadow-color);
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
    box-shadow: inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25);
    border-radius: 0%;
    border-radius: var(--button-radius-percent);
    cursor: pointer;
}

.c4g-routing-toggle::-ms-thumb {
    position: relative;
    top: -5px;
    width: 50px;
    height: 24px;
    border: 1px solid rgba(0, 155, 222, .5);
    border: 1px solid var(--shadow-color);
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
    box-shadow: inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25);
    border-radius: 0%;
    border-radius: var(--button-radius-percent);
    cursor: pointer;
}

.c4g-router-instructions-wrapper {
    display: none;
}

.c4g-routing-output {
    position: relative;
    pointer-events: none;
    top: -16.75px;
    display: inline-block;
    transform: translateX(-50%);
    width: auto;
    color: rgba(24, 61, 93, .8);
    color: var(--main-color);
    background-color: rgba(0, 0, 0, 0);
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
}

.c4g-routing-toggle + output {
    display: block;
    transform: translateX(-50%);
}

.c4g-routing-layer-values {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
}

.c4g-routing-error {
    position: absolute;
    display: inline-block;
    white-space: nowrap;
    padding: 20px 10px 20px;
    z-index: 40;
    left: 100%;
    background-color: rgba(24, 61, 93, .8) !important;
    background-color: var(--main-color) !important;
    border-radius: 0%;
    border-radius: var(--button-radius-percent);
}

.c4g-routing-error label {
    display: inline-block;
    white-space: nowrap;
    float: left;

    overflow: visible;
    top: 20px;
    margin: 1px;
}

.c4g-routing-error button {
    display: inline-block;
    white-space: nowrap;
    margin: 5px;
    float: left;
}

button.c4g-area-search:before {
    content: "\f5a0";
}

button#c4g-router-button-instructions:before {
    content: "\f4d7";
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
}

.route-features-list-element.c4g-active > div {
    background-color: rgba(0, 155, 222, .5);
    background-color: var(--shadow-color);
}

.router-content-switcher button {
    width: 48% !important;
    margin-bottom: 20px !important;
}

.router-content-switcher {
    display: none;
}

.c4g-routing-layer-values > .c4g-active {
    color: rgba(24, 61, 93, .8) !important;
    color: var(--main-color) !important;
    background-color: rgba(255, 255, 255, .9) !important;
    background-color: var(--font-color) !important;
}

.c4g-area-search-start {
    width: auto !important;
}

.c4g-route-search-start {
    width: auto !important;
}

.c4g-router-instruction-table td {
    min-width: 20px;
}

.c4g-router.c4g-portside-control button:before {
    content: "R";
}

/*
.c4g-router-header {
    width: calc(100% - .6em - 23px);
    padding: 0 .2em;
    line-height: 35px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    -webkit-text-fill-color: white;
}*/

.c4g-popup-route-wrapper {
    white-space: nowrap;
    margin-top: 8px;
}

div.area .c4g-router-input-wrapper > div {
    width: calc(100% - 40px);
}

.c4g-router-input-wrapper > div:not(.buttonbar) {
    display: inline-block;
    max-width: calc(100% - .4em);
    padding: .2em;
}

.c4g-router-profile-wrapper {
    display: block;
    margin-top: .2em;
}

.c4g-router-profile-wrapper button.c4g-inactive {
    cursor: pointer;
}

.c4g-router-layer-value-selection {
    float: right;
    width: 100px;
}

button.c4g-router-profile-car.c4g-active {
    cursor: pointer;
}

.c4g-router-layer-value-selection button:not(.c4g-active) {
    color: var(--main-color);
    background-color: var(--font-color);
}

.c4g-router-layer-value-selection button {
    padding: 5px 10px;
    border: none;
    outline: none;
    cursor: pointer;
}

.c4g-router-layer-value-selection button:last-child {
    margin-bottom: 10px;
}
select.c4g-detour-selection,
select.c4g-router-layer-selection {
    display: inline-block;
    padding: .2em .4em;
    border: none;
    outline: none;
    background-color: var(--font-color);
    color: var(--main-color);
    margin: .4em 0;
    margin-right: 5px;
    vertical-align: text-bottom;
}

select.c4g-router-layer-selection + div {
    display: inline-block;
    width: 100%;
}

.c4g-router-input-content > input {
    box-sizing: border-box;
    padding: 5px;
    margin: 2px;
    min-width: 141px;
    height: 32px;
}

.c4g-router-input-content > label {
    margin-right: 5px;
    vertical-align: middle;
    margin-top: auto;
    margin-bottom: auto;
    min-width: 40px;
}

.c4g-router-buttonbar {
    text-align: left;
}

.c4g-router-buttonbar button {
    border-radius: 0%;
    border-radius: var(--button-radius-percent);
}

.c4g-router-instructions-header {
    display: inline-block;
    margin-bottom: .2em;
}

.c4g-router-instructions-header > em {
    float: right;
    font-weight: normal;
}

.c4g-router-instruction-table td {
    padding: 5px;
}

.c4g-router-attribution-wrapper {
    font-size: 9px;
    line-height: 18px;
    text-align: center;
}

/*button.c4g-popup-route-from,*/
/*button.c4g-popup-route-to,*/
/*.c4g_brick_popup_button a {*/
/*    border: 1px solid;*/
/*    padding: 6px 10px;*/
/*    cursor: pointer;*/
/*    outline: none;*/
/*}*/

/*button.c4g-popup-route-from {*/
/*    border-right: 0;*/
/*    border-radius: 3px 0 0 3px;*/
/*}*/
/*button.c4g-popup-route-to {*/
/*    border-radius: 0 3px 3px 0;*/
/*}*/
.c4g-router-profile-wrapper .c4g-active ul {
    /*border-radius: var(--button-radius-pixel);*/
    border: 2px solid;
}

.c4g-content-select input, .c4g-portside-top-toolbar select, .c4g-portside-top-toolbar input, .c4g-portside-top-toolbar button, .c4g-router-input-wrapper button, .c4g-router-input-wrapper input {
    color: rgba(24, 61, 93, .8);
    color: var(--main-color);
    border-color: rgba(0, 155, 222, .5);
    border-color: var(--shadow-color);
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
}

.c4g-router-profile-wrapper button.c4g-inactive {
    color: var(--main-color);
    background-color: var(--font-color);
}

.c4g-router-switcher > button {
    color: var(--main-color);
    background-color: var(--font-color);
}

.c4g-router-switcher button.c4g-inactive {
    color: var(--main-color);
    background-color: var(--font-color);
}

.c4g-router-switcher button.c4g-active {
    color: var(--font-color);
    background-color: var(--shadow-color);
}

.c4g-router-profile-wrapper .c4g-active ul {
    color: rgba(24, 61, 93, .8);
    color: var(--main-color);
}

.c4g-router-profile-wrapper .c4g-active button {
    color: rgba(0, 155, 222, .5);
    color: var(--font-color);
    background-color: var(--main-color);
}

.c4g-router-profile-wrapper span.c4g-active ul {
    border-color: rgba(0, 155, 222, .5);
    border-color: var(--shadow-color);
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
    padding: 2px;
}

.c4g-router-profile-wrapper span.c4g-active ul li {
    color: rgba(24, 61, 93, .8);
    color: var(--main-color);
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
    padding: 2px;
}

.c4g-router-profile-wrapper span.c4g-active ul li::before {
    padding: 2px;
}

.c4g-router-profile-wrapper span.c4g-active ul li.c4g-active {
    color: rgba(0, 155, 222, .5);
    color: var(--shadow-color);
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
}

.c4g-router-input-wrapper {
    color: rgba(255, 255, 255, .9);
    color: var(--font-color);
}

.c4g-router-instruction-table {
    color: rgba(255, 255, 255, .9);
    color: var(--font-color);
}

.c4g-router-instruction-table img {
    background-color: rgba(255, 255, 255, .9);
    background-color: var(--font-color);
}

.c4g-router-instruction-table td {
    border-color: rgba(24, 61, 93, .8);
    border-color: var(--main-color);
}

.c4g-router-attribution-wrapper {
    color: rgba(255, 255, 255, .9);
    color: var(--font-color);
}

.c4g-router-attribution-wrapper a {
    color: rgba(255, 255, 255, .9);
    color: var(--font-color);
}

.c4g-router.c4g-open > button:before {
    content: "\f4d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-print:before {
    content: "\f02f";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}
button.c4g-router-editor:before {
    content: "\f303";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}
button.c4g-router-download:before {
    content: "\f019";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-car:before {
    content: "\f1b9";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-hgv:before {
    content: "\f0d1";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-bike:before {
    content: "\f206";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-mountainbike:before {
    content: "\f206";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-roadbike:before {
    content: "\f206";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-foot:before {
    content: "\f554";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-wander:before {
    content: "\f554";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-wheelchair:before {
    content: "\f193";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-scooter:before {
    content: "\f21c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-profile-motorbike:before {
    content: "\f21c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

span.c4g-active ul {
    display: none;
    position: absolute;
    z-index: 1;
}

span.c4g-active:hover ul {
    display: inline;
}

button.c4g-router-hide-form-button:before {
    content: "\f085";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

button#c4g-router-button-feature:before {
    content: "\f0ca";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

button.c4g-router-switch:before {
    content: "\f0dc";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-router-over:before {
    content: "\f067";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

.c4g-router.c4g-close > button:before {
    content: "\f4d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-popup-route-from:before {
    content: "\f024";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}
button.c4g-popup-route-edit:before {
    content: "\f4d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

button.c4g-popup-route-to:before {
    content: "\f11e";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}
button.c4g-popup-route-download:before {
    content: "\f019";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

.route-features-list-element > div {
    padding: 10px 10px 15px;
}

.c4g-router-input-wrapper > label {
    width: 30%;
}

/**
Router panel
 */
.c4g-router-panel-button-top {
    left: 0;
    /*top: 0px;*/
    min-height: 36px;
}

.c4g-router-panel-button-top button:before {
    content: "\f4d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

.c4g-router-panel.c4g-open {

}

.c4g-router-mode-switch > button {
    color: var(--main-color);
    background-color: var(--font-color);
}

.c4g-router-input-wrapper input[type="search"] {
    padding: 3px 5px;
    height: 28px;
    max-width: 100%;
    margin-right: .2em;
}

.c4g-router-input-wrapper input[type="range"] {
    padding: 0px;
}


button.c4g-router-position:before, button.c4g-router-input-clear:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

button.c4g-router-position:before {
    content: "\f05b";
}

button.c4g-router-input-clear:before {
    content: "\f1f8";
}

.c4g-router-input-wrapper label {
    display: block;
    font-size: 20px;
}


/*
 * Router result container
 */
.c4g-router-result-container-button-bottom.c4g-open {
    left: calc(50% - 42px / 2);
    min-height: 36px;
}

.c4g-router-result-container-button-bottom.c4g-close {
    display: none;
}

.c4g-router-result-container-button-bottom button:before {
    content: "\f03a";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: inherit;
}

.c4g-router-result-container {
    width: 100%;
    transition: all 0.3s;
    max-height: calc(var(--map-height) - .4em - ((32px + .4em) * 2));
    overflow-y: auto;
}
.c4g-external-router-results-container > .c4g-router-result-container {
    width: 100%;
    transition: all 0.3s;
    max-height: var(--map-height);
    overflow-y: auto;
    overflow-x: hidden;
}
.c4g-external-router-results-container {
    height: var(--map-height);
}

    .c4g-router-content {
    width: calc(100% - .8em);
}

.c4g-router-result-container.c4g-close {
    height: max-content;
}

.c4g-router-mode-switch {
    float: right;
}

.c4g-router-panel.c4g-open .c4g-router-mode-switch {
    display: inline-block;
    width: 100px;
    float: right;
    padding: 28px 10px 45px;
    position: static;
}

.c4g-router-panel.c4g-open .c4g-router-input-wrapper {
    display: inline-block;
    width: 100%;
    max-height: calc(var(--map-height) - .4em - 36px);
    overflow-y: auto;
    overflow-x: hidden;
}

.c4g-router-content.c4g-close {
    display: none;
}

.c4g-route-feature-wrapper *:not(button) {
    color: var(--font-color);
}

.c4g-route-feature-wrapper ul {
    padding: 0;
}

.c4g-router-instruction > div {
    vertical-align: top;
    display: inline-block;
}

.c4g-router-result-container > div {
    padding: .4em .4em 0;
}

.c4g-router-result-container > div > div[class*=instruction] {
    padding: .2em 0;
}

.c4g-router-result-container > div > div[class*=instruction] > div:not(:last-child) {
    margin-right: .4em;
}

.c4g-router-result-container > div > div[class*=instruction] * {
    color: var(--font-color);
}

.c4g-router-instructions-header > div > em,
.c4g-router-instruction-distance {
    white-space: nowrap;
}

.c4g-router-instructions-header label {
    margin-right: 20px;
}

.c4g-router-panel.c4g-close {
    display: none;
}

.c4g-router-results-header.c4g-beach-header > span {
    font-size: 20px;
    line-height: 40px;
    padding-left: 10px;
}

.c4g-router-results-header.c4g-beach-header button {
    background: none;
    border: none;
    outline: none;
    width: 40px;
    height: 40px;
    font-size: 15px;
    color: var(--font-color);
    cursor: pointer;
}

.c4g-router-results-header.c4g-beach-header button:nth-child(2n + 1) {
    border-right: 1px solid var(--font-color);
}

button.c4g-router-extended-options:before, button.c4g-router-close:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

button.c4g-router-close:before {
    content: "\f00d";
}

button.c4g-router-extended-options {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    height: 28px;
    position: absolute;
    color: var(--font-color);
    font-size: 15px;

}

button.c4g-router-extended-options {
    right: 35px;
}

button.c4g-router-over, button.c4g-router-switch {
    height: 28px;
    width: 32px;
    border: none;
    outline: none;
    margin: .4em .2em 0 0;
    cursor: pointer;
}

button.c4g-router-over, button.c4g-router-switch {
    color: var(--main-color);
    background-color: var(--font-color);
}

.c4g-router-profile-wrapper button{
    width: 32px;
    height: 32px;
    border: none;
    outline: none;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.c4g-router-profile-wrapper button.c4g-active {
    color: var(--font-color);
    background-color: var(--shadow-color);
}
.c4g-router-profile-wrapper.c4g-popup {
    position: absolute;
    background: var(--main-color);
    max-width: 140px;
}

.c4g-router-profile-wrapper.c4g-popup > button.c4g-active {
    cursor: not-allowed;
}
.c4g-router-profile-wrapper.c4g-popup button {
    margin-right: 3px;
    margin-bottom: 3px;
}
.c4g-router-profile-wrapper.c4g-popup button:last-child {
    margin-right: 0;
}

.c4g-router-profile-wrapper.c4g-popup > button.c4g-titlebar-close {
    cursor: pointer;
    background: none;
    width: 16px;
    height: 16px;
    right: -12px;
    top: -9px;
    margin: 0;
    padding: 0;
    position: absolute;
    color: var(--font-color);
    font-size: 10px;
    background-color: var(--main-color);
}

.c4g-router-profile-wrapper.c4g-popup > button.c4g-titlebar-close:before {
    position: absolute;
    top: 2px;
    right: 4px;
}
.c4g-router-profile-wrapper.c4g-popup + .c4g-router-input-content {
    margin-top: 35px;
}
.c4g-router-input-from, .c4g-router-input-area {
    margin-top: 15px;
}

.c4g-router-input-content > div > label {
    display: block;
    width: 100%;
}

.c4g-router-input-content > div {
    display: inline-flex;
    flex-wrap: wrap;

    &.buttonbar {
        display: flex;
    }
}

.c4g-router-detour-range {
    width: 100%;
}


.c4g-router-layer-value-selection > button.c4g-active {
    color: var(--font-color);
    background: none;
}

.c4g-router-layer-value-selection > button.c4g-active {
    font-weight: bold;
    cursor: not-allowed;
}

.c4g-router-instruction {
    display: grid;
    grid-template-columns: 1fr 7fr 2fr;
    grid-template-rows: 1fr;
    gap: 0px 0px;
    grid-template-areas: "c4g-router-instruction-image c4g-router-instruction-text c4g-router-instruction-distance";
}

.c4g-router-instruction img {
    background: white;
    height: 32px;
}


div.invisible {
    display: none;
}

/**
begin new styling, ready to be reworked
 */

.c4g-router-container-right.c4g-close {
    right: -100%;
}

.c4g-router-container-right.c4g-open {
    right: 0;
}

/*scrollbar*/

.c4g-router-result-container::-webkit-scrollbar {
    width: .2em;
}

/* Track */
.c4g-router-result-container::-webkit-scrollbar-track {
    background: var(--main-color);
}

/* Handle */
.c4g-router-result-container::-webkit-scrollbar-thumb {
    background: var(--font-color);
}



.c4g-sideboard > div > div > span.c4g-router-headline {
    width: calc(100% - 1.2em - 32px - 32px);
}

.c4g-router-instructions-header {
    width: 100%;
    position: relative;
}

button.c4g-router-print,
button.c4g-router-download,
button.c4g-router-editor{
    width: 32px;
    height: 32px;
    border: none;
    outline: none;
    background: none;
    /*position: absolute;*/
    top: 0;
    right: 0;
    cursor: pointer;
}

button.c4g-router-print:active,
button.c4g-router-download:active,
button.c4g-router-editor:active {
    background-color: var(--font-color);
    color: var(--main-color) !important;
}

.route-features-list-element:not(:first-child) {
    padding-top: 70px;
    margin-top: -92px;
}

.c4g-sideboard > div > div[class*=header].c4g-routing {
    height: calc((32px + .4em) * 2);
}

.c4g-sideboard > div[class*=wrapper] > div[class*=header].c4g-routing + div[class*=content] {
    max-height: calc((var(--map-height) - .4em) - ((32px + .4em) * 2) - .4em);
}

.c4g-sideboard > div > div[class*=header].c4g-routing button[class*=route] {
    width: 32px;
    height: 32px;
    border: none;
    outline: none;
    vertical-align: top;
    background: var(--font-color);
    color: var(--main-color);
    cursor: pointer;
    position: absolute;
}

.c4g-sideboard > div div[class*=header] button[class*=route] * {
    color: var(--main-color);
    vertical-align: baseline;
}

.c4g-popup-route-wrapper button[class*=route] {
    width: 32px;
    height: 32px;
    border: none;
    outline: none;
    vertical-align: top;
    background: var(--font-color);
    color: var(--main-color) !important;
    cursor: pointer;
}

button.c4g-icon.c4g-popup-route-to,
button.c4g-icon.c4g-popup-route-edit {
    right: .2em;
}

button.c4g-icon.c4g-popup-route-from,
button.c4g-icon.c4g-popup-route-download {
    left: .2em;
}

.c4g-popup-header.c4g-routing .c4g-titlebar-close + div {
    padding: 0 .2em;
    text-align: center;
}

.c4g-sideboard > div > div[class*=header].c4g-routing span.c4g-route-title:before, .c4g-sideboard > div > div[class*=header].c4g-routing span.c4g-route-title:after {
    content: "\f30b";
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    margin: 0 30px;
}

.c4g-sideboard > div > div[class*=header].c4g-routing button[class*=route]:hover {
    border: 1px solid var(--shadow-color);
}

.c4g-popup-route-wrapper button[class*=route]:hover {
    border: 1px solid var(--shadow-color);
}
ul.c4g-autocomplete {
    background-color: var(--font-color);
    position: absolute;
    max-width: calc(100% - ((32px + .2em) * 2));
    z-index: 1;
    box-sizing: border-box;
}
.c4g-autocomplete-wrapper > input {
    min-height: 25px;
}
ul.c4g-autocomplete > li.c4g-autocomplete-item {
    border-style: solid;
    border-color: var(--shadow-color);
    color: var(--main-color) !important;
    cursor: pointer;
}