/* ===========================================================================
   SELETOR (seletor.js): A CAIXA DE ESCOLHA DO SITE ANTIGO, O BOOTSTRAP-SELECT 1.12.1
   COM O TEMA DA CENTRAL. TEXTO CINZA #959595 (#333 COM A LISTA ABERTA), 34px DE
   ALTURA NO DESKTOP E 50px ATÉ 991px; A LISTA CAI 2px ABAIXO, COM SOMBRA.
   =========================================================================== */

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

.seletor__botao {
    position: relative;
    display: block;
    width: 100%;
    height: 34px;
    padding: 0 25px 0 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #959595;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857;
    text-align: left;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .seletor__botao { height: 50px; }
}

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

.seletor__atual {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    vertical-align: middle;
}

/* O "▾" DO BOOTSTRAP (UM TRIÂNGULO DE BORDA, NA COR DO TEXTO). */
.seletor__seta {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.seletor__menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1035;
    display: none;
    min-width: 100%;
    margin-top: 2px;
    padding: 5px 0;
    border: 1px solid rgba(0, 0, 0, .15);
    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-top: 0;
    margin-bottom: 2px;
}

.seletor__busca {
    padding: 4px 8px;
}

.seletor__busca[hidden] {
    display: none;
}

.seletor__busca input {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #555;
    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;
    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;
    padding: 3px 20px;
    color: #333;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    white-space: nowrap;
    cursor: pointer;
}

.seletor__opcao[hidden] {
    display: none;
}

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

/* ESCOLHA ÚNICA: O ESCOLHIDO EM AZUL (O .active DO BOOTSTRAP). */
.seletor:not(.seletor--multipla) .seletor__opcao.selecionada {
    background-color: #337ab7;
    color: #fff;
}

/* ESCOLHA MÚLTIPLA: O "✓" À DIREITA DO ESCOLHIDO. */
.seletor--multipla .seletor__texto {
    display: inline-block;
    margin-right: 34px;
}

.seletor__marca {
    display: none;
}

.seletor--multipla .seletor__opcao.selecionada .seletor__marca {
    position: absolute;
    top: 8px;
    right: 15px;
    display: inline-block;
    width: 1.1667em;
    height: 1em;
}

.seletor__aviso {
    padding: 3px 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.42857143;
}

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