/* Chan Organic V85.0–V85.2 — Customer / Review UI */

.customer-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px}
.customer-summary-strip article{padding:14px 16px;border:1px solid #e1e8e3;border-radius:14px;background:#fff}
.customer-summary-strip strong{display:block;color:#27563d;font-size:22px;line-height:1.1}
.customer-summary-strip span{display:block;margin-top:4px;color:#7b8981;font-size:12px}

.customer-admin-table small{display:block;color:#849087;margin-top:2px}
.customer-admin-identity{display:flex;align-items:center;gap:10px;min-width:230px}
.customer-admin-identity>img,.customer-admin-identity>span{width:42px;height:42px;flex:0 0 42px;border-radius:50%}
.customer-admin-identity>img{object-fit:cover}
.customer-admin-identity>span{display:grid;place-items:center;background:#edf4ef;color:#47705a;font-size:18px}
.customer-admin-identity>div{min-width:0}
.customer-admin-identity strong{display:block;color:#2e4939}
.customer-admin-identity small{overflow:hidden;max-width:310px;text-overflow:ellipsis;white-space:nowrap}
.customer-status{display:inline-flex;margin-top:5px;padding:3px 7px;border-radius:999px;font-size:10px;font-style:normal;font-weight:700}
.customer-status.is-active{background:#edf7ef;color:#397052}
.customer-status.is-suspended{background:#fff0f0;color:#a05050}
.customer-login-method{display:inline-flex;padding:5px 8px;border-radius:8px;background:#f5f8f6;color:#52685a;font-size:11px}

.customer-profile-hero{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.4fr);gap:16px;margin-bottom:16px}
.customer-profile-person,.customer-profile-metrics{border:1px solid #dfe7e1;border-radius:16px;background:#fff}
.customer-profile-person{display:flex;align-items:center;gap:13px;padding:18px}
.customer-profile-person>img,.customer-profile-person>span{width:64px;height:64px;flex:0 0 64px;border-radius:50%}
.customer-profile-person>img{object-fit:cover}
.customer-profile-person>span{display:grid;place-items:center;background:#edf4ef;color:#47705a;font-size:25px}
.customer-profile-person small,.customer-profile-person p{color:#7c8981}
.customer-profile-person h2{margin:2px 0 3px;color:#294936;font-size:20px}
.customer-profile-person p{margin:0;font-size:12px}
.customer-profile-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden}
.customer-profile-metrics article{display:grid;place-items:center;align-content:center;padding:15px;text-align:center;border-right:1px solid #edf1ee}
.customer-profile-metrics article:last-child{border-right:0}
.customer-profile-metrics strong{color:#2c6848;font-size:19px}
.customer-profile-metrics span{margin-top:4px;color:#7d8a82;font-size:10px}
.customer-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.customer-info-panel{margin:0}
.customer-detail-list{display:grid;grid-template-columns:1fr 1fr;margin:0;padding:15px 18px;gap:13px}
.customer-detail-list div{min-width:0}
.customer-detail-list dt{color:#879289;font-size:10px}
.customer-detail-list dd{margin:3px 0 0;color:#30493a;font-size:12px;font-weight:700}
.customer-address-box{padding:15px 18px;color:#42594a}
.customer-address-box p{margin:6px 0 0;color:#738078;line-height:1.7}

.customer-review-history,.review-admin-list{display:grid;gap:12px;padding:15px}
.review-history-card,.review-admin-card{padding:14px;border:1px solid #e0e8e2;border-radius:13px;background:#fff}
.review-history-card>div,.review-admin-head,.review-admin-footer{display:flex;justify-content:space-between;gap:12px;align-items:center}
.review-history-card span{color:#b17d19}
.review-history-card p,.review-admin-card>p{margin:8px 0;color:#52645a;line-height:1.65}
.review-history-card small,.review-admin-card small{color:#849087}
.review-stars-text{color:#d99a22;letter-spacing:1px;white-space:nowrap}
.review-admin-head strong{display:block;color:#2d4d39}
.review-admin-head span{display:block;margin-top:2px;color:#7d8982;font-size:11px}
.review-admin-buyer{display:flex;align-items:center;gap:7px;margin-top:9px;color:#627368;font-size:11px}
.review-admin-buyer em{padding:3px 6px;border-radius:999px;background:#edf7ef;color:#397052;font-size:9px;font-style:normal;font-weight:700}
.review-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:700}
.review-status.is-published{background:#edf7ef;color:#397052}
.review-status.is-hidden{background:#f2f3f2;color:#7c8680}
.review-admin-footer>div{display:flex;align-items:center;gap:8px}

.buyer-review-container{max-width:980px}
.buyer-review-list{display:grid;gap:14px}
.buyer-review-card{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:18px;padding:18px;border:1px solid #dfe7e1;border-radius:16px;background:#fff}
.buyer-review-card.is-reviewed{background:#fbfcfb}
.buyer-review-product{display:flex;align-items:flex-start;gap:11px}
.buyer-review-product>img,.buyer-review-product>span{width:68px;height:68px;flex:0 0 68px;border-radius:12px}
.buyer-review-product>img{object-fit:cover}
.buyer-review-product>span{display:grid;place-items:center;background:#edf4ef;color:#47705a;font-size:22px}
.buyer-review-product small,.buyer-review-product em{display:block;color:#859088;font-size:10px;font-style:normal}
.buyer-review-product strong{display:block;margin:4px 0;color:#2d4938}
.buyer-review-form{display:grid;gap:12px}
.review-star-picker{border:0;padding:0;margin:0}
.review-star-picker legend,.buyer-review-text>span{display:block;margin-bottom:5px;color:#3c5345;font-size:11px;font-weight:700}
.review-star-options{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end}
.review-star-options input{position:absolute;opacity:0;pointer-events:none}
.review-star-options label{cursor:pointer;color:#d8ddd9;font-size:30px;line-height:1;padding-right:3px}
.review-star-options label:hover,.review-star-options label:hover~label,.review-star-options input:checked~label{color:#e1a22a}
.buyer-review-text textarea{width:100%;padding:10px 11px;border:1px solid #d6dfd9;border-radius:10px;resize:vertical;font:inherit}
.buyer-review-policy{color:#87928b;font-size:9px}
.buyer-review-done strong{display:block;margin:4px 0;color:#34523f}
.buyer-review-done p{margin:7px 0;color:#607168;line-height:1.6}
.buyer-review-after-complete{display:inline-flex;align-items:center;gap:6px;margin-top:9px;color:#2f704a;font-weight:700;text-decoration:none}

.product-review-summary-inline{display:flex;align-items:center;gap:8px;margin:7px 0 10px}
.product-review-summary-inline strong{color:#6b5629}
.product-review-summary-inline a{color:#5d7466;font-size:12px;text-decoration:none}
.product-customer-reviews-section{padding:42px 0 56px;background:#f7faf8}
.product-customer-reviews-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:18px}
.product-customer-reviews-head h2{margin:4px 0;color:#244b35}
.product-customer-reviews-head p{margin:0;color:#718078}
.product-review-score{text-align:right}
.product-review-score strong{display:block;color:#2b6042;font-size:30px}
.product-review-score small{display:block;color:#87928b}
.product-public-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.product-public-review-card{padding:16px;border:1px solid #dfe7e1;border-radius:14px;background:#fff}
.product-public-review-top{display:flex;justify-content:space-between;gap:12px}
.product-public-review-top strong{display:block;color:#304b39}
.product-public-review-top span:not(.review-stars-text){display:block;color:#4d775e;font-size:10px}
.product-public-review-card p{margin:10px 0;color:#586b60;line-height:1.65}
.product-public-review-card small{color:#88928c}
.product-review-empty{padding:22px;border:1px dashed #d6e0d9;border-radius:14px;background:#fff;color:#7d8982;text-align:center}

@media(max-width:900px){
.customer-profile-hero,.customer-profile-grid,.buyer-review-card{grid-template-columns:1fr}
.customer-profile-metrics{grid-template-columns:repeat(2,1fr)}
.product-public-review-list{grid-template-columns:1fr}
}
@media(max-width:620px){
.customer-summary-strip{grid-template-columns:1fr}
.customer-profile-metrics{grid-template-columns:1fr 1fr}
.product-customer-reviews-head{align-items:flex-start;flex-direction:column}
.product-review-score{text-align:left}
}


/* V87.0.33 — Buyer review privacy: compact checkbox + live preview */
.buyer-review-privacy-form,
.buyer-review-privacy-new{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
    padding:10px 11px;
    border:1px solid #dfe7e2;
    border-radius:11px;
    background:#fbfcfb;
}
.buyer-review-privacy-new{margin-top:0}
.buyer-review-privacy-toggle{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin:0;
    color:#355442;
    font-size:10.5px;
    font-weight:700;
    cursor:pointer;
}
.buyer-review-privacy-toggle input{
    width:16px;
    height:16px;
    margin:0;
    accent-color:#2d6a4f;
    cursor:pointer;
}
.buyer-review-privacy-preview{
    min-width:0;
    display:flex;
    align-items:center;
    gap:6px;
    margin-left:auto;
    padding:6px 8px;
    border-radius:8px;
    background:#f1f6f3;
}
.buyer-review-privacy-preview span{
    color:#7a8980;
    font-size:9px;
    white-space:nowrap;
}
.buyer-review-privacy-preview strong{
    overflow:hidden;
    max-width:180px;
    color:#294b37;
    font-size:10px;
    line-height:1.35;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.buyer-review-privacy-save{
    flex:0 0 auto;
    min-height:34px;
    display:inline-flex;
    align-items:center;
    gap:5px;
}
.review-privacy-badge{
    background:#f4f5f4!important;
    color:#6f7c75!important;
}
.product-public-review-top strong{overflow-wrap:anywhere}
@media(max-width:640px){
    .buyer-review-privacy-form,
    .buyer-review-privacy-new{
        align-items:stretch;
        flex-direction:column;
    }
    .buyer-review-privacy-preview{
        width:100%;
        margin-left:0;
        justify-content:space-between;
    }
    .buyer-review-privacy-save{
        width:100%;
        justify-content:center;
    }
}


/* V87.0.26 — Product review summary readability on product detail */
.product-detail-page .product-review-summary-inline{
    gap:9px;
}
.product-detail-page .product-review-summary-inline .review-stars-text{
    font-size:15px;
    line-height:1.2;
}
.product-detail-page .product-review-summary-inline strong{
    font-size:13px;
    line-height:1.3;
}
.product-detail-page .product-review-summary-inline a{
    font-size:11px;
    line-height:1.4;
}
.product-detail-page .product-public-review-top strong{
    font-size:12px;
    line-height:1.4;
}
.product-detail-page .product-public-review-top span:not(.review-stars-text){
    font-size:10.5px;
    line-height:1.4;
}
.product-detail-page .product-public-review-card p{
    font-size:12px;
    line-height:1.65;
}
.product-detail-page .product-public-review-card small{
    font-size:10px;
    line-height:1.45;
}


/* =========================================================
   V87.0.51 — Review edit window + privacy default visible
   ========================================================= */
.buyer-review-edit-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:12px;
    padding:9px 10px;
    border:1px solid #dfe7e2;
    border-radius:10px;
    background:#f8fbf9;
}
.buyer-review-edit-bar>span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#607268;
    font-size:10px;
    line-height:1.4;
}
.buyer-review-edit-bar>span i{color:#2d6a4f}
.buyer-review-edit-form{
    display:grid;
    gap:11px;
    margin-top:9px;
    padding:12px;
    border:1px solid #d7e4da;
    border-radius:11px;
    background:#fff;
}
.buyer-review-edit-form[hidden]{display:none!important}
.buyer-review-edit-actions{
    display:flex;
    justify-content:flex-end;
    gap:7px;
}
.buyer-review-edit-expired{
    display:inline-flex;
    align-items:center;
    gap:5px;
    margin-top:11px;
    color:#87928b;
    font-size:9.5px;
}
.buyer-review-privacy-form{
    margin-top:9px;
}
@media(max-width:640px){
    .buyer-review-edit-bar{
        align-items:stretch;
        flex-direction:column;
    }
    .buyer-review-edit-bar .btn{
        width:100%;
        justify-content:center;
    }
    .buyer-review-edit-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .buyer-review-edit-actions .btn{
        width:100%;
        justify-content:center;
    }
}


/* =========================================================
   V87.0.52 — Buyer review product navigation
   Product image, name and detail link open public product page.
   ========================================================= */
.buyer-review-product-image-link{
    width:68px;
    height:68px;
    flex:0 0 68px;
    display:block;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
}
.buyer-review-product-image-link img,
.buyer-review-product-image-link span{
    width:100%;
    height:100%;
    display:block;
    border-radius:12px;
}
.buyer-review-product-image-link img{
    object-fit:cover;
    transition:transform .18s ease, box-shadow .18s ease;
}
.buyer-review-product-image-link span{
    display:grid;
    place-items:center;
    background:#edf4ef;
    color:#47705a;
    font-size:22px;
}
.buyer-review-product-image-link:not(.is-disabled):hover img{
    transform:scale(1.035);
}
.buyer-review-product-image-link:not(.is-disabled):hover{
    box-shadow:0 5px 14px rgba(31,59,42,.10);
}
.buyer-review-product-image-link.is-disabled{
    cursor:default;
}

.buyer-review-product-name-link{
    color:inherit;
    text-decoration:none;
}
.buyer-review-product-name-link:hover,
.buyer-review-product-name-link:focus{
    color:#2d6a4f;
    text-decoration:underline;
    text-underline-offset:3px;
}

.buyer-review-product-detail-link{
    display:inline-flex;
    align-items:center;
    gap:5px;
    margin-top:6px;
    color:#52705f;
    font-size:10px;
    font-weight:700;
    line-height:1.35;
    text-decoration:none;
}
.buyer-review-product-detail-link:hover,
.buyer-review-product-detail-link:focus{
    color:#2d6a4f;
}
.buyer-review-product-detail-link i{
    font-size:9px;
}

@media(max-width:620px){
    .buyer-review-product-detail-link{
        font-size:9.8px;
    }
}
