/* SrinakornGem V6.21.7 — understated, purchase-verified reviews */
.sg217-card-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px;color:#88672e;font-size:11px;line-height:1.45}
.sg217-stars{color:#b48a3d;letter-spacing:.06em;white-space:nowrap}
.sg217-card-meta .sg217-stars{color:#77571d;font-weight:650;letter-spacing:0}
.sg6266-card-unrated{color:#655a4c}
.sg217-best{background:#f5ecdf;border-radius:14px;padding:2px 7px;font-weight:650;color:#825c24}
.sg217-reviews{border:1px solid #e6d9c8;border-radius:16px;background:#fff;margin:18px 0;padding:0 16px;color:#24211d}
.sg217-reviews>summary{padding:17px 0;list-style:none;cursor:pointer;display:flex;gap:12px;align-items:center;justify-content:space-between;font-weight:700;font-size:15px}
.sg217-reviews>summary::-webkit-details-marker{display:none}.sg217-reviews>summary::after{content:'⌄';font-size:19px;color:#9c7d4f}
.sg217-reviews[open]>summary::after{content:'⌃'}
.sg217-review-list{border-top:1px solid #eee5d9;padding:7px 0 12px}.sg217-review{padding:14px 0;border-bottom:1px solid #f0e7dc}
.sg217-review:last-child{border-bottom:0}.sg217-review p{font-size:13px;margin:7px 0;white-space:pre-line;overflow-wrap:anywhere;line-height:1.65;color:#4c4135}
.sg217-review small{color:#86786a;font-size:11px}.sg217-review .sg217-photo{display:block;max-width:180px;width:100%;height:auto;max-height:170px;object-fit:contain;border-radius:9px;margin:7px 0}
.sg217-reply{padding:9px 12px;background:#f8f3eb;border-radius:8px;font-size:12px;margin-top:8px;white-space:pre-line}
.sg217-empty{font-size:13px;color:#817366;padding:12px 0;margin:0}
.sg217-tabs{display:flex;align-items:center;gap:8px;margin:0 0 17px;flex-wrap:wrap}.sg217-tabs button{background:white;color:#554635;border:1px solid #e0d4c6;border-radius:13px;padding:10px 15px;cursor:pointer;font:inherit;font-size:13px}
.sg217-tabs button[aria-selected='true']{background:#a77d3b;color:white;border-color:#a77d3b}
.sg217-shop{padding:16px;background:#fff;border:1px solid #e5d8c6;border-radius:15px;margin-top:12px}
.sg217-review-cta{margin:16px 0;padding:15px;background:#fff;border-radius:14px;border:1px solid #e5d8c6;display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.sg217-review-cta button,.sg217-modal button.sg217-primary{background:#9f7334;border:0;color:white;border-radius:10px;padding:10px 16px;font:inherit;font-size:13px;cursor:pointer}
.sg217-modal{border:1px solid #e7dacc;border-radius:17px;max-width:min(540px,94vw);width:100%;padding:24px;background:#fff;color:#241f1b;box-shadow:0 20px 80px #1f140f40;max-height:90dvh;overflow:auto}
.sg217-modal::backdrop{background:#0006}.sg217-modal form{display:grid;gap:13px}.sg217-modal label{display:grid;gap:5px;font-size:13px;font-weight:600}.sg217-modal input,.sg217-modal select,.sg217-modal textarea{width:100%;border:1px solid #ddd0c1;border-radius:10px;padding:10px;font:inherit;box-sizing:border-box;background:white;color:#24211d}
.sg217-modal input[type=checkbox]{width:auto}.sg217-modal .sg217-legal{display:flex;align-items:start;gap:8px}.sg217-modal .sg217-actions{display:flex;gap:8px;flex-wrap:wrap}.sg217-modal button{cursor:pointer}
.sg217-modal button.sg217-muted{border:1px solid #e5d7c5;background:white;color:#463726;border-radius:10px;padding:10px 15px}
.sg217-modal p.sg217-error{color:#9c3b25;font-size:13px}.sg217-modal h2{margin:0;font-size:20px}.sg217-modal p{font-size:13px;color:#71665d}
.sg217-portfolio-reviews{min-height:150px;max-width:830px;margin:auto}.sg217-photo-note{font-size:11px;color:#86786a}
@media(max-width:650px){.sg217-reviews{padding:0 12px;margin:12px 0}.sg217-review-cta{padding:12px}.sg217-modal{padding:16px}}

#portfolioGrid[hidden],.pg-list-bottom[hidden],#sg217PortfolioTabs[hidden],#sg217ProductReviews[hidden]{display:none!important}

/* V6.21.8: visible review heading even when there are zero approved reviews. */
.sg217-reviews>summary>span[data-sg217-title]{display:flex;gap:10px;align-items:center;justify-content:space-between;flex:1;min-width:0;flex-wrap:wrap}
.sg218-review-summary{font-size:12px;white-space:nowrap;color:#a37b37;letter-spacing:.035em;font-weight:650}
@media(max-width:650px){.sg218-review-summary{font-size:11px}}

/* V6.22.0 — review entry appears inside a delivered order, not on product or tracking pages. */
.sg220-order-history{max-width:100%}
.sg220-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.sg220-order-head h2{margin-bottom:5px}
.sg220-order-list{display:grid;gap:11px}
.sg220-order{background:#fff;border:1px solid #e9dbca;border-radius:14px;padding:15px;display:grid;gap:10px}
.sg220-order-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sg220-order-row strong{font-size:14px}.sg220-order-row p{margin:4px 0;font-size:13px}
.sg220-order-row small{font-size:11px}
.sg220-review-state{font-size:11px;background:#f7f2eb;color:#816b4e;border-radius:999px;padding:5px 9px;white-space:normal}
.sg220-review-states{display:flex;gap:6px;flex-wrap:wrap}
.sg220-order .sg220-review-btn{justify-self:start;background:#a57b3b;color:#fff;border-color:#a57b3b}
.sg220-review-note{font-size:12px;margin:0}
.sg220-history-link{color:#86612b;text-decoration:underline;text-underline-offset:3px;font-size:13px;justify-self:start;margin-bottom:3px}
@media(max-width:650px){.sg220-order{padding:12px}.sg220-order .sg220-review-btn{width:100%}}

/* Account's three tabs; keep compact on phone without wrapping rows. */
.sg182-account-layout .sg182-account-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:640px){.sg182-account-layout .sg182-account-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.sg182-account-layout .sg182-account-tabs .sg182-tab{font-size:12px;padding:9px 3px;line-height:1.3;overflow-wrap:anywhere}}

/* V6271: one approved-review display shared by the catalog cards and product page. */
.sg6271-card{display:flex;flex-direction:column}
.catalog-grid .sg6271-card>.sg6271-card-main{height:auto;display:block}
.sg6271-card>.product-meta{margin-top:auto}
.sg6271-title-link{display:block;color:inherit;text-decoration:none}
.sg6271-title-link:hover p{text-decoration:underline;text-underline-offset:3px}
.sg6271-review-link{display:inline-flex;align-items:center;gap:5px;min-height:28px;color:#89672d;text-decoration:none;font-weight:600;line-height:1.4}
.sg6271-review-link:hover .sg6271-review-count{text-decoration:underline;text-underline-offset:3px}
.sg6271-review-link:focus-visible{outline:2px solid #a57b3b;outline-offset:3px;border-radius:4px}
.sg6271-review-stars{font-size:13px;letter-spacing:.035em;color:#a77b2b;white-space:nowrap}
.sg6271-review-count{font-size:11px;white-space:nowrap;color:#76604a}
.sg6271-card .sg217-card-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.sg6271-card .sg217-card-meta[hidden]{display:none!important}
#sg217ProductReviews{scroll-margin-top:90px}
@media(max-width:640px){.sg6271-review-link{gap:4px;min-height:26px}.sg6271-review-stars{font-size:11px;letter-spacing:0}.sg6271-review-count{font-size:10px}.sg6271-card .sg217-card-meta{gap:4px}}
