.cityselect-form [data-cityselect-results]:not([hidden]) {
    max-height: min(42dvh, 19rem);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    margin-block: 4px;
    border: var(--up-border);
    border-radius: var(--up-border-radius);
    background: var(--up-theme-blocks-bg);
}

.cityselect-form [data-cityselect-results] > button {
    display: flex;
    width: 100%;
    min-height: 36px;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 12px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.cityselect-form [data-cityselect-results] > button + button {
    border-top: var(--up-border);
}

.cityselect-form [data-cityselect-results] > button:hover,
.cityselect-form [data-cityselect-results] > button:focus-visible {
    background: var(--up-children-bg);
}

@media (max-width: 767px) {
    button.js-drawer-open[aria-controls^="cityselect-"] {
        min-height: 44px;
        padding-inline: 10px;
    }

    .cityselect-form input[name="city"] {
        font-size: 16px;
    }

    .cityselect-form [data-cityselect-results]:not([hidden]) {
        max-height: min(35dvh, 17rem);
    }

    .cityselect-form [data-cityselect-results] > button {
        min-height: 44px;
    }

    html[data-up-theme] .wa-checkout-address-options .ui-menu-item > .ui-menu-item-wrapper {
        box-sizing: border-box;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    html[data-up-theme] .wa-checkout-address-options.cityselect-touch-menu {
        position: static !important;
        width: 100% !important;
        max-height: min(35dvh, 17rem);
        margin-top: 4px;
        box-shadow: none;
    }
}
