/* Module de recherche consuls / pays — reprend le style du widget de recherche du header (Source Sans 3, #1E2C23). */
.consulats-search {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
}

.consulats-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.consulats-search-field {
    flex: 1 1 auto;
    min-width: 0;
}

.consulats-search-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 10px;
    border: none;
    border-radius: 0;
    background: #ffffff;
    color: #1E2C23;
    font: inherit;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}

.consulats-search-input::placeholder {
    color: #6b6b6b;
    opacity: 1;
}

.consulats-search-input:focus {
    outline: 2px solid #1E2C23;
    outline-offset: -2px;
}

/* Aucun arrondi, quel que soit le thème / kit Elementor. */
.consulats-search,
.consulats-search .consulats-search-input,
.consulats-search .consulats-search-submit,
.consulats-search .consulats-search-results {
    border-radius: 0 !important;
}

.consulats-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.consulats-search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 5px 10px 5px 15px;
    border: none;
    border-radius: 0;
    background: #1E2C23;
    color: #ffffff;
    cursor: pointer;
}

.consulats-search-submit svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.consulats-search-submit:hover,
.consulats-search-submit:focus-visible {
    background: #2f4336;
    outline: none;
}

.consulats-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 1000;
    box-sizing: border-box;
    width: max(100%, 340px);
    max-width: calc(100vw - 16px);
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 4px;
    padding: 6px 0;
    border: 1px solid #dddddd;
    border-top: 3px solid #1E2C23;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(22, 22, 22, 0.14);
    color: #161616;
    text-align: left;
}

.consulats-search-results[hidden] {
    display: none;
}

.consulats-search-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #161616;
    text-decoration: none;
}

.consulats-search-option:hover,
.consulats-search-option.is-active {
    background: #edf2ef;
    color: #1E2C23;
}

.consulats-search-flag {
    flex: 0 0 auto;
    font-size: 1.3em;
    line-height: 1;
}

.consulats-search-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.consulats-search-country {
    font-weight: 700;
}

.consulats-search-consul {
    font-size: 0.92em;
    color: #3a3a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.consulats-search-consul em {
    font-style: normal;
    color: #6b6b6b;
}

.consulats-search-results mark {
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #1E2C23;
    text-underline-offset: 2px;
}

.consulats-search-empty {
    margin: 0;
    padding: 10px 14px;
    color: #3a3a3a;
}
