/* Barra do hero: dropdown próprio no lugar da lista nativa do <select>.
   Cores do _design-system.md: verde #224D3C, verde claro #E2ECE6, névoa
   #EDF3EF, linha #DDE4DF, tinta #17241E. */

.jh-select-host { position: relative; }

/* O <select> fica no DOM (guarda o valor e vai no envio), mas fora da vista */
.jh-select-host > select,
.jh-select-host > .select-caret-down-wrapper {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
  overflow: hidden; clip: rect(0 0 0 0);
}

.jh-select { position: relative; width: 100%; }

/* ".jh-select button" na frente: o reset.css do Hello Elementor pinta todo
   button de rosa com a mesma especificidade de uma classe e carrega depois. */
.jh-select button.jh-select__botao {
  display: flex; align-items: center; justify-content: space-between; gap: .75em;
  width: 100%; height: 3.1em;
  padding: 0 1em;
  border: 1px solid #DDE4DF; border-radius: 12px;
  background: #FFFFFF; color: #17241E;
  font-family: "Roboto", sans-serif; font-size: .9375rem; font-weight: 400;
  line-height: 1.2; text-align: left; text-transform: none; letter-spacing: normal;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.jh-select button.jh-select__botao:hover,
.jh-select button.jh-select__botao:focus { border-color: #B9C8BF; background: #FFFFFF; color: #17241E; outline: none; text-decoration: none; }
.jh-select button.jh-select__botao:focus-visible,
.jh-select.jh-select--aberto button.jh-select__botao {
  border-color: #224D3C;
  box-shadow: 0 0 0 3px rgba(34, 77, 60, .14);
  background: #FFFFFF; color: #17241E;
}
.jh-select__botao--vazio .jh-select__valor { color: #6B746F; }

.jh-select__valor { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.jh-select__seta {
  display: inline-flex; flex: none;
  width: .75em; color: #224D3C;
  transition: transform .2s ease;
}
.jh-select__seta svg { width: 100%; height: auto; display: block; }
.jh-select--aberto .jh-select__seta { transform: rotate(180deg); }

/* Erro: assunto obrigatório sem escolha */
.jh-select.jh-select--erro button.jh-select__botao { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.jh-select__erro {
  position: absolute; left: .25em; top: calc(100% + .35em);
  font-family: "Roboto", sans-serif; font-size: .875rem; color: #B3261E;
  white-space: nowrap;
}
.jh-select__erro:empty { display: none; }

/* Lista */
.jh-select__lista {
  position: absolute; z-index: 9999;
  margin: 0; padding: .375em;
  list-style: none;
  max-height: 18em; overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #DDE4DF; border-radius: 16px;
  box-shadow: 0 18px 44px rgba(23, 36, 30, .14), 0 2px 6px rgba(23, 36, 30, .06);
  font-family: "Roboto", sans-serif; font-size: .9375rem; color: #17241E;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease;
}
.jh-select__lista--acima { transform: translateY(4px); }
.jh-select__lista--visivel { opacity: 1; transform: translateY(0); }
.jh-select__lista[hidden] { display: none; }

.jh-select__opcao {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  margin: 0; padding: .7em .85em;
  border-radius: 10px;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
}
.jh-select__opcao + .jh-select__opcao { margin-top: 2px; }
.jh-select__opcao--ativa { background: #EDF3EF; }
.jh-select__opcao[aria-selected="true"] { color: #224D3C; font-weight: 500; }
.jh-select__opcao[aria-selected="true"].jh-select__opcao--ativa { background: #E2ECE6; }

.jh-select__check { display: inline-flex; flex: none; width: .9em; color: #224D3C; opacity: 0; }
.jh-select__check svg { width: 100%; height: auto; display: block; }
.jh-select__opcao[aria-selected="true"] .jh-select__check { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .jh-select__lista, .jh-select__seta, .jh-select__botao { transition: none; }
}
