/* Review photo grid, lightbox and the product-page review design */
.sam-review-gallery { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1e5eb; }
.sam-review-gallery__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 800; font-size: .95rem; color: #2d1e25; }
.sam-review-gallery__title svg { width: 20px; height: 20px; color: #842244; }
.sam-review-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sam-review-gallery a.sam-review-gallery__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #f7eee9; }
.sam-review-gallery a.sam-review-gallery__item[hidden] { display: none; }
.sam-review-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.sam-review-gallery__item:hover img { transform: scale(1.05); }
.sam-review-gallery__item:focus-visible { outline: 2px solid #a12f52; outline-offset: 2px; }
.sam-review-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(40 20 30 / .5); color: #fff; font-size: 1.5rem; font-weight: 800; }

.sam-lightbox { position: fixed; inset: 0; z-index: 100200; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: rgb(24 18 22 / .82); backdrop-filter: blur(4px); }
.sam-lightbox[hidden] { display: none; }
.sam-lightbox__figure { margin: 0; display: grid; gap: 8px; justify-items: center; max-width: min(92vw, 900px); }
.sam-lightbox__figure img { max-width: 100%; max-height: 80vh; border-radius: 12px; background: #fff; object-fit: contain; }
.sam-lightbox__figure figcaption { color: #fff; font-size: .85rem; }
.sam-lightbox .sam-lightbox__close, .sam-lightbox .sam-lightbox__nav {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
    background: rgb(255 255 255 / .95); color: #842244; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: none;
}
.sam-lightbox .sam-lightbox__close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }
.sam-lightbox .sam-lightbox__nav[hidden] { display: none; }
html.sam-lightbox-open { overflow: hidden; }

/* Picker previews (account + product page) */
.sam-photo-input__previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sam-photo-input__previews:empty { display: none; }
.sam-photo-input__tile { position: relative; width: 68px; height: 68px; }
.sam-photo-input__tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid #ead6e1; }
.sam-photo-input__tile .sam-photo-input__remove {
    position: absolute; inset: -6px auto auto -6px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
    background: #842244; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgb(0 0 0 / .25);
}
.sam-photo-input__status { margin: 6px 0 0; color: #a02040; font-size: .82rem; }
.sam-photo-input__status:empty { display: none; }

/* Product page: review list (matches the approved design) */
#reviews.rb-product-reviews-inner { color: #2d1e25; }
#reviews .rb-product-reviews__header { position: relative; margin: 0 0 14px; padding: 2px 16px 2px 0; padding-inline: 16px 0; }
#reviews .rb-product-reviews__header::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: 0; width: 5px; border-radius: 5px; background: #842244; }
#reviews .woocommerce-Reviews-title { margin: 0 0 2px; font-size: 1.6rem; font-weight: 800; line-height: 1.5; }
#reviews .rb-product-reviews__lead { margin: 0; color: #5f5259; font-size: .95rem; line-height: 1.8; }
#reviews #comments ol.commentlist { list-style: none; margin: 0 0 18px; padding: 0; }
#reviews #comments ol.commentlist li.sam-review-item { margin: 0 0 14px; padding: 18px 18px 16px; border: 1px solid #f0d8e1; border-radius: 22px; background: #fff; box-shadow: 0 2px 14px rgb(132 34 68 / .05); list-style: none; }
#reviews #comments ol.commentlist li.sam-review-item::before, #reviews #comments ol.commentlist li.sam-review-item::after { display: none; }
#reviews .sam-review { display: block; margin: 0; padding: 0; border: 0; background: none; }
#reviews .sam-review__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
#reviews #comments ol.commentlist li img.sam-review__avatar,
#reviews #comments ol.commentlist li img.avatar,
#reviews .sam-review img.avatar { position: static !important; inset: auto !important; float: none !important; display: block; width: 56px !important; height: 56px !important; max-width: none; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50%; background: #e7e5e6; object-fit: cover; box-shadow: none; }
#reviews .sam-review__who { display: grid; gap: 4px; min-width: 0; }
#reviews .sam-review__who strong.woocommerce-review__author { font-size: 1.15rem; font-weight: 800; line-height: 1.4; }
#reviews #comments ol.commentlist li .sam-review .star-rating { position: relative; float: none; display: block; margin: 0; width: 5.4em; height: 1em; overflow: hidden; font-size: 1.15rem; line-height: 1; color: #dba035; }
#reviews .sam-review__meta { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
#reviews .sam-review__badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 999px; background: #fff1cc; color: #715118; font-size: .85rem; font-weight: 700; white-space: nowrap; }
#reviews .sam-review__badge.is-published { background: #e3f1e2; color: #2d6a31; }
#reviews .sam-review__badge svg { width: 17px; height: 17px; }
#reviews .sam-review__sep { width: 1px; height: 22px; background: #e3d3da; }
#reviews .sam-review__date { display: inline-flex; align-items: center; gap: 6px; color: #5f5259; font-size: .9rem; white-space: nowrap; }
#reviews .sam-review__date svg { width: 17px; height: 17px; }
#reviews #comments ol.commentlist li .sam-review__text.comment-text { margin: 14px 0 0; padding: 0; border: 0; background: none; font-size: 1.02rem; line-height: 2; overflow-wrap: anywhere; }
#reviews .sam-review__text p { margin: 0; }
#reviews .sam-review-gallery { margin-top: 14px; padding-top: 14px; }
#reviews .sam-review-gallery__title { font-size: 1.05rem; gap: 10px; }
#reviews .sam-review-gallery__title svg { width: 26px; height: 26px; }
#reviews .sam-review-gallery__grid { gap: 10px; }
#reviews .sam-review-gallery a.sam-review-gallery__item { border-radius: 18px; }

/* Product page: new review form card */
#reviews #review_form_wrapper { margin-top: 16px; padding: 0; border: 1px solid #f0d8e1; border-radius: 22px; background: #fff; box-shadow: 0 2px 14px rgb(132 34 68 / .05); overflow: hidden; }
#reviews #review_form #respond { margin: 0; padding: 0 20px 20px; }
#reviews #reply-title { display: flex; align-items: center; gap: 12px; margin: 0 -20px 18px; padding: 16px 20px; background: linear-gradient(180deg, #fcf3f7, #fff); border-bottom: 1px solid #f3e2e9; color: #842244; font-size: 1.3rem; font-weight: 800; }
#reviews #reply-title::before { content: "✎"; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: #f6e1ea; font-size: 1.1rem; }
#reviews .comment-form-rating { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
#reviews .comment-form-rating label { margin: 0; font-size: 1.05rem; font-weight: 700; }
#reviews .comment-form-rating .required, #reviews .comment-form-comment .required { color: #b3203f; }
#reviews .comment-form-rating p.stars { margin: 0; line-height: 1; }
#reviews .comment-form-rating p.stars a { color: #dba035; }
#reviews .comment-form-comment { margin: 0 0 14px; }
#reviews .comment-form-comment label { display: block; margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
#reviews .comment-form textarea { display: block; width: 100%; min-height: 110px; padding: 12px 14px; border: 1px solid #cfc7cb; border-radius: 12px; background: #fff; font: inherit; line-height: 1.9; box-shadow: none; }
#reviews .comment-form textarea:focus { border-color: #a73559; outline: 2px solid #a7355933; }
#reviews .sam-review-upload { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
#reviews .sam-review-upload__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
#reviews .sam-review-upload__icon { display: grid; place-items: center; width: 34px; height: 34px; color: #842244; }
#reviews .sam-review-upload__icon svg { width: 30px; height: 30px; }
#reviews .sam-review-upload__head strong { display: block; font-size: 1.05rem; }
#reviews .sam-review-upload__head small { display: block; color: #6f6169; font-size: .82rem; line-height: 1.6; }
#reviews label.sam-review-upload__button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 20px; border: 1px solid #d9a9bf; border-radius: 12px; background: #fff; color: #842244; font-weight: 700; cursor: pointer; }
#reviews label.sam-review-upload__button svg { width: 20px; height: 20px; }
#reviews label.sam-review-upload__button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#reviews .sam-review-upload .sam-photo-input__previews, #reviews .sam-review-upload .sam-photo-input__status { flex-basis: 100%; }
#reviews .comment-form .form-submit { margin: 0; }
#reviews .comment-form .form-submit input.submit { display: block; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #a73559, #842244) !important; color: #fff; font: inherit; font-size: 1.15rem; font-weight: 800; box-shadow: 0 8px 18px rgb(132 34 68 / .22); cursor: pointer; }

@media (max-width: 520px) {
    #reviews .sam-review__head { grid-template-columns: auto minmax(0, 1fr); }
    #reviews .sam-review__meta { grid-column: 1 / -1; justify-content: flex-start; }
    #reviews #comments ol.commentlist li.sam-review-item { padding: 14px; }
    #reviews .woocommerce-Reviews-title { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .sam-review-gallery__item img { transition: none; } }

#reviews .sam-review, #reviews .sam-review__head, #reviews .sam-review__text { margin-inline: 0; padding-inline: 0; }
#reviews ol.commentlist { margin-inline: 0; padding-inline: 0; }
#reviews .sam-review__who strong.woocommerce-review__author { overflow-wrap: anywhere; }
.sam-review-gallery__item.is-broken { display: grid; place-items: center; color: #842244; font-size: .72rem; text-align: center; padding: 4px; }

/* One header row at every width: avatar, name and stars on the right; date and status on the left */
#reviews .sam-review__head { grid-template-columns: auto minmax(0, 1fr) auto !important; gap: 10px; }
#reviews .sam-review__meta { grid-column: auto !important; justify-content: flex-start !important; flex-wrap: nowrap; gap: 8px; }
#reviews #comments ol.commentlist li img.sam-review__avatar, #reviews #comments ol.commentlist li img.avatar, #reviews .sam-review img.avatar { width: 50px !important; height: 50px !important; }
#reviews .sam-review__who strong.woocommerce-review__author { font-size: 1.02rem; }
#reviews #comments ol.commentlist li .sam-review .star-rating { font-size: 1rem; }
#reviews .sam-review__badge { padding: 4px 11px; font-size: .76rem; }
#reviews .sam-review__badge svg { width: 15px; height: 15px; }
#reviews .sam-review__date { font-size: .78rem; gap: 4px; }
#reviews .sam-review__date svg { width: 15px; height: 15px; }
#reviews .sam-review__sep { height: 18px; }
@media (max-width: 420px) {
    #reviews .sam-review__head { gap: 8px; }
    #reviews .sam-review__badge { padding: 3px 8px; font-size: .72rem; }
    #reviews .sam-review__date { font-size: .72rem; }
    #reviews .sam-review__date svg { display: none; }
    #reviews .sam-review__meta { gap: 6px; }
}

/* Video tiles: play badge on thumbnails, picker and lightbox */
.sam-review-gallery__item video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: #2a1d24; }
.sam-review-gallery__play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.sam-review-gallery__play svg { width: 38px; height: 38px; padding: 9px 7px 9px 11px; border-radius: 50%; background: rgb(255 255 255 / .92); color: #842244; box-shadow: 0 2px 10px rgb(0 0 0 / .3); box-sizing: border-box; }
.sam-photo-input__tile { overflow: visible; }
.sam-photo-input__tile video { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid #ead6e1; background: #2a1d24; }
.sam-photo-input__tile .sam-review-gallery__play { border-radius: 12px; }
.sam-photo-input__tile .sam-review-gallery__play svg { width: 28px; height: 28px; padding: 6px 5px 6px 8px; }
.sam-lightbox__figure video { max-width: 100%; max-height: 80vh; border-radius: 12px; background: #000; }
.sam-lightbox__figure video[hidden], .sam-lightbox__figure img[hidden] { display: none; }
