/* Minimal, neutral styling — meant to inherit the site header's fonts/colors.
   Override freely to match the theme. */

.wh-city {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1.3;
}

.wh-city__current {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    color: inherit;
    font: inherit;
}

.wh-city__name {
    border-bottom: 1px dashed currentColor;
}

.wh-city__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 240px;
    margin-top: 4px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.wh-city__search {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font: inherit;
}

.wh-city__results {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

.wh-city__result {
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.wh-city__result:hover {
    background: #f2f4f7;
}

.wh-city__confirm {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    margin-top: 4px;
    padding: 8px 10px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.wh-city__confirm button {
    margin-left: 8px;
    padding: 3px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font: inherit;
}

.wh-city__confirm .wh-city__yes {
    border-color: #2f80ed;
    color: #2f80ed;
}
