/* Latest reviews carousel [store_recent_reviews] */

.store-recent-reviews {
    width: 100%;
    margin: 0 0 var(--store-space-8);
}

.store-recent-reviews__carousel {
    margin-bottom: 0;
}

.store-recent-reviews__carousel .store-gallery-carousel__shell::before,
.store-recent-reviews__carousel .store-gallery-carousel__shell::after {
    display: none;
    content: none;
}

.store-recent-reviews__carousel.is-revealed .store-gallery-carousel__track {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

.store-recent-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--store-space-4);
    margin-bottom: var(--store-space-4);
}

.store-recent-reviews__title {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--store-color-text);
}

.store-recent-reviews__controls {
    margin-bottom: 0;
}

.store-recent-reviews__track > .store-recent-reviews__card {
    flex: 0 0 var(--store-gallery-carousel-card-basis, calc(33.333% - 15px));
    min-width: 0;
    height: auto;
}

.store-recent-reviews__card-inner {
    display: flex;
    flex-direction: column;
    gap: var(--store-space-3);
    height: 100%;
    padding: var(--store-space-4);
    border: 1px solid var(--store-role-panel-border);
    border-radius: var(--store-radius-card);
    background: var(--store-role-elevated-bg);
    box-shadow: var(--store-role-panel-shadow);
}

.store-recent-reviews__product {
    display: flex;
    align-items: center;
    gap: var(--store-space-3);
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.store-recent-reviews__product:hover,
.store-recent-reviews__product:focus-visible {
    color: var(--store-color-primary);
    outline: none;
}

.store-recent-reviews__product-thumb {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    border: 1px solid var(--store-role-panel-border);
    border-radius: var(--store-radius-control);
    background: var(--store-color-surface-soft);
}

.store-recent-reviews__product-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 64px;
    max-height: 56px;
    object-fit: scale-down;
}

.store-recent-reviews__product-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--store-color-text);
}

.store-recent-reviews__meta {
    margin-bottom: 0;
}

.store-recent-reviews__rating .store-product-rating__count {
    display: none;
}

.store-recent-reviews__content {
    flex: 1 1 auto;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.store-recent-reviews__content p {
    margin: 0;
}

.store-recent-reviews__card-inner .store-product-reviews__images {
    margin-top: 0;
}

.store-recent-reviews__card-inner .store-product-reviews__image-link {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 96px;
    line-height: 0;
    background: var(--store-color-surface-soft);
}

.store-recent-reviews__card-inner .store-product-reviews__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 96px;
    object-fit: scale-down;
}

@media (max-width: 640px) {
    .store-recent-reviews__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-recent-reviews__controls {
        align-self: flex-end;
    }

    .store-recent-reviews__card-inner {
        padding: var(--store-space-3);
    }

    .store-recent-reviews__content {
        -webkit-line-clamp: 4;
    }
}
