/* Matessa Health — issuing-body type-ahead. Logical properties throughout so Arabic/Hebrew (dir="rtl") mirror correctly. */
.mhib { position: relative; }
/* room for the clear button on the side it sits (follows the widget direction, not the typed text) */
.mhib[dir="ltr"] input[role="combobox"] { padding-right: 2.25rem; }
.mhib[dir="rtl"] input[role="combobox"] { padding-left: 2.25rem; }
.mhib-clear {
  position: absolute; inset-inline-end: .4rem; top: .45rem; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%;
  background: transparent; color: #3d5a63; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.mhib-clear:hover, .mhib-clear:focus-visible { background: #E9F4F4; outline: 2px solid #0E7C86; outline-offset: 1px; }
.mhib-list {
  position: relative; margin-top: .35rem; max-height: min(60vh, 420px); overflow-y: auto;
  background: #fff; border: 1px solid #b8d5d8; border-radius: 10px; box-shadow: 0 10px 28px rgba(18, 49, 58, .16); padding: .25rem 0;
}
.mhib-ghead {
  position: sticky; top: 0; z-index: 1; padding: .35rem .85rem; background: #F7FBFB; color: #0A5A62;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; border-bottom: 1px solid #e3eff0;
}
.mhib-opt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; padding: .55rem .85rem; cursor: pointer; line-height: 1.35; }
.mhib-opt[aria-selected="true"], .mhib-opt:hover { background: #E9F4F4; box-shadow: inset 3px 0 0 #0E7C86; }
[dir="rtl"] .mhib-opt[aria-selected="true"], [dir="rtl"] .mhib-opt:hover { box-shadow: inset -3px 0 0 #0E7C86; }
.mhib-name { color: #12313A; font-weight: 500; }
.mhib-abbr { color: #0A5A62; font-size: .82rem; font-weight: 600; }
.mhib-abbr::before { content: "("; } .mhib-abbr::after { content: ")"; }
.mhib-en { color: #3d5a63; font-size: .85rem; font-style: italic; }
.mhib-en::before { content: "— "; }
.mhib-region { flex-basis: 100%; color: #5b7178; font-size: .8rem; }
.mhib-opt-other { border-top: 1px solid #e3eff0; color: #0A5A62; font-weight: 600; }
.mhib-empty { padding: .6rem .85rem; color: #5b7178; font-size: .9rem; }
.mhib-filter { margin: .35rem 0 0; font-size: .82rem; color: #3d5a63; }
.mhib-link { background: none; border: 0; padding: 0; color: #0A5A62; text-decoration: underline; cursor: pointer; font: inherit; }
.mhib-link:focus-visible { outline: 2px solid #0E7C86; outline-offset: 2px; }
/* "Showing 20 of 77 · Show all 77": styled like the country headings, but tinted and boxed so it stands apart */
.mhib-more {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem;
  margin: .45rem 0 0; padding: .45rem .85rem; background: #E9F4F4; border: 1px solid #b8d5d8; border-radius: 8px;
  color: #0A5A62; font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.mhib-more[hidden] { display: none; }
.mhib-more .mhib-link { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; text-underline-offset: 2px; }
.mhib-status { margin: .35rem 0 0; font-size: .85rem; color: #3d5a63; }
.mhib-other { margin-top: .75rem; }
.mhib-other label { display: block; font-weight: 600; margin-bottom: .3rem; }
.mhib-dym { margin-top: .4rem; }
.mhib-dym-btn {
  display: block; width: 100%; text-align: start; margin: .3rem 0; padding: .5rem .75rem; border: 1px solid #0E7C86;
  border-radius: 8px; background: #fff; color: #12313A; cursor: pointer; font-size: .9rem; line-height: 1.35;
}
.mhib-dym-btn:hover, .mhib-dym-btn:focus-visible { background: #E9F4F4; outline: 2px solid #0E7C86; outline-offset: 1px; }
.mhib-dym-place { color: #5b7178; font-size: .8rem; }
.mhib-note { margin: .4rem 0 0; font-size: .8rem; line-height: 1.4; color: #5b7178; }
.mhib-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .mhib-list { max-height: 55vh; }
  .mhib-opt { padding: .7rem .75rem; }      /* bigger touch targets */
}

.mhib-filter.mhib-filter-hiding { background: #FFF6EE; border-left: 3px solid #F4794E; padding: .35rem .5rem; border-radius: 6px; color: #12313A; }
.mhib-filter.mhib-filter-hiding .mhib-link { font-weight: 600; }
