.thm-pr{--gold:#bc9146;--gold-dark:#8b5b19;--blue:#06a6df;--border:#d8d8d8;--muted:#777;font-family:inherit;background:#fafafa;border-radius:12px;overflow:hidden;color:#171717}.thm-pr *{box-sizing:border-box}.thm-pr-heading{font-size:20px;font-weight:700;letter-spacing:.4px;color:var(--gold-dark);padding:16px 20px;background:#f4f4f4;border-bottom:1px solid #e7e7e7}.thm-pr-inner{padding:18px 20px 26px}.thm-pr h3{font-size:18px;margin:0 0 12px}.thm-pr-summary{display:grid;grid-template-columns:170px 1fr 210px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;min-height:142px}.thm-pr-score,.thm-pr-action{display:flex;flex-direction:column;align-items:center;justify-content:center}.thm-pr-score{border-right:1px solid var(--border)}.thm-pr-score strong{font-size:46px;color:#c89b4c;line-height:1}.thm-pr-score span{font-size:39px;color:#c89b4c}.thm-pr-score small{font-weight:700;font-size:12px;margin-top:7px}.thm-pr-bars{padding:8px 20px}.thm-pr-bar-row{display:grid;grid-template-columns:48px minmax(120px,1fr) 150px;gap:10px;align-items:center;min-height:25px;font-size:14px}.thm-pr-star-label{white-space:nowrap}.thm-pr-bar{height:14px;background:#eee;border-radius:3px;overflow:hidden}.thm-pr-bar i{display:block;height:100%;background:var(--gold)}.thm-pr-action{border-left:1px solid var(--border)}.thm-pr-btn{border:0!important;border-radius:999px!important;background:var(--gold)!important;color:#fff!important;font-weight:700!important;padding:12px 22px!important;line-height:1.2!important;cursor:pointer}.thm-pr-review-list{margin:18px 0 8px}.thm-pr-empty{margin:12px 0}.thm-pr-review-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #e6e6e6}.thm-pr-avatar img{border-radius:50%}.thm-pr-review-body{flex:1}.thm-pr-review-head{display:flex;align-items:center;gap:10px}.thm-pr-item-stars{color:#ff9518;letter-spacing:1px}.thm-pr-verified{display:inline-block;margin:4px 0 6px;color:#178a40;font-size:12px}.thm-pr-content p{margin:4px 0 8px}.thm-pr-review-body time,.thm-pr-question-item time{font-size:12px;color:#888}.thm-pr-images{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.thm-pr-images img{width:74px;height:74px;object-fit:cover;border-radius:5px;border:1px solid #ddd}.thm-pr hr{border:0;border-top:1px solid #ddd;margin:22px 0}.thm-pr-qa h4{margin:0 0 12px}.thm-pr-question-form{border:1px solid #cfcfcf;border-radius:12px;overflow:hidden;background:#fff}.thm-pr textarea,.thm-pr input[type=text],.thm-pr input[type=email]{width:100%;border:1px solid #ddd!important;box-shadow:none!important;background:#fff!important;color:#333!important}.thm-pr-question-form textarea{border:0!important;border-bottom:1px solid #ddd!important;border-radius:0!important;resize:vertical;padding:12px}.thm-pr-question-meta{display:grid;grid-template-columns:210px 1fr 1fr auto;gap:10px;padding:10px;align-items:center}.thm-pr-question-meta input[type=text],.thm-pr-question-meta input[type=email]{height:38px;margin:0!important}.thm-pr-gender{display:flex;gap:16px}.thm-pr-question-item{padding:12px 0;border-bottom:1px solid #eee}.thm-pr-pagination{display:flex;gap:6px;justify-content:center;margin:15px 0}.thm-pr-pagination button{width:34px;height:34px;border:1px solid #ddd;background:#fff;border-radius:4px}.thm-pr-pagination button.active{background:var(--gold);color:#fff;border-color:var(--gold)}
.thm-pr-modal{display:none;position:fixed;z-index:999999;inset:0;background:rgba(0,0,0,.55);padding:20px;align-items:center;justify-content:center}.thm-pr-modal.is-open{display:flex}.thm-pr-modal-dialog{position:relative;background:#fff;border-radius:5px;width:min(590px,100%);max-height:92vh;overflow:auto;padding:20px}.thm-pr-close{position:absolute!important;right:6px;top:4px;width:28px;height:28px;padding:0!important;border:0!important;border-radius:50%!important;background:#000!important;color:#fff!important;font-size:26px!important;line-height:25px!important}.thm-pr-modal h3{padding-right:30px;font-size:18px;line-height:1.35;margin:0 0 20px}.thm-pr-review-form textarea{background:#f1f1f1!important;border:1px solid #ddd!important;border-radius:8px!important;padding:10px;resize:vertical}.thm-pr-upload-row{display:flex;align-items:center;justify-content:space-between;background:#f7f7f7;padding:8px;margin-top:7px;font-size:13px}.thm-pr-upload-label{font-weight:700;color:#06a6df;cursor:pointer}.thm-pr-char-count{color:#999}.thm-pr-preview{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.thm-pr-preview img{width:58px;height:58px;object-fit:cover;border-radius:4px}.thm-pr-stars-wrap{display:grid;grid-template-columns:150px 1fr;gap:15px;align-items:center;padding:18px 0 10px}.thm-pr-stars-title{font-size:13px;font-weight:700}.thm-pr-stars{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.thm-pr-star{border:0!important;background:none!important;padding:0!important;color:#999!important;text-align:center;cursor:pointer}.thm-pr-star b{display:block;color:#ff9419;font-size:29px;font-weight:400;line-height:1}.thm-pr-star span{display:block;font-size:12px;margin-top:7px;white-space:nowrap}.thm-pr-star:not(.active) b{opacity:.55}.thm-pr-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.thm-pr-fields input{background:#eee!important;height:38px!important;border-radius:3px!important}.thm-pr-remember{display:block;font-size:12px;font-weight:600;margin:18px 10px}.thm-pr-submit-wrap{text-align:center}.thm-pr-submit{border:0!important;border-radius:3px!important;background:#08a7dd!important;color:#fff!important;font-weight:700!important;padding:13px 30px!important}.thm-pr-form-message{text-align:center;margin-top:10px;font-weight:600}.thm-pr-form-message.error{color:#c62828}.thm-pr-form-message.success{color:#2e7d32}.thm-pr-modal-open{overflow:hidden}
@media(max-width:767px){.thm-pr-inner{padding:14px 12px 20px}.thm-pr-heading{font-size:17px;padding:13px 14px}.thm-pr-summary{grid-template-columns:1fr;overflow:visible}.thm-pr-score{border-right:0;border-bottom:1px solid var(--border);padding:15px}.thm-pr-bars{padding:10px}.thm-pr-bar-row{grid-template-columns:42px 1fr 100px;gap:6px;font-size:12px}.thm-pr-action{border-left:0;border-top:1px solid var(--border);padding:15px}.thm-pr-question-meta{grid-template-columns:1fr 1fr}.thm-pr-gender{grid-column:1/-1}.thm-pr-question-meta button{grid-column:1/-1;justify-self:end}.thm-pr-stars-wrap{grid-template-columns:1fr}.thm-pr-stars-title br{display:none}.thm-pr-star span{font-size:10px;white-space:normal}.thm-pr-fields{grid-template-columns:1fr;gap:10px}.thm-pr-modal{padding:8px}.thm-pr-modal-dialog{padding:16px 14px}.thm-pr-upload-row{align-items:flex-start;gap:8px}.thm-pr-char-count{text-align:right;font-size:11px}}

/* v1.1 - Q&A admin replies */
.thm-pr-answers{margin:12px 0 0 28px;border-left:3px solid #c19a57;padding-left:12px}.thm-pr-answer{background:#faf8f4;border-radius:6px;padding:10px 12px;margin-top:8px}.thm-pr-answer-head{display:flex;gap:8px;align-items:center;margin-bottom:5px}.thm-pr-answer-head strong{color:#7a4b18}.thm-pr-answer-head span{font-size:10px;background:#b88b45;color:#fff;border-radius:10px;padding:2px 7px}.thm-pr-answer time{font-size:11px;color:#999}.thm-pr-upload-note{display:block;color:#999;margin-top:4px}.thm-pr-form-message.success{color:#238636;margin-top:8px}.thm-pr-form-message.error{color:#c62828;margin-top:8px}
@media(max-width:549px){.thm-pr-answers{margin-left:8px}.thm-pr-answer{padding:9px 10px}.thm-pr-answer-head{align-items:flex-start;flex-wrap:wrap}}

/* =========================================================
   v1.2 - Image uploader + customer photo gallery + UI polish
========================================================= */
.thm-pr{
    --gold:#bf9349;
    --gold-dark:#8a5a22;
    --ink:#2b241d;
    --muted:#8b857f;
    --line:#e4dfd8;
    --surface:#fff;
    --soft:#f7f5f2;
    --blue:#069fd7;
    color:var(--ink);
}
.thm-pr-heading{font-size:19px;line-height:1.2;font-weight:700;color:var(--gold-dark);letter-spacing:.35px;padding:15px 20px;background:#f7f7f7}
.thm-pr-inner>h3{font-size:16px;line-height:1.4;font-weight:700;color:#17120f;margin-bottom:13px}
.thm-pr-summary{border-color:var(--line);border-radius:8px;min-height:132px}
.thm-pr-score strong{font-size:44px;font-weight:600;color:var(--gold)}
.thm-pr-score span{font-size:36px;color:var(--gold)}
.thm-pr-score small{font-size:10px;letter-spacing:.1px;color:#17120f}
.thm-pr-bars{padding:9px 18px}
.thm-pr-bar-row{grid-template-columns:42px minmax(120px,1fr) 145px;gap:9px;min-height:25px;font-size:12px}
.thm-pr-star-label{font-weight:600;color:#17120f}
.thm-pr-bar{height:13px;border-radius:3px;background:#f0f0f0}
.thm-pr-bar i{background:var(--gold)}
.thm-pr-bar-text{font-size:12px;color:#17120f}
.thm-pr-btn{background:var(--gold)!important;font-size:12px!important;letter-spacing:.15px;padding:12px 23px!important}
.thm-pr-btn:hover{background:var(--gold-dark)!important}

/* Customer images above review list */
.thm-pr-customer-media{margin:22px 0 16px}
.thm-pr-customer-media-title{font-size:15px;font-weight:700;color:#17120f;margin:0 0 10px}
.thm-pr-customer-media-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px}
.thm-pr-customer-photo{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;border-radius:4px;background:#eee}
.thm-pr-customer-photo img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s ease}
.thm-pr-customer-photo:hover img{transform:scale(1.045)}
.thm-pr-customer-photo.is-more:after{content:"";position:absolute;inset:0;background:rgba(28,20,14,.45)}
.thm-pr-customer-photo-more{position:absolute;z-index:2;inset:0;display:flex;align-items:center;justify-content:center;padding:6px;text-align:center;color:#fff;font-size:11px;font-weight:700;line-height:1.35}

/* Review cards */
.thm-pr-review-list{margin-top:12px}
.thm-pr-review-item{gap:11px;padding:16px 2px;border-bottom:1px solid #eee8e1}
.thm-pr-avatar img{width:42px;height:42px}
.thm-pr-review-head{gap:8px;flex-wrap:wrap;font-size:13px}
.thm-pr-review-head strong{font-size:13px;color:#17120f}
.thm-pr-item-stars{font-size:13px;color:#e2aa40;letter-spacing:.5px}
.thm-pr-verified{font-size:11px;color:#a77c35;font-style:italic;margin:2px 0 5px}
.thm-pr-content{font-size:13px;line-height:1.55;color:#2a2521}
.thm-pr-review-body time{font-size:11px;color:#a27b49}
.thm-pr-images{gap:6px;margin:8px 0}
.thm-pr-images img{width:64px;height:64px;border-radius:4px;border:1px solid #ebe5de}

/* Modal */
.thm-pr-modal{background:rgba(0,0,0,.62)}
.thm-pr-modal-dialog{width:min(610px,100%);border-radius:8px;padding:20px 20px 22px;box-shadow:0 18px 50px rgba(0,0,0,.25)}
.thm-pr-modal h3{font-size:17px;color:#1d1712;margin-bottom:18px;font-weight:700}
.thm-pr-close{right:8px!important;top:8px!important;width:28px;height:28px;font-size:22px!important;line-height:26px!important;font-weight:400!important}
.thm-pr-review-form textarea{min-height:120px;background:#f2f2f2!important;border-color:#ddd!important;font-size:13px!important;color:#4c4641!important}
.thm-pr-upload-row{min-height:39px;margin-top:8px;padding:7px 9px;background:#f7f7f7;border-radius:2px;font-size:12px}
.thm-pr-upload-label{display:inline-flex;align-items:center;gap:7px;color:var(--blue);font-size:13px;font-weight:700;line-height:1;cursor:pointer}
.thm-pr-camera-icon{position:relative;display:inline-block;width:21px;height:15px;border:2px solid currentColor;border-radius:2px;flex:0 0 auto}
.thm-pr-camera-icon:before{content:"";position:absolute;left:4px;top:-6px;width:8px;height:5px;border-radius:2px 2px 0 0;background:currentColor}
.thm-pr-camera-icon:after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;border:2px solid currentColor;border-radius:50%;transform:translate(-50%,-50%);background:#f7f7f7}
.thm-pr-char-count{font-size:11px;color:#aaa}
.thm-pr-upload-note{display:block;margin:5px 0 0;color:#9a948e;font-size:11px}

/* Selected image preview */
.thm-pr-preview{display:flex;align-items:flex-start;gap:9px;flex-wrap:wrap;margin:10px 0 2px;min-height:0}
.thm-pr-preview-item{position:relative;width:70px;height:70px;border-radius:5px;background:#f2f2f2}
.thm-pr-preview-item img{width:70px;height:70px;display:block;object-fit:cover;border:1px solid #ded8d1;border-radius:5px}
.thm-pr-preview-remove{position:absolute!important;right:-6px;top:-7px;width:22px!important;height:22px!important;min-height:0!important;padding:0!important;margin:0!important;border:2px solid #fff!important;border-radius:50%!important;background:#111!important;color:#fff!important;font-size:17px!important;font-weight:400!important;line-height:17px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 1px 3px rgba(0,0,0,.25);cursor:pointer}
.thm-pr-preview-add{width:70px!important;height:70px!important;min-height:70px!important;margin:0!important;padding:0!important;border:2px dashed #cfcac4!important;border-radius:5px!important;background:#fff!important;color:#b9b4ae!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer}
.thm-pr-preview-add:hover{border-color:var(--gold)!important;color:var(--gold)!important;background:#fffdf9!important}
.thm-pr-preview-add span{font-size:34px;font-weight:300;line-height:.8}
.thm-pr-preview-add small{font-size:9px;line-height:1.1;text-transform:none}

/* Rating selector */
.thm-pr-stars-wrap{grid-template-columns:155px 1fr;gap:12px;padding:18px 0 12px}
.thm-pr-stars-title{font-size:12px;line-height:1.35;color:#17120f}
.thm-pr-stars{gap:4px}
.thm-pr-star b{font-size:28px;color:#e2aa40;transition:transform .15s ease,opacity .15s ease}
.thm-pr-star span{font-size:11px;color:#9b958f;margin-top:6px}
.thm-pr-star:not(.active) b{opacity:.45}
.thm-pr-star:hover b,.thm-pr-star.active b{opacity:1;transform:scale(1.06)}
.thm-pr-fields{gap:18px}
.thm-pr-fields input{height:39px!important;background:#f0f0f0!important;border-color:#ddd!important;font-size:13px!important;color:#36302b!important}
.thm-pr-remember{font-size:11px;line-height:1.5;font-weight:600;color:#28231f;margin:16px 5px}
.thm-pr-submit{background:var(--gold)!important;border-radius:4px!important;font-size:12px!important;letter-spacing:.2px;padding:13px 30px!important}
.thm-pr-submit:hover{background:var(--gold-dark)!important}

/* Q&A polish */
.thm-pr-qa h4{font-size:14px;color:#17120f}
.thm-pr-question-form textarea{font-size:12px!important;color:#554f49!important}
.thm-pr-question-meta{grid-template-columns:205px 1fr 1fr auto}
.thm-pr-question-meta input[type=text],.thm-pr-question-meta input[type=email]{font-size:12px!important}
.thm-pr-gender{font-size:12px}
.thm-pr-gender label{display:flex;align-items:center;gap:5px;margin:0}

@media(max-width:900px){
    .thm-pr-customer-media-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}

@media(max-width:767px){
    .thm-pr-heading{font-size:16px;padding:13px 14px}
    .thm-pr-inner>h3{font-size:14px}
    .thm-pr-summary{grid-template-columns:1fr}
    .thm-pr-score{padding:13px}
    .thm-pr-score strong{font-size:38px}
    .thm-pr-score span{font-size:31px}
    .thm-pr-bar-row{grid-template-columns:34px 1fr 92px;font-size:11px;gap:6px}
    .thm-pr-bar-text{font-size:10px;white-space:nowrap}
    .thm-pr-bar{height:11px}
    .thm-pr-action{padding:13px}
    .thm-pr-customer-media{margin-top:17px}
    .thm-pr-customer-media-title{font-size:13px}
    .thm-pr-customer-media-grid{display:flex;overflow-x:auto;gap:6px;padding-bottom:3px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
    .thm-pr-customer-media-grid::-webkit-scrollbar{display:none}
    .thm-pr-customer-photo{flex:0 0 72px;width:72px;height:72px;aspect-ratio:auto}
    .thm-pr-customer-photo-more{font-size:9px;padding:4px}
    .thm-pr-modal{padding:7px}
    .thm-pr-modal-dialog{padding:16px 14px 18px;border-radius:7px}
    .thm-pr-modal h3{font-size:15px;line-height:1.35;margin-right:22px}
    .thm-pr-review-form textarea{min-height:118px;font-size:12px!important}
    .thm-pr-upload-row{padding:7px 6px}
    .thm-pr-upload-label{font-size:12px;gap:6px}
    .thm-pr-camera-icon{width:19px;height:14px}
    .thm-pr-char-count{font-size:10px}
    .thm-pr-preview{gap:8px}
    .thm-pr-preview-item,.thm-pr-preview-item img,.thm-pr-preview-add{width:64px!important;height:64px!important;min-height:64px!important}
    .thm-pr-stars-wrap{grid-template-columns:1fr;padding-top:15px;gap:9px}
    .thm-pr-stars-title{font-size:11px}
    .thm-pr-star b{font-size:26px}
    .thm-pr-star span{font-size:9px;line-height:1.25}
    .thm-pr-fields{grid-template-columns:1fr 1fr;gap:10px}
    .thm-pr-fields input{height:37px!important;font-size:12px!important}
    .thm-pr-remember{font-size:10px;margin:13px 2px}
    .thm-pr-submit{font-size:11px!important;padding:12px 26px!important}
    .thm-pr-question-meta{grid-template-columns:1fr 1fr}
}

@media(max-width:480px){
    .thm-pr-inner{padding:12px 10px 18px}
    .thm-pr-score strong{font-size:36px}
    .thm-pr-bar-row{grid-template-columns:31px 1fr 82px}
    .thm-pr-bar-text{font-size:9px}
    .thm-pr-customer-photo{flex-basis:68px;width:68px;height:68px}
    .thm-pr-fields{grid-template-columns:1fr;gap:8px}
    .thm-pr-preview-item,.thm-pr-preview-item img,.thm-pr-preview-add{width:60px!important;height:60px!important;min-height:60px!important}
}
