﻿/* ============================= */
/* PostalCodeCity layout          */
/* ============================= */

postalcodecity {
    display: block;
    min-width: 0;
}


.postal-code-city {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.postal-code-city__postalcode {
    flex: 0 0 90px;
    min-width: 0;
}

.postal-code-city__city {
    flex: 1 1 auto;
    min-width: 0;
}

.postal-code-city mytextbox {
    display: block;
    width: 100%;
    min-width: 0;
}

.postal-code-city .myTextBox,
.postal-code-city input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================= */
/* États                          */
/* ============================= */

postalcodecity.postal-code-city--no-result input,
.postal-code-city--no-result input {
    border-color: #e53935;
}

postalcodecity.postal-code-city--multiple input,
.postal-code-city--multiple input {
    border-color: #f28c28;
}

/* ============================= */
/* Suggestions popup              */
/* ============================= */
/* Important :
       pas de position:absolute ici.
       Le positionnement est fait par PopupManager.openAnchored()
       en position: fixed dans document.body.
    */

.postal-code-city-suggestions {
    display: none;
    background: white;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
    max-height: 180px;
    overflow: auto;
    min-width: 160px;
    padding: 4px 0;
    font-size: 12px;
    color: #333;
}

    .postal-code-city-suggestions.is-open {
        display: block;
    }

.postal-code-city-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 18px;
}

    .postal-code-city-suggestion:hover {
        background: #eef5ff;
    }

.postal-code-city-suggestion-main {
    font-weight: 600;
    min-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.postal-code-city-suggestion-sub {
    opacity: .65;
    font-size: 11px;
}
.postal-code-city-suggestion.is-selected {
    background: #dcecff;
}