/**
 * Heureka Reviews Scrollable Container
 * Compact horizontal scrollable tiles with intro as first tile
 */

.heureka-reviews-scroll-wrapper {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

/* Scrollable Container */
.heureka-reviews-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ffa502 #f1f3f5;
    width: 100%;
    max-width: 100%;
}

.heureka-reviews-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.heureka-reviews-scroll-container::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}

.heureka-reviews-scroll-container::-webkit-scrollbar-thumb {
    background: #ffa502;
    border-radius: 10px;
}

.heureka-reviews-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #ff8800;
}

/* Intro Tile (First Tile) */
.heureka-intro-tile {
    flex: 0 0 280px;
    background: white;
    color: #2c3e50;
    border: 2px solid #ffa502;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 16px rgba(255, 165, 2, 0.15);
}

.heureka-intro-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.heureka-intro-rating {
    margin-bottom: 0.5rem;
}

.heureka-rating-big {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #ffa502;
}

.heureka-rating-small {
    font-size: 1.2rem;
    opacity: 0.7;
    color: #6c757d;
}

.heureka-intro-stars {
    margin-bottom: 1rem;
}

.heureka-intro-stars .vc-rating-stars {
    display: inline-block;
}

.heureka-intro-text {
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem 0;
    opacity: 0.95;
}

.heureka-intro-text small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.heureka-intro-link {
    color: #ffa502;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 165, 2, 0.1);
    border-radius: 20px;
    transition: all 0.3s;
}

.heureka-intro-link:hover {
    background: rgba(255, 165, 2, 0.2);
    transform: translateY(-2px);
}

/* Review Tiles */
.vc-testimonials-column {
    flex: 0 0 320px;
}

.vc-rating-item {
    height: 100%;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vc-rating-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #ffa502;
}

.vc-rating-text {
    flex: 1;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
}

.vc-rating-text q {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2c3e50;
    font-style: italic;
    quotes: none;
    display: block;
}

.vc-rating-text q:before,
.vc-rating-text q:after {
    content: '';
}

.vc-rating-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.vc-rating-product-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.vc-rating-product-container .product-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vc-rating-product-container .brand-logo {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.model-rating-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 4px;
    white-space: nowrap;
}

.vc-rating-product {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vc-rating-product em {
    font-style: italic;
}

.vc-rating-product .product-quantity {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.vc-rating-product .product-tire-icon {
    font-size: 0.9rem;
    color: #ffa502;
}

.vc-rating-author {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.vc-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Star Ratings */
.vc-rating-stars {
    position: relative;
    display: inline-flex;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 2px;
}

.vc-rating-stars::before {
    content: '★★★★★';
    color: #e9ecef;
}

.vc-rating-stars-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.vc-rating-stars-progress::before {
    content: '★★★★★';
    color: #ffa502;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .heureka-reviews-scroll-wrapper {
        padding: 1.5rem 0;
    }

    .heureka-intro-tile {
        flex: 0 0 240px;
        padding: 1.25rem;
    }

    .heureka-rating-big {
        font-size: 2.5rem;
    }

    .heureka-intro-heading {
        font-size: 1rem;
    }

    .vc-testimonials-column {
        flex: 0 0 280px;
    }

    .vc-rating-item {
        padding: 1.25rem;
    }
}

/* Smooth scroll hint */
.heureka-reviews-scroll-container::after {
    content: '';
    flex: 0 0 1px;
}

/* Latest Orders Ticker */
.latest-orders-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.latest-orders-scroll::-webkit-scrollbar {
    display: none;
}

.latest-orders-scroll .order-item {
    white-space: nowrap;
    font-size: 0.85rem;
    color: #495057;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.latest-orders-scroll .order-item:hover {
    border-color: #ffa502;
    transform: translateY(-1px);
}

.latest-orders-scroll .order-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.latest-orders-scroll .order-item em {
    font-style: italic;
    color: #6c757d;
}

.latest-orders-scroll .order-item .order-count {
    font-weight: 700;
    color: #ffa502;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
}

.latest-orders-scroll .order-item .order-time {
    color: #adb5bd;
    font-size: 0.8rem;
    margin-left: 0.4rem;
}
