/**
 * eBay Reviews Carousel Styles
 */

 .ebay-reviews-carousel-wrapper {
    padding: 50px 0;
    padding-top: 0px;
    background: #f1f3f8;
    margin: 0 auto;
}

.ebay-reviews-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ebay-reviews-title .icon-star {
    color: #FFD700;
    margin-right: 10px;
    font-size: 36px;
}

.ebay-review-card {
    background: #fff;
    border-radius: 3px;
    padding: 20px;
    height: 100%;
    min-height: 350px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
}

.ebay-review-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ebay-review-header {
    margin-bottom: 15px;
}

.ebay-review-rating {
    display: flex;
    gap: 5px;
    font-size: 18px;
}

.stars-review {
    color: #e5a400;
    font-weight: 500;
}

.ebay-review-rating .icon-star {
    color: #ddd;
}

.ebay-review-rating .star-filled {
    color: #FFD700;
}

.ebay-review-rating .star-empty {
    color: #e0e0e0;
}

.ebay-review-product {
    background: #ebebeb;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.product-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 40px;
}

.product-title .icon-box {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.price-label {
    font-size: 13px;
    color: #9c0000;
    padding-left: 10px;
}

.price-value {
    font-size: 17px;
    font-weight: 700;
    color: #2d7a2d;
}

.ebay-review-body {
    flex: 1;
    margin-bottom: 15px;
}

.ebay-review-comment {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0;
}

.read-more-link {
    color: #9c0000;
    text-decoration: none;
    font-weight: 600;
    font-style: normal;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #9c0000;
}

.ebay-review-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.ebay-review-user,
.ebay-review-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.ebay-review-user i,
.ebay-review-date i {
    color: #999;
    font-size: 14px;
}

.ebay-review-user {
    font-weight: 600;
    color: #333;
}

/* Carousel Controls */
#ebayReviewsCarousel {
    position: relative;
    padding: 20px 0;
}

.ebay-reviews-carousel-wrapper {
    position: relative;
}

.ebay-reviews-carousel-wrapper .carousel,
.ebay-reviews-carousel-wrapper #ebayReviewsCarousel {
    position: relative;
}

.ebay-reviews-carousel-wrapper .row {
    position: relative;
}

#ebayReviewsCarousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#ebayReviewsCarousel .carousel-item {
    position: relative;
    display: none;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

#ebayReviewsCarousel .carousel-item.active {
    display: block;
}

/* Frecce laterali stile 2m2.it */
.carousel-control-prev,
.carousel-control-next {
    position: absolute !important;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, .95);
    border: 1px solid #e0e0e0;
    border-radius: 0;
    top: 500% !important;
    transform: translateY(-50%) !important;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin: 0 !important;
}

.carousel-control-prev span.sr-only,
.carousel-control-next span.sr-only {
    width: 50px;
    height: 50px;
    left: 0;
    top: 0;
    z-index: 9999;
    position: relative;
    line-height: 50px;
    text-align: center;
}

.carousel-control-prev span.sr-only i.material-icons,
.carousel-control-next span.sr-only i.material-icons {
    font-size: 35px;
    color: #9c0000;
    padding: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) !important;
}

.carousel-control-prev {
    left: -60px !important;
    right: auto !important;
    border-radius: 0;
}

.carousel-control-next {
    right: -60px !important;
    left: auto !important;
    border-radius: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    filter: brightness(0) saturate(100%);
}

.carousel-indicators {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .ebay-reviews-title {
        font-size: 26px;
    }
    
    .ebay-review-card {
        min-height: 320px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 70px;
    }
    
    .carousel-control-prev {
        left: 0;
    }
    
    .carousel-control-next {
        right: 0;
    }
}

@media (max-width: 767px) {
    .ebay-reviews-carousel-wrapper {
        padding: 30px 0;
    }
    
    .ebay-reviews-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .ebay-review-card {
        min-height: 280px;
        padding: 15px;
        max-width: 310px;
        margin: 0 auto;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .ebay-review-comment {
        font-size: 13px;
    }
    
    .read-more-link {
        font-size: 13px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 60px;
    }
    
    .carousel-control-prev {
        left: 0;
    }
    
    .carousel-control-next {
        right: 0;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

.carousel-item.active .ebay-review-card {
    animation: fadeInUp 0.6s ease-out;
}

.carousel-item.active .ebay-review-card:nth-child(1) {
    animation-delay: 0.1s;
}

.carousel-item.active .ebay-review-card:nth-child(2) {
    animation-delay: 0.2s;
}

.carousel-item.active .ebay-review-card:nth-child(3) {
    animation-delay: 0.3s;
}

.carousel-item.active .ebay-review-card:nth-child(4) {
    animation-delay: 0.4s;
}
