/* ===========================================================================
   SELETOR (seletor.js): A CAIXA DO SITE ANTIGO (BOOTSTRAP-SELECT 1.12.1 SOBRE O
   BOOTSTRAP 3) NO LUGAR DO <select>. AQUI A CAIXA, A LISTA E A BUSCA; ALTURA,
   RECUO E COR DO BOTÃO DE CADA FORMULÁRIO FICAM NO CSS DA PÁGINA.
   =========================================================================== */

.seletor {
    position: relative;
    display: inline-block;
    width: 100%;
    vertical-align: middle;
}

/* O <select> TROCADO FICA ESCONDIDO; O ATRIBUTO VENCE O display DO CSS DA PÁGINA. */
select[data-seletor][hidden] {
    display: none;
}

.seletor__botao {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 6px 25px 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    touch-action: manipulation;
    user-select: none;
}

.seletor__botao:hover,
.seletor.aberto .seletor__botao {
    border-color: #adadad;
    color: #333;
}

.seletor__atual {
    display: inline-block;
    float: left;
    width: 100%;
    overflow: hidden;
    text-align: left;
}

/* O TRIÂNGULO DO BOOTSTRAP: BORDAS DE 4px, A 12px DA DIREITA. */
.seletor__seta {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-block;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    vertical-align: middle;
}

.seletor__menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1035;
    display: none;
    min-width: 100%;
    margin: 2px 0 0;
    padding: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    font-size: 14px;
    text-align: left;
}

.seletor.aberto .seletor__menu {
    display: block;
}

/* SEM ESPAÇO EMBAIXO (seletor.js), A LISTA ABRE PARA CIMA. */
.seletor--acima .seletor__menu {
    top: auto;
    bottom: 100%;
    margin: 0 0 2px;
}

.seletor__busca {
    padding: 4px 8px;
}

.seletor__busca input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: none;
    color: #999;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.42857143;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.seletor__busca input:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.seletor__lista {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.seletor__opcao {
    position: relative;
    display: block;
    clear: both;
    padding: 3px 20px;
    color: #333;
    font-weight: 400;
    line-height: 1.42857143;
    white-space: nowrap;
    cursor: pointer;
}

.seletor__opcao:hover {
    background-color: #f5f5f5;
    color: #262626;
}

.seletor__opcao.ativo,
.seletor__opcao.ativo:hover {
    background-color: #337ab7;
    color: #fff;
}

.seletor__opcao[hidden] {
    display: none;
}

/* SEM NADA PARA ESCOLHER (data-seletor-vazio), A CAIXA DE BUSCA SOME (O display DELA VENCERIA O hidden). */
.seletor__busca[hidden] {
    display: none;
}

/* O AVISO NO LUGAR DA LISTA ("Selecione uma cidade primeiro"), COMO O "NENHUM RESULTADO" DO PLUGIN. */
.seletor__aviso {
    margin: 5px;
    padding: 6px 10px;
    background: #f5f5f5;
    color: #777;
    white-space: normal;
}

.seletor__nada {
    margin: 0 5px;
    padding: 3px;
    background: #f5f5f5;
    white-space: nowrap;
}
