.vf-address-autocomplete-wrap {
    position: relative;
    width: 100%;
}

.vf-address-autocomplete-wrap > input {
    width: 100%;
}

.vfaa-hidden-coordinate,
[data-vfaa-hidden-coordinate="1"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.vf-geolocation-osm {
    display: grid;
    gap: .5rem;
    margin-top: .75rem;
    width: 100%;
}

.vf-geolocation-osm-search {
    width: 100%;
}

.vf-geolocation-osm-search-row {
    align-items: stretch;
    display: flex;
    gap: .5rem;
    position: relative;
    width: 100%;
}

.vf-geolocation-osm-search-row .vf-address-autocomplete-list {
    top: calc(100% + 2px);
}

.vf-geolocation-osm-search-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.vf-geolocation-osm-coordinate-row {
    align-items: end;
    display: grid;
    gap: .5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    width: 100%;
}

.vf-geolocation-osm-coordinate-field {
    display: grid;
    font-size: .875rem;
    gap: .25rem;
    margin: 0;
}

.vf-geolocation-osm-coordinate-button {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .vf-geolocation-osm-coordinate-row {
        grid-template-columns: 1fr;
    }
}

.vf-geolocation-osm-progress {
    background: var(--vfaa-progress-track, rgba(0, 0, 0, .08));
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.vf-geolocation-osm-progress span {
    background: linear-gradient(90deg, var(--vfaa-progress-color, var(--primary, #0d6efd)), var(--vfaa-progress-color-alt, #67d4ff), var(--vfaa-progress-color, var(--primary, #0d6efd)));
    border-radius: inherit;
    display: block;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity .15s ease, width .25s ease;
    width: 0;
}

.vf-geolocation-osm-progress.is-loading span {
    animation: vfaa-progress 1.05s linear infinite;
    left: -55%;
    opacity: 1;
    width: 55%;
}

.vf-geolocation-osm-progress.is-loading span::after {
    background: linear-gradient(90deg, var(--vfaa-progress-color-alt, #67d4ff), var(--vfaa-progress-color, var(--primary, #0d6efd)), var(--vfaa-progress-color-alt, #67d4ff));
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 125%;
    position: absolute;
    top: 0;
    width: 70%;
}

.vf-geolocation-osm-progress.is-ready span {
    animation: none;
    left: 0;
    opacity: 1;
    transition: width .25s ease;
    width: 100%;
}

@keyframes vfaa-progress {
    0% { left: -65%; }
    100% { left: 105%; }
}

.vf-geolocation-osm-locate {
    justify-self: start;
}

.vf-geolocation-osm-map {
    margin-top: 0;
    width: 100%;
}

.vf-address-autocomplete-status {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.vf-address-autocomplete-status[data-state] {
    clip: auto;
    height: auto;
    margin: .25rem 0 0;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
}

.vf-address-autocomplete-status[data-state="error"] {
    color: #b02a37;
}

.vf-address-autocomplete-status[data-state="ready"] {
    color: #146c43;
    font-size: .8rem;
}

.vf-address-autocomplete-list {
    background: var(--body-bg, #fff);
    border: 1px solid var(--border-color, #ced4da);
    border-radius: 0 0 .375rem .375rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    left: 0;
    list-style: none;
    margin: 0;
    max-height: 18rem;
    overflow-y: auto;
    padding: .25rem 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1050;
}

.vf-address-autocomplete-option {
    color: var(--body-color, #212529);
    cursor: pointer;
    padding: .5rem .75rem;
}

.vf-address-autocomplete-option:hover,
.vf-address-autocomplete-option[aria-selected="true"] {
    background: var(--primary, #0d6efd);
    color: #fff;
}

.vf-address-autocomplete-map {
    border: 1px solid var(--border-color, #ced4da);
    border-radius: .375rem;
    display: block;
    margin-top: .75rem;
    max-width: 100%;
    width: 100%;
}

.vf-address-autocomplete-map.leaflet-container {
    clear: both;
    box-sizing: border-box;
    min-height: 240px;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.vf-address-autocomplete-map.leaflet-container,
.vf-address-autocomplete-map.leaflet-container .leaflet-pane,
.vf-address-autocomplete-map.leaflet-container .leaflet-map-pane,
.vf-address-autocomplete-map.leaflet-container .leaflet-tile-pane,
.vf-address-autocomplete-map.leaflet-container .leaflet-overlay-pane,
.vf-address-autocomplete-map.leaflet-container .leaflet-marker-pane,
.vf-address-autocomplete-map.leaflet-container .leaflet-shadow-pane {
    max-width: none;
}

.vf-address-autocomplete-map.leaflet-container .leaflet-tile {
    height: 256px !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 256px !important;
}

.vf-address-autocomplete-map.leaflet-container img.leaflet-tile,
.vf-address-autocomplete-map.leaflet-container .leaflet-marker-icon,
.vf-address-autocomplete-map.leaflet-container .leaflet-marker-shadow {
    max-width: none !important;
}

.vf-address-autocomplete-map[hidden] {
    display: none;
}

.vf-address-map-picker {
    min-height: 240px;
    overflow: hidden;
    position: relative;
}

.vf-address-map-picker .leaflet-control-attribution {
    font-size: .7rem;
}

.vfaa-simple-map {
    background: #d7d7d7;
    cursor: grab;
    isolation: isolate;
    overflow: hidden;
    position: relative;
    touch-action: none;
    user-select: none;
}

.vfaa-simple-map:active {
    cursor: grabbing;
}

.vfaa-simple-map-tiles {
    inset: 0;
    overflow: hidden;
    position: absolute;
    z-index: 1;
}

.vfaa-simple-map-tile {
    height: 256px !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    position: absolute;
    width: 256px !important;
}

.vfaa-simple-map-marker {
    background: #d92323;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .45);
    cursor: default;
    height: 26px;
    margin-left: -13px;
    margin-top: -26px;
    padding: 0;
    position: absolute;
    transform: rotate(-45deg);
    width: 26px;
    z-index: 4;
}

.vfaa-simple-map-marker::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 7px;
    position: absolute;
    top: 7px;
    width: 8px;
}

.vfaa-simple-map-marker.is-draggable {
    cursor: grab;
}

.vfaa-simple-map-marker.is-draggable:active {
    cursor: grabbing;
}

.vfaa-simple-map-controls {
    display: grid;
    gap: 3px;
    left: 10px;
    position: absolute;
    top: 10px;
    z-index: 5;
}

.vfaa-simple-map-controls button {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .35);
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    color: #111;
    font-size: 20px;
    font-weight: 700;
    height: 32px;
    line-height: 1;
    padding: 0;
    width: 32px;
}

.vfaa-simple-map-attribution {
    background: rgba(255, 255, 255, .85);
    bottom: 0;
    color: #111;
    font-size: 11px;
    line-height: 1.3;
    padding: 2px 5px;
    position: absolute;
    right: 0;
    z-index: 5;
}

.vfaa-simple-map-attribution a {
    color: inherit;
}

.vf-address-map-picker-help {
    color: var(--body-color, #6c757d);
    display: block;
    font-size: .85rem;
    margin-top: .35rem;
}

.vf-address-autocomplete-attribution {
    clear: both;
    color: #fff;
    display: block;
    font-size: .75rem;
    margin-top: 1rem;
    text-align: center;
}

.vf-address-autocomplete-attribution a {
    color: inherit;
}
