:root {
    --fpw-primary-color: #6200ee;
    --fpw-secondary-color: #f3e5f5;
    --fpw-text-color: #333;
    --fpw-border-color: #eee;
    --fpw-star-color: #ffb400;
}

.fpw-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid var(--fpw-border-color);
    border-radius: 12px;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.fpw-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.fpw-product-image img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

.fpw-product-info {
    flex-grow: 1;
}

.fpw-title-reset {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700 !important;
    color: var(--fpw-text-color);
    border: none !important;
    padding: 0 !important;
    background: none !important;
    text-decoration: none !important;
    line-height: 1.2;
    display: block;
}

.fpw-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.fpw-rating-score {
    font-weight: bold;
    font-size: 1.1rem;
}

.fpw-stars {
    display: flex;
    gap: 2px;
}

.fpw-star {
    font-size: 20px;
    line-height: 1;
    color: #ccc; /* Cor padrão para estrelas vazias */
}

.fpw-star.filled {
    color: var(--fpw-star-color);
}

.fpw-star.half {
    position: relative;
    color: #ccc;
}

.fpw-star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: var(--fpw-star-color);
}

.fpw-rating-label {
    color: #666;
}

.fpw-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    font-size: 12px;
    cursor: help;
}

.fpw-cta-desktop {
    text-align: center;
}

.fpw-button-primary {
    background-color: var(--fpw-primary-color);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
    transition: opacity 0.2s;
}

.fpw-button-primary:hover {
    opacity: 0.9;
}

.fpw-verified {
    font-size: 0.75rem;
    color: #666;
}

/* Carousel */
.fpw-carousel-wrapper {
    position: relative;
    padding: 20px 40px;
    border-top: 1px solid var(--fpw-border-color);
    margin-top: 20px;
    text-align: center;
}

.fpw-carousel-content {
    overflow: hidden;
    position: relative;
    min-height: 60px;
}

.fpw-carousel-slide {
    display: none;
    animation: fadeIn 0.3s;
}

.fpw-carousel-slide.active {
    display: block;
}

.fpw-carousel-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.fpw-carousel-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--fpw-text-color);
}

.fpw-carousel-prev, .fpw-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fpw-primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 28px;
    padding: 0;
}

.fpw-carousel-prev { left: 0; }
.fpw-carousel-next { right: 0; }

.fpw-carousel-dots {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.fpw-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.fpw-dot.active {
    background: var(--fpw-primary-color);
}

/* Secondary Buttons */
.fpw-secondary-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.fpw-button-secondary {
    background-color: var(--fpw-secondary-color);
    color: var(--fpw-primary-color) !important;
    padding: 10px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Accordion */
.fpw-accordion {
    margin-top: 20px;
    border-top: 1px solid var(--fpw-border-color);
}

.fpw-accordion-item {
    border-bottom: 1px solid var(--fpw-border-color);
}

.fpw-accordion-header {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--fpw-primary-color);
}

.fpw-accordion-content {
    display: none;
    padding: 0 0 15px 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fpw-accordion-item.active .fpw-accordion-content {
    display: block;
}

.fpw-accordion-item.active .fpw-accordion-icon {
    transform: rotate(45deg);
}

.fpw-accordion-icon {
    transition: transform 0.2s;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    overflow: visible;
}

/* Responsive */
.fpw-cta-mobile {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 600px) {
    .fpw-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }
    
    .fpw-product-image {
        order: 1;
        width: 100px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .fpw-product-image img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
    }
    
    .fpw-product-info {
        order: 2;
        flex-grow: 1;
        text-align: left;
    }
    
    .fpw-title-reset {
        font-size: 1rem;
        margin-bottom: 8px;
        font-weight: 700 !important;
        line-height: 1.2;
    }
    
    .fpw-rating {
        justify-content: flex-start;
        margin-bottom: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .fpw-rating-label {
        width: 100%;
        margin-top: 0;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        font-size: 0.8rem;
        order: 1;
    }

    .fpw-rating-score {
        order: 2;
        font-size: 1.1rem;
        font-weight: bold;
    }

    .fpw-stars {
        order: 3;
        display: flex;
        align-items: center;
    }

    .fpw-star {
        font-size: 18px;
    }
    
    .fpw-cta-desktop {
        display: none;
    }
    
    .fpw-cta-mobile {
        display: block;
        margin-top: 20px;
        text-align: center;
    }
    
    .fpw-button-primary {
        width: 100%;
    }
    
    .fpw-button-secondary {
        width: 100%;
        text-align: center;
    }
}
