/* ==========================================================================
   ESTILOS GERAIS DA WIDGET
   ========================================================================== */

.cgr-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: system-ui, -apple-system, sans-serif;
    width: 100%;
    overflow: hidden;
}

.cgr-row {
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.cgr-p {
    margin: 0px 0px !important;
    font-weight: 600;    
    
}
/* ==========================================================================
   RESUMO / SELO DE CERTIFICAÇÃO GOOGLE
   ========================================================================== */

.cgr-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    min-width: 180px;
    flex-shrink: 0;
}

.cgr-rating-title {
    font-weight: 800;
    font-size: 22px;
    color: #000;
    margin-bottom: 5px;
}

.cgr-summary-stars .cgr-star {
    font-size: 24px;
}

.cgr-summary-count {
    font-size: 13px;
    color: #555;
    text-align: center;
}

.cgr-google-brand {
    width: 100px !important;
    height: auto !important;
    display: block;
    margin-top: 5px;
}


/* ==========================================================================
   SISTEMA DE ESTRELAS
   ========================================================================== */

.cgr-stars-container {
    display: inline-flex;
    gap: 2px;
}

.cgr-star {
    font-size: 18px;
    line-height: 1;
}

.cgr-star-full {
    color: #ffb400;
}

.cgr-star-empty {
    color: #ccc;
}

.cgr-star-half {
    background: linear-gradient(
        90deg,
        #ffb400 50%,
        #ccc 50%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ==========================================================================
   CARROSSEL
   ========================================================================== */

.cgr-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    padding: 10px 0;
}


/*
 * IMPORTANTE:
 *
 * Não usamos scroll-snap neste slider.
 * O movimento é controlado pelo JavaScript através de scrollLeft.
 */

.cgr-cards-list {
    display: flex;
    gap: 20px;

    width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: none !important;
    scroll-behavior: auto !important;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    -ms-overflow-style: none;

    padding: 10px 5px;

    /*
     * Evita que o browser introduza comportamentos
     * de selecção durante o arrastamento.
     */
    cursor: grab;
}

.cgr-cards-list:active {
    cursor: grabbing;
}

.cgr-cards-list::-webkit-scrollbar {
    display: none;
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.cgr-card {
    background: #f4f4f4;
    border-radius: 12px;

    padding: 20px;

    width: 290px;
    min-width: 290px;

    position: relative;

    box-sizing: border-box;

    flex: 0 0 290px;

    /*
     * Não usar scroll-snap.
     */
    scroll-snap-align: none !important;

    /*
     * Apenas a animação visual do próprio card.
     * Não interfere com o scroll horizontal.
     */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cgr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   CONTEÚDO DO CARD
   ========================================================================== */

.cgr-card-google {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 18px;
    height: 18px;
}

.cgr-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cgr-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.cgr-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;

    background: #3c4d55;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}

.cgr-author-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #000;
}

.cgr-date {
    font-size: 13px;
    color: #777;
}

.cgr-stars-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.cgr-verified {
    width: 16px;
    height: 16px;
}

.cgr-text {
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    margin: 0;
}


/* ==========================================================================
   BOTÕES
   ========================================================================== */

.cgr-slider-btn {
    background: #ffffff;

    border: 1px solid #ddd;
    border-radius: 50%;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    position: absolute;
    z-index: 10;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);

    transition:
        background 0.2s ease,
        transform 0.2s ease;

    font-size: 14px;
    color: #333;
}

.cgr-slider-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.cgr-prev {
    left: 5px;
}

.cgr-next {
    right: 5px;
}


/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {

    .cgr-wrapper {
        flex-direction: column;
    }

    .cgr-summary-card {
        width: 100%;
    }

    .cgr-slider-container {
        width: 100%;
    }

    .cgr-card {
        width: 290px;
        min-width: 290px;
        flex-basis: 290px;
    }
}

/* ==========================================================================
   BOTÃO AVALIAÇÕES
   ========================================================================== */


.cgr-btn-review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #dcdcdc;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.cgr-btn-review:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}