/* =========================================================================
   Namiti_ReviewImport — clean review list + media gallery
   Scoped to #customer-reviews to override the theme's 3-column rating layout.
   ========================================================================= */

#customer-reviews.namiti-review-list {
    max-width: 880px;
    margin: 32px 0;
}

#customer-reviews .namiti-review-list-title {
    margin-bottom: 20px;
    border-bottom: 2px solid #ececec;
    padding-bottom: 10px;
}

#customer-reviews .namiti-review-list-title strong {
    font-size: 22px;
    font-weight: 600;
}

#customer-reviews .namiti-review-count {
    color: #999;
    font-size: 16px;
    margin-left: 6px;
}

/* List reset */
#customer-reviews .namiti-review-items {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Each review = card */
#customer-reviews .namiti-review {
    list-style: none !important;
    margin: 0 0 14px !important;
    padding: 18px 20px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* Header: author left, date right */
#customer-reviews .namiti-review-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 6px;
}

#customer-reviews .namiti-review-author {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

#customer-reviews .namiti-review-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* Ratings: single compact row, hide the redundant "Valutazione" label */
#customer-reviews .namiti-review-ratings {
    display: block !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}

#customer-reviews .namiti-review-ratings .rating-summary {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}

#customer-reviews .namiti-review-ratings .rating-label {
    display: none !important;
}

#customer-reviews .namiti-review-ratings .rating-result {
    margin: 0 !important;
}

/* Kill the theme's left offset/float on review content (old 3-column layout) */
#customer-reviews .namiti-review-content,
#customer-reviews .review-content {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    clear: both;
}

/* Title + text */
#customer-reviews .namiti-review-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

#customer-reviews .namiti-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* =========================================================================
   Media gallery
   ========================================================================= */
#customer-reviews .review-media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.review-media-item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.review-media-image {
    cursor: zoom-in;
}

.review-media-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    transition: transform .15s ease, box-shadow .15s ease;
}

.review-media-image:hover .review-media-thumb {
    transform: scale(1.03);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.review-media-video video {
    width: 200px;
    max-height: 150px;
    border-radius: 6px;
    display: block;
    background: #000;
}

.review-media-embed iframe {
    width: 240px;
    height: 135px;
    border-radius: 6px;
    display: block;
    border: 0;
}

/* =========================================================================
   Lightbox overlay
   ========================================================================= */
.namiti-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.namiti-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, .6);
}

.namiti-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.namiti-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 12px;
    user-select: none;
}

.namiti-lightbox-prev { left: 8px; }
.namiti-lightbox-next { right: 8px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 600px) {
    #customer-reviews .namiti-review { padding: 14px 14px; }
    .review-media-thumb { width: 72px; height: 72px; }
    #customer-reviews .namiti-review-head { flex-wrap: wrap; }
}
