.map-suggestions {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    font: 13px Arial, sans-serif;
}

.map-suggestions .pac-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    white-space: normal;
    cursor: pointer;
    line-height: 1.4;
}

.map-suggestions .pac-item:hover,
.map-suggestions .pac-item-selected {
    background: #e9f2fc;
}

.map-suggestions-attribution,
.tt-menu .tt-dataset-locations > .powered-by-google-locations {
    box-sizing: content-box;
    height: 16px;
    width: auto;
    padding: 10px 10px 5px;
}

.map-suggestions-attribution {
    display: block;
    margin-inline-start: auto;
}

body.dark-mode :is(.map-suggestions-attribution, .powered-by-google-locations),
html[data-app-theme="dark"] :is(.map-suggestions-attribution, .powered-by-google-locations) {
    content: url("../images/icons/google-maps-attribution-white.svg");
    content: url("../images/icons/google-maps-attribution-white.svg") / "Google Maps";
}

body.dark-mode :is(.map-suggestions, .tt-menu:has(.powered-by-google-locations)),
html[data-app-theme="dark"] :is(.map-suggestions, .tt-menu:has(.powered-by-google-locations)) {
    background-color: var(--app-dark-surface, #22313e);
    border-color: var(--app-dark-border, #3a4e5e);
    color: var(--app-dark-text, #e6eef5);
}

body.dark-mode .map-suggestions .pac-item,
html[data-app-theme="dark"] .map-suggestions .pac-item {
    border-bottom-color: var(--app-dark-border, #3a4e5e);
}

body.dark-mode .map-suggestions :is(.pac-item:hover, .pac-item-selected),
html[data-app-theme="dark"] .map-suggestions :is(.pac-item:hover, .pac-item-selected) {
    background-color: var(--app-dark-primary-hover, #286b8e);
}

.map-location-search-attribution[hidden] {
    display: none !important;
}

.map-location-search-attribution {
    clear: both;
    display: block;
    margin-top: 4px;
    text-align: end;
    color: #5e5e5e;
    font: 400 12px Roboto, Arial, sans-serif;
    white-space: nowrap;
}

body.dark-mode .map-location-search-attribution,
html[data-app-theme="dark"] .map-location-search-attribution {
    color: #fff;
}

.eto-address-suggestion {
    display: block;
    margin: 6px 0;
    padding: 8px 10px;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 3px;
    background: rgba(127, 127, 127, .07);
    font-size: 13px;
    overflow-wrap: anywhere;
    text-align: start;
}

.eto-address-suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.eto-address-suggestion-actions .btn {
    white-space: normal;
}

.eto-address-suggestion-attribution {
    width: 68px;
    height: auto;
    margin-inline-start: auto;
}

body.dark-mode .eto-address-suggestion-attribution,
html[data-app-theme="dark"] .eto-address-suggestion-attribution {
    content: url("../images/icons/google-maps-attribution-white.svg");
    content: url("../images/icons/google-maps-attribution-white.svg") / "Google Maps";
}
