/* PhotoProof Reviews — frontend */
:root{ --ppr-star:#F5A623; --ppr-accent:#5A47D6; }

.ppr-stars-display span{ color:#dcdcdc; letter-spacing:1px; }
.ppr-stars-display span.on{ color:var(--ppr-star); }

.ppr-summary-stars{ display:flex; align-items:center; gap:8px; margin:4px 0 10px; font-size:15px; }
.ppr-summary-count{ color:#666; text-decoration:underline; }

.ppr-reviews-block{ margin-top:10px; font-family:inherit; }

/* Summary header */
.ppr-summary{ display:flex; flex-wrap:wrap; gap:32px; align-items:center; padding:24px; background:linear-gradient(135deg,#faf9ff 0%,#f4f1ff 100%); border:1px solid #ece9fb; border-radius:18px; margin-bottom:22px; }
.ppr-summary-score{ display:flex; flex-direction:column; align-items:center; min-width:130px; }
.ppr-avg{ font-size:46px; font-weight:800; line-height:1; color:#1d1d1f; }
.ppr-summary-score .ppr-stars-display{ font-size:18px; margin:4px 0; }
.ppr-total{ font-size:13px; color:#777; }
.ppr-breakdown{ flex:1; min-width:220px; }
.ppr-bd-row{ display:flex; align-items:center; gap:10px; margin:3px 0; font-size:13px; }
.ppr-bd-label{ width:28px; color:#555; }
.ppr-bd-bar{ flex:1; height:9px; background:#eee; border-radius:6px; overflow:hidden; }
.ppr-bd-fill{ display:block; height:100%; background:var(--ppr-star); }
.ppr-bd-n{ width:30px; text-align:right; color:#888; }

/* Photo strip */
.ppr-photo-strip{ display:flex; gap:10px; overflow-x:auto; padding-bottom:10px; margin-bottom:20px; }
.ppr-photo-strip .ppr-thumb{ flex:0 0 auto; }

.ppr-thumb{ position:relative; display:inline-block; width:84px; height:84px; border-radius:10px; overflow:hidden; cursor:pointer; border:1px solid #eee; }
.ppr-thumb img, .ppr-thumb video{ width:100%; height:100%; object-fit:cover; display:block; }
.ppr-thumb .ppr-play{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; background:rgba(0,0,0,.32); }

/* List / grid */
.ppr-list{ display:grid; gap:16px; }
.ppr-layout-grid .ppr-list{ grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); }
.ppr-card{ border:1px solid #ececec; border-radius:14px; padding:16px; background:#fff; }
.ppr-card-head{ display:flex; gap:10px; align-items:center; margin-bottom:6px; }
.ppr-avatar{ width:38px; height:38px; border-radius:50%; background:var(--ppr-accent); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.ppr-author{ font-weight:600; color:#222; }
.ppr-verified{ font-size:11px; color:#1a8c3c; background:#e8f7ec; padding:1px 7px; border-radius:20px; margin-left:6px; }
.ppr-date{ display:block; font-size:12px; color:#999; }
.ppr-card-rating{ margin-bottom:6px; }
.ppr-card-title{ font-weight:700; color:#222; margin-bottom:4px; }
.ppr-card-content{ color:#444; line-height:1.55; font-size:14.5px; }
.ppr-card-media{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.ppr-card-media .ppr-thumb{ width:70px; height:70px; }
.ppr-reply{ margin-top:12px; padding:10px 12px; background:#f6f6f8; border-radius:9px; font-size:13.5px; color:#555; }
.ppr-card-foot{ margin-top:12px; }
.ppr-helpful{ background:none; border:1px solid #ddd; border-radius:20px; padding:5px 13px; cursor:pointer; font-size:13px; color:#555; }
.ppr-helpful:hover{ border-color:var(--ppr-accent); color:var(--ppr-accent); }
.ppr-empty{ color:#888; padding:18px; text-align:center; }

/* Write form */
.ppr-write{ margin-top:30px; padding-top:24px; border-top:1px solid #eee; }
.ppr-write h3{ margin:0 0 6px; }
.ppr-write-note{ background:#FFF7E6; border:1px solid #FFE0A3; color:#8a6d00; padding:9px 12px; border-radius:9px; font-size:14px; display:inline-block; }
.ppr-review-form .ppr-field{ margin-bottom:16px; }
.ppr-review-form label{ display:block; font-weight:600; margin-bottom:5px; font-size:14px; color:#333; }
.ppr-review-form input[type=text],.ppr-review-form input[type=email],.ppr-review-form textarea,.ppr-review-form select{ width:100%; max-width:480px; padding:10px 12px; border:1px solid #d6d6d6; border-radius:9px; font-size:15px; box-sizing:border-box; }
.ppr-review-form textarea{ min-height:100px; }
.ppr-stars{ font-size:30px; cursor:pointer; color:#ddd; display:inline-flex; gap:3px; user-select:none; }
.ppr-stars span.on{ color:var(--ppr-star); }
.ppr-files-preview{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.ppr-files-preview img,.ppr-files-preview video{ width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid #eee; }
.ppr-submit{ background:linear-gradient(120deg,var(--ppr-accent),#7d4bd0); color:#fff; border:0; padding:14px 36px; border-radius:11px; font-size:16px; font-weight:700; cursor:pointer; box-shadow:0 12px 26px -12px var(--ppr-accent); transition:filter .15s, transform .1s; }
.ppr-submit:hover{ filter:brightness(1.07); }
.ppr-submit:active{ transform:translateY(1px); }

/* Media collections */
.ppr-gallery-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
.ppr-carousel{ display:flex; gap:12px; overflow-x:auto; padding-bottom:12px; scroll-snap-type:x mandatory; }
.ppr-carousel .ppr-mc-item{ flex:0 0 auto; width:170px; height:170px; scroll-snap-align:start; }
.ppr-mc-item{ position:relative; display:block; border-radius:12px; overflow:hidden; cursor:pointer; border:1px solid #eee; }
.ppr-gallery-grid .ppr-mc-item{ aspect-ratio:1/1; }
.ppr-mc-item img,.ppr-mc-item video{ width:100%; height:100%; object-fit:cover; display:block; }
.ppr-mc-item .ppr-play{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:26px; background:rgba(0,0,0,.3); }
.ppr-mc-stars{ position:absolute; left:6px; bottom:6px; background:rgba(0,0,0,.55); border-radius:20px; padding:2px 7px; }
.ppr-mc-stars .ppr-stars-display span{ color:#555; }
.ppr-mc-stars .ppr-stars-display span.on{ color:var(--ppr-star); }

/* Lightbox */
.ppr-lightbox{ position:fixed; inset:0; background:rgba(0,0,0,.85); z-index:99999; display:flex; align-items:center; justify-content:center; }
.ppr-lightbox .ppr-lb-content img,.ppr-lightbox .ppr-lb-content video{ max-width:90vw; max-height:88vh; border-radius:10px; }
.ppr-lb-close{ position:absolute; top:18px; right:26px; color:#fff; font-size:40px; cursor:pointer; line-height:1; }

/* Toast */
.ppr-toast{ position:fixed; right:20px; bottom:20px; max-width:340px; background:#fff; border:1px solid #e4e4e4; border-left:5px solid #1a8c3c; box-shadow:0 10px 40px rgba(0,0,0,.15); border-radius:12px; padding:16px 18px; z-index:99999; }
.ppr-toast p{ margin:0 0 6px; font-size:14px; color:#333; }
.ppr-toast-coupon code{ background:#f3f1ff; color:var(--ppr-accent); padding:3px 8px; border-radius:6px; font-weight:700; }
.ppr-toast-x{ position:absolute; top:6px; right:10px; border:0; background:none; font-size:20px; cursor:pointer; color:#999; }

@media(max-width:600px){
	.ppr-summary{ gap:18px; padding:16px; }
	.ppr-avg{ font-size:38px; }
}
