.ccew-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    background: #fff;
    position: relative;
    font-family: 'Arial', sans-serif;
}

/* Base do trilho */
.ccew-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

/* Quando o scroll está ATIVADO */
.ccew-carousel-wrapper.is-carousel .ccew-carousel-track {
    display: flex;
}

/* Quando o scroll está DESATIVADO */
.ccew-carousel-wrapper.no-scroll {
    overflow-x: auto;
}

.ccew-carousel-wrapper.no-scroll .ccew-carousel-track {
    justify-content: center;
    min-width: 100%;
}

.ccew-carousel-item {
    flex: 0 0 300px;
    margin: 0 15px;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-sizing: border-box;
}

.ccew-item-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
}

.ccew-item-link:hover, 
.ccew-item-link:focus, 
.ccew-item-link:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* Remove sublinhado de qualquer elemento dentro do link que possa herdar do tema */
.ccew-item-link * {
    text-decoration: none !important;
}

.ccew-image-container {
    width: 100%;
    height: 180px; /* Altura padrão, será sobrescrita pelo Elementor */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Margem padrão, será sobrescrita pelo Elementor */
}

.ccew-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ccew-no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: bold;
}

.ccew-content-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ccew-title {
    margin: 0 0 15px 0; /* Margem padrão, será sobrescrita pelo Elementor */
    font-size: 24px;
    font-weight: bold;
    color: #58b1d9; /* Cor padrão, será sobrescrita pelo Elementor */
    line-height: 1.2;
}

.ccew-description {
    margin: 0 0 20px 0; /* Margem padrão, será sobrescrita pelo Elementor */
    font-size: 16px;
    color: #777; /* Cor padrão, será sobrescrita pelo Elementor */
    line-height: 1.5;
}

.ccew-footer-text {
    margin-top: auto;
    font-size: 18px;
    font-weight: 900;
    color: #cc0000; /* Cor padrão, será sobrescrita pelo Elementor */
    text-transform: uppercase;
}

/* Esconder scrollbar no modo no-scroll */
.ccew-carousel-wrapper.no-scroll::-webkit-scrollbar {
    display: none;
}
.ccew-carousel-wrapper.no-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Estilos para o modo de exibição 'apenas imagem' */
.ccew-carousel-item.image-only {
    justify-content: center; /* Centraliza a imagem verticalmente */
}

.ccew-carousel-item.image-only .ccew-image-container {
    height: 250px; /* Altura padrão, será sobrescrita pelo Elementor */
    margin-bottom: 10px; /* Margem padrão, será sobrescrita pelo Elementor */
}

.ccew-carousel-item.image-only .ccew-image-container img {
    object-fit: cover; /* Preenche o container, cortando se necessário */
    width: 100%;
    height: 100%;
}

.ccew-carousel-item.image-only .ccew-no-image {
    font-size: 20px; /* Aumenta o texto de 'sem imagem' */
}
