.ce-segmento-seletor {
    position: relative;
    margin-bottom: 18px;
}

.ce-segmento-botao {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border: 1px solid #e8d9d0;
    border-radius: 10px;
    background: #fffdfc;
    color: #55463e;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.ce-segmento-botao:hover,
.ce-segmento-botao:focus-visible,
.ce-segmento-botao[aria-expanded="true"] {
    border-color: #e65100;
    box-shadow: 0 0 0 3px rgba(230, 81, 0, .12);
    outline: none;
}

.ce-segmento-seta {
    flex: 0 0 auto;
    color: #b65a2b;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform .18s ease;
}

.ce-segmento-botao[aria-expanded="true"] .ce-segmento-seta {
    transform: rotate(180deg);
}

.ce-segmento-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid #e8d9d0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 34px rgba(73, 43, 27, .16);
}

.ce-segmento-busca {
    display: grid;
    gap: 6px;
    padding: 13px 14px 10px;
    border-bottom: 1px solid #f1e5de;
    color: #735f53;
    font-size: .77rem !important;
    font-weight: 700;
}

.ce-segmento-busca input {
    min-height: 42px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    font-weight: 400;
}

.ce-segmento-lista {
    max-height: 292px;
    padding: 7px;
    overflow-y: auto;
}

.ce-segmento-grupo {
    margin: 8px 7px 5px;
    color: #a55024;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ce-segmento-todos {
    margin-top: 14px;
}

.ce-segmento-opcao {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 9px;
    margin: 0 !important;
    padding: 7px 8px;
    border-radius: 8px;
    color: #3d302a;
    cursor: pointer;
    font-size: .89rem !important;
    font-weight: 600 !important;
}

.ce-segmento-opcao:hover {
    background: #fff4ed;
}

.ce-segmento-opcao-input {
    width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    accent-color: #e65100;
}

.ce-segmento-opcao:has(.ce-segmento-opcao-input:checked) {
    background: #fff0e7;
    color: #a54115;
}

.ce-segmento-vazio {
    margin: 14px 8px;
    color: #806d62;
    font-size: .86rem;
}

@media (max-width: 600px) {
    .ce-segmento-menu {
        position: fixed;
        top: 12vh;
        right: 16px;
        left: 16px;
        max-height: 76vh;
    }

    .ce-segmento-lista {
        max-height: calc(76vh - 86px);
    }
}
