/* MTNBJ International Tariffs — reproduit la maquette réelle validée (carte à bordure grise fine,
   champ à bordure jaune MTN complète, chevron), police MTNBrighterSans/WorkSans du thème.
   Les polices ne sont pas redéclarées ici (aucune dépendance dure au thème) : si leurs @font-face
   sont chargées par le thème actif (elles le sont, sur mtn-vivid-wp, via fonts/mtn-font.css,
   noms exacts vérifiés : MTNBrighterSans-Bold, WorkSans-Regular, WorkSans-Bold), elles s'appliquent ;
   sinon repli sur une police système générique. `!important` sur les déclarations de police des
   champs de formulaire (input) : certains resets CSS empêchent les <input>/<select>/<button>
   d'hériter la police de leurs parents par défaut, indépendamment de la spécificité normale. */
.mtnbj-it {
    --mtnbj-it-yellow: #FFCB05;
    --mtnbj-it-ink: #1a1a1a;
    --mtnbj-it-line: #e2e2e2;
    max-width: 420px;
    margin: 0 auto;
}
.mtnbj-it *, .mtnbj-it *::before, .mtnbj-it *::after {
    box-sizing: border-box;
}

.mtnbj-it-box {
    background: #fff;
    border: 1px solid var(--mtnbj-it-line);
    border-radius: 16px;
    padding: 20px 24px;
}

.mtnbj-it-title {
    margin: 0 0 16px;
    font-family: 'MTNBrighterSans-Bold', sans-serif !important;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    color: var(--mtnbj-it-ink);
}

.mtnbj-it-combo {
    position: relative;
}

/* Case fermée (bouton) : c'est elle qui porte l'accent jaune MTN. Cliquer dessus ouvre le panneau
   ci-dessous, qui contient son PROPRE champ de recherche — les deux ne sont plus le même élément. */
.mtnbj-it-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background-color: #fff;
    border: 1.5px solid var(--mtnbj-it-yellow);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}
.mtnbj-it-trigger__text {
    font-family: 'WorkSans-Regular', sans-serif !important;
    font-size: 14px;
    line-height: 1.4;
    color: var(--mtnbj-it-ink);
}
.mtnbj-it-trigger__text.is-placeholder {
    opacity: .6;
}
.mtnbj-it-combo__icon {
    flex: none;
    width: 11px;
    height: 7px;
    pointer-events: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23404040' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Panneau : s'ouvre sous la case fermée. Contient le champ de recherche puis la liste, tous deux
   à l'intérieur du même cadre (comme sur la maquette), pas un champ de recherche qui double la case. */
.mtnbj-it-panel {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--mtnbj-it-line);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.mtnbj-it-panel[hidden] {
    display: none;
}
.mtnbj-it-search {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background-color: #fff;
    border: none;
    border-bottom: 1px solid var(--mtnbj-it-line);
    border-radius: 0;
    font-family: 'WorkSans-Regular', sans-serif !important;
    font-size: 14px;
    line-height: 1.4;
    color: var(--mtnbj-it-ink);
}
.mtnbj-it-search::placeholder {
    color: #9a9a9a;
    opacity: 1;
}
.mtnbj-it-search:focus {
    outline: none;
}

/* Liste : chaque élément se met en évidence en jaune MTN au survol/à la sélection clavier, comme
   demandé (un <select> natif ne permet pas de styler ses options individuellement). */
.mtnbj-it-list {
    margin: 0;
    padding: 4px 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
}
.mtnbj-it-option {
    padding: 10px 16px;
    font-family: 'WorkSans-Regular', sans-serif !important;
    font-size: 14px;
    color: var(--mtnbj-it-ink);
    cursor: pointer;
}
.mtnbj-it-option:hover,
.mtnbj-it-option.is-active {
    background-color: var(--mtnbj-it-yellow);
}
.mtnbj-it-option.is-hidden {
    display: none;
}
.mtnbj-it-list__empty {
    padding: 10px 16px;
    font-family: 'WorkSans-Regular', sans-serif !important;
    font-size: 14px;
    color: #767676;
}

.mtnbj-it-result {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 18px 32px;
    background: var(--mtnbj-it-yellow);
    border-radius: 999px;
}
.mtnbj-it-result[hidden] {
    display: none;
}
.mtnbj-it-result-col {
    text-align: left;
}
.mtnbj-it-result-label {
    display: block;
    margin-bottom: 6px;
    font-family: 'WorkSans-Bold', sans-serif !important;
    font-weight: 700;
    font-size: 12px;
}
.mtnbj-it-result-value {
    display: block;
    font-family: 'WorkSans-Regular', sans-serif !important;
    font-size: 13px;
}
