.location-select-wrapper {
    color: black;
    position: relative;
}

.location-select-dropdown {
    position: absolute; top: 1.9rem;
    z-index: 1000;

    overflow-y: auto;
    overflow-x: hidden;

    width: 100%;
    max-height: 200px;
    padding: 0.5rem;

    border: 1px solid var(--beep-green);
    border-radius: 0 0 6px 6px;
    border-top: 0;

    background-color: var(--beep-lightgray);

    font-size: 14px;
}

.location-select-dropdown > div {
    padding: 5px 5px 9px 5px;
    cursor: pointer;
}

.location-select-dropdown > div:hover,
.location-select-dropdown > div.selected {
    background-color: var(--beep-green);
    color: var(--beep-white);
}

.location-select-fullscreen-holder {
    display: none;
}

@media screen and (max-width: 768px) {
    .location-select-fullscreen-holder {
        display: block;
        position: relative;
    }

    .location-select-fullscreen-wrapper {
        background-color: var(--beep-white);
        left: 0;
        position: fixed;
        top: 0;
        width: 100vw;
        height: 100vh;
        z-index: 120000;
        overflow: hidden;
        flex-direction: column;
        overscroll-behavior: contain;
        -webkit-tap-highlight-color: transparent;
    }

    .location-select-fullscreen-wrapper > .location-select-fullscreen-header {
        background-color: var(--beep-white);
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) 56px;
        flex: 0 0 auto;
        align-items: stretch;
        padding-top: env(safe-area-inset-top, 0);
        position: relative;
        box-shadow: 0 2px 6px -4px rgba(0,0,0,.38);
        z-index: 1;
    }

    .location-select-fullscreen-wrapper > .location-select-fullscreen-header > .back-button,
    .location-select-fullscreen-wrapper > .location-select-fullscreen-header > .loading-icon {
        align-items: center;
        appearance: none;
        background: transparent;
        border: 0;
        color: #888888;
        cursor: pointer;
        display: flex;
        font: inherit;
        justify-content: center;
        min-height: 60px;
        padding: 0;
        width: 56px;
    }

    .location-select-fullscreen-wrapper > .location-select-fullscreen-header > .back-button:focus-visible,
    .location-select-fullscreen-wrapper > .location-select-fullscreen-header > .loading-icon:focus-visible {
        outline: 2px solid var(--beep-green);
        outline-offset: -4px;
    }

    .location-select-fullscreen-wrapper > .location-select-fullscreen-header > input {
        border: 0 solid #888888;
        min-height: 60px;
        min-width: 0;
        padding: 0;
        width: 100%;
    }

    .location-select-fullscreen-wrapper > .location-select-fullscreen-header > input:focus {
        outline: none;
    }

    .location-select-fullscreen-wrapper > .location-select-fullscreen-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0));
        -webkit-overflow-scrolling: touch;
    }

    .location-select-fullscreen-wrapper > .location-select-fullscreen-body > div {
        cursor: pointer;
        min-height: 52px;
        padding: 1rem;
    }

    .location-select-fullscreen-wrapper > .location-select-fullscreen-body > div:active {
        background-color: var(--beep-lightgray);
    }
}

.use-my-location {
    font-weight: bold;
    margin-bottom: 0.25rem;
}
