.carrossel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;

    /* fix: padding em px para não variar no customizer */
    padding: 10px 0;

    /* fix: padroniza tipografia e evita “altura elástica” */
    font-size: 12px;
    line-height: 1.4;
    box-sizing: border-box;

    background-color: #131a2c;
    color: #fff;
    z-index: 1;
}


.dados-cepea {
    position: absolute;
    background: #1b2643;
    z-index: 1;
    display: flex;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 0 1.5rem;
    gap: 5px;
    align-items: center;
    font-size: 12px;
}

.carrossel-dados-cepea {
    display: flex;
    animation: none;
    position: relative;
}

.item-carrossel {
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.4;
    flex-shrink: 0;
    text-transform: uppercase;
}

span.seta-neutral {
    width: 8px;
    height: 8px;
    margin: 0 0.4rem;
    background: #c3abab;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-shadow: 0 0 0 0 rgb(255, 255, 255);
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.item-carrossel::before {
    content: "-";
    margin: 0 1em;
}

/* Estilos básicos para tabela e alertas, escopados ao CEPEA */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabela-cepea {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
    border-collapse: collapse;
}

.tabela-cepea > :not(caption) > * > * {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.tabela-cepea.table-bordered {
    border: 1px solid #dee2e6;
}

.tabela-cepea.table-bordered > :not(caption) > * > * {
    border: 1px solid #dee2e6;
}

.tabela-cepea.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, 0.05);
}

.tabela-cepea.table-hover > tbody > tr:hover > * {
    background-color: rgba(0, 0, 0, 0.075);
}

.tabela-cepea.align-middle > :not(caption) > * > * {
    vertical-align: middle;
}

.cepea-alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.cepea-alert.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.cepea-alert.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.cepea-alert.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.price {
    font-weight: bold;

    & i {
        margin: 0 4px;
        font-size: 10px;
    }
}

.state {
    font-size: 0.8em;
    margin-right: 0.5em;
    font-weight: bold;
    background: #313e63;
    display: inline-block;
    padding: 0.1rem 0.3rem;
}

.unit {
    font-size: 9px;
}

.seta-up {
    font-weight: bold;
    font-size: 1em;
}

.seta-down {
    font-weight: bold;
    font-size: 1em;
}

.lhc-sidebar-cepea {
    width: 100%;
    background-color: #131a2c;
    max-height: 500px;
    overflow-y: auto;
    position: relative;

    /* Estilização da barra de rolagem */
    scrollbar-width: thin;               /* Para Firefox */
    scrollbar-color: #3c4e7a #1b2643;    /* Para Firefox (thumb and track) */
}

/* Para navegadores baseados em WebKit/Blink (Chrome, Safari, Edge) */
.lhc-sidebar-cepea::-webkit-scrollbar {
    width: 8px;                      /* Largura da barra de rolagem */
}

.lhc-sidebar-cepea::-webkit-scrollbar-track {
    background: #1b2643;             /* Cor de fundo da trilha */
    border-radius: 4px;              /* Bordas arredondadas */
}

.lhc-sidebar-cepea::-webkit-scrollbar-thumb {
    background-color: #3c4e7a;       /* Cor da barra de rolagem */
    border-radius: 4px;              /* Bordas arredondadas */
    border: 2px solid #1b2643;       /* Borda opcional */
}

.lhc-sidebar-cepea::-webkit-scrollbar-thumb:hover {
    background-color: #4c5e8a;       /* Cor ao passar o mouse */
}

.lhc-dados-cepea {
    padding: 1rem;
    font-size: 1.4rem;
    line-height: 1;
    color: #FFFFFF;
    background: #1b2643;
    margin-bottom: 1vh;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/*---- START:: .lhc-lista-dados-cepea ----*/
.lhc-lista-dados-cepea {
    margin: 0;
    padding: 0 0.5rem;

    & .item-sidebar {
        list-style: none;
        margin-bottom: 0.5rem;
        display: flex;
        justify-content: space-between;
        width: 100%;
        background-color: #1b2643;
        padding: 0.7rem;
        border-radius: 3px;
    }

    & .item-sidebar .info-col-left {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    & .item-sidebar .produto {
        font-weight: bold;
        font-size: 0.95em;
        color: #fff;
    }

    & .item-sidebar .local {
        font-size: 0.7em;
        color: #a0a0a0;
    }

    /* Coluna da direita com preço e unidade */
    & .item-sidebar .info-col-right {
        display: flex;
        align-items: baseline;
        justify-content: flex-end;
        text-align: right;
    }

    & .item-sidebar .preco {
        color: #FFFFFF;
        font-weight: bold;
        white-space: nowrap;

        & i {
            padding: 0 0.2rem;
            font-size: 12px;
        }
    }

    & .item-sidebar .preco i {
            padding: 0 0.2rem;
            font-size: 12px;
    }

    & .item-sidebar .unidade {
        font-size: 0.8em;
        color: #a0a0a0;
        margin-left: 0.3rem;
    }

    /* Hover para destacar a linha */
    & .item-sidebar:hover {
        background-color: #232f4f;
    }
}
/*---- END:: .lhc-lista-dados-cepea ----*/
