/* PCX Bán hàng 1.17 – Đánh giá kiểu Shopee */

/* Flatsome/theme tô màu mọi thẻ <button>: đặt lại cho các nút nhỏ trong khối đánh giá. */
.pcx-dg button.pcx-dg__bar,.pcx-dg .pcx-dg__chips button,.pcx-dg button.pcx-dg__th,.pcx-dg button.pcx-dg__help,.pcx-dg .pcx-dg__pv button,.pcx-dg button.pcx-dg__rep,.pcx-dg button.pcx-dg__rcancel,.pcx-spb button.pcx-spb__more{background:transparent!important;color:inherit;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;text-shadow:none!important;margin:0;min-height:0;line-height:1.3;font-family:inherit;border-radius:4px;opacity:1;width:auto}
.pcx-dg button.pcx-dg__bar{color:#555!important}.pcx-dg .pcx-dg__chips button{color:#333!important}.pcx-dg button.pcx-dg__help,.pcx-dg button.pcx-dg__rep,.pcx-dg button.pcx-dg__rcancel{color:#777!important}.pcx-dg .pcx-dg__chips button[aria-pressed="true"],.pcx-dg button.pcx-dg__help[aria-pressed="true"],.pcx-spb button.pcx-spb__more{color:var(--fs-color-primary,#2e7d32)!important}.pcx-dg .pcx-dg__pv button{color:#fff!important;background:rgba(0,0,0,.6)!important}.pcx-dg .pcx-dg__th.is-link{color:#fff!important}
.pcx-dg{--dg-c:var(--fs-color-primary,#2e7d32);--dg-star:#f5a623;margin:0 0 24px;font-size:15px}
.pcx-dg *{box-sizing:border-box}
.pcx-dg-stars{position:relative;display:inline-block;width:5.4em;height:1em;line-height:1;font-size:15px;vertical-align:-2px}
.pcx-dg-stars.is-sm{font-size:12px}
.pcx-dg-stars:before,.pcx-dg-stars>span:before{content:"★★★★★";letter-spacing:.08em;position:absolute;left:0;top:0;white-space:nowrap}
.pcx-dg-stars:before{color:#ddd}
.pcx-dg-stars>span{position:absolute;left:0;top:0;height:100%;overflow:hidden}
.pcx-dg-stars>span:before{color:var(--dg-star,#f5a623)}
.pcx-dg__title{font-size:1.25em;margin:0 0 12px;text-transform:uppercase}
.pcx-dg__title small{font-weight:400;color:#777;font-size:.75em}
.pcx-dg__sum{display:flex;gap:24px;align-items:center;flex-wrap:wrap;background:#fffbf3;border:1px solid #fbe9c6;border-radius:8px;padding:14px 18px;margin:0 0 12px}
.pcx-dg__avg{display:flex;flex-direction:column;align-items:center;min-width:110px;color:#d9480f}
.pcx-dg__avg b{font-size:34px;line-height:1}
.pcx-dg__avg span{font-size:13px;margin:2px 0 4px;color:#555}
.pcx-dg__bars{flex:1;min-width:220px;display:grid;gap:3px}
.pcx-dg button.pcx-dg__bar{all:unset;display:grid;width:100%;grid-template-columns:42px 1fr 32px;align-items:center;gap:8px;font-size:13px;color:#555;cursor:pointer;border-radius:4px;padding:1px 2px}
.pcx-dg__bar:hover:not([disabled]),.pcx-dg__bar:focus-visible{background:#fff1d6}
.pcx-dg__bar[disabled]{cursor:default;opacity:.6}
.pcx-dg__bar i{display:block;height:8px;background:#eee;border-radius:4px;overflow:hidden}
.pcx-dg__bar em{display:block;height:100%;background:var(--dg-star)}
.pcx-dg__bar small{text-align:right}
.pcx-dg__chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.pcx-dg .pcx-dg__chips button{margin:0;padding:5px 12px;min-height:34px;border:1px solid #ddd;background:#fff!important;border-radius:4px;font-size:13px;line-height:1.3;text-transform:none;letter-spacing:0;color:#333;font-weight:400;cursor:pointer}
.pcx-dg .pcx-dg__chips button[aria-pressed="true"]{border-color:var(--dg-c);color:var(--dg-c);font-weight:600}
.pcx-dg__list{list-style:none;margin:0;padding:0}
.pcx-dg__list.is-loading{opacity:.5;pointer-events:none}
.pcx-dg__item{border-bottom:1px solid #eee;padding:14px 0;margin:0}
.pcx-dg__head{display:flex;gap:10px;align-items:flex-start;font-size:14px}
.pcx-dg__head time{color:#888;font-size:12px;margin-left:4px}
.pcx-dg__ava{flex:0 0 36px;height:36px;border-radius:50%;background:#e8f2e9;color:var(--dg-c);display:flex;align-items:center;justify-content:center;font-weight:700}
.pcx-dg__buy{color:#2e7d32;font-size:12px;font-weight:600;white-space:nowrap}
.pcx-dg__tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0 46px}
.pcx-dg__tags span{font-size:12px;background:#f3f3f3;border-radius:10px;padding:2px 9px;color:#555}
.pcx-dg__text{margin:6px 0 0 46px;line-height:1.55}
.pcx-dg__text p{margin:0 0 6px}
.pcx-dg__media{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0 46px}
.pcx-dg .pcx-dg__th{all:unset;position:relative;padding:0;border:0;width:80px;height:80px;border-radius:6px;overflow:hidden;background:#f1f1f1;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 80px}
.pcx-dg__th:focus-visible{outline:2px solid var(--dg-c);outline-offset:2px}
.pcx-dg__th img,.pcx-dg__th video{width:100%;height:100%;object-fit:cover;display:block;margin:0}
.pcx-dg__th i{position:absolute;inset:auto auto 6px 6px;font-style:normal;color:#fff;background:rgba(0,0,0,.55);border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:11px}
.pcx-dg .pcx-dg__th.is-link{background:#111!important;color:#fff;text-decoration:none;flex-direction:column}
.pcx-dg__th.is-link i{position:static;margin-bottom:4px}
.pcx-dg__th.is-link small{font-size:12px}
.pcx-dg__src{margin:6px 0 0 46px;font-size:12px;color:#888;font-style:italic}
.pcx-dg__reply{margin:10px 0 0 46px;background:#f6f7f6;border-left:3px solid var(--dg-c);padding:8px 12px;font-size:14px;border-radius:0 6px 6px 0}
.pcx-dg__reply b{display:block;margin-bottom:2px;color:var(--dg-c)}
.pcx-dg__reply p{margin:0}
.pcx-dg__foot{margin:6px 0 0 46px}
.pcx-dg button.pcx-dg__help{all:unset;cursor:pointer;color:#777;font-size:13px;padding:6px 4px;min-height:24px;display:inline-flex;align-items:center;gap:5px}
.pcx-dg__help svg{width:15px;height:15px;fill:currentColor}
.pcx-dg button.pcx-dg__help[aria-pressed="true"]{color:var(--dg-c);font-weight:600}
.pcx-dg__help:focus-visible{outline:2px solid var(--dg-c)}
.pcx-dg__empty{background:#f8f8f8;border-radius:8px;padding:16px;text-align:center;color:#555;margin:0 0 12px}
.pcx-dg__more{text-align:center;margin:12px 0}
.pcx-dg__more[hidden]{display:none}
.pcx-dg__write{margin-top:12px}
.pcx-dg__write [hidden]{display:none!important}
.pcx-dg__form{border:1px solid #e5e5e5;border-radius:8px;padding:16px;background:#fff}
.pcx-dg__f{margin:0 0 12px}
.pcx-dg__f>label,.pcx-dg__f>span:first-child{display:block;font-weight:600;margin-bottom:6px;font-size:14px}
.pcx-dg__rate{display:inline-flex;flex-direction:row-reverse;gap:2px}
.pcx-dg__rate input{position:absolute;opacity:0;width:1px;height:1px}
.pcx-dg__rate label{font-size:32px;line-height:1;color:#ddd;cursor:pointer;padding:0 2px;margin:0;font-weight:400}
.pcx-dg__rate label:before{content:"★"}
.pcx-dg__rate input:checked~label,.pcx-dg__rate label:hover,.pcx-dg__rate label:hover~label{color:var(--dg-star)}
.pcx-dg__rate input:focus-visible+label{outline:2px solid var(--dg-c);border-radius:4px}
.pcx-dg__qt{display:flex;flex-wrap:wrap;gap:8px}
.pcx-dg__qt label{margin:0;cursor:pointer}
.pcx-dg__qt input{position:absolute;opacity:0;width:1px;height:1px}
.pcx-dg__qt span{display:inline-block;border:1px solid #ddd;border-radius:16px;padding:6px 12px;font-size:13px;font-weight:400;min-height:34px}
.pcx-dg__qt input:checked+span{border-color:var(--dg-c);color:var(--dg-c);background:#eef6ef;font-weight:600}
.pcx-dg__qt input:focus-visible+span{outline:2px solid var(--dg-c)}
.pcx-dg__form textarea{width:100%;min-height:84px;margin:0}
.pcx-dg__picks{display:flex;gap:8px;flex-wrap:wrap}
.pcx-dg__pick{position:relative;display:inline-flex;align-items:center;gap:4px;border:1px dashed var(--dg-c);color:var(--dg-c);border-radius:6px;padding:8px 14px;cursor:pointer;font-size:14px;margin:0;min-height:40px;font-weight:600}
.pcx-dg__pick input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.pcx-dg__pick:focus-within{outline:2px solid var(--dg-c)}
.pcx-dg__prev{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.pcx-dg__prev:empty{display:none}
.pcx-dg__pv{position:relative;width:64px;height:64px;border-radius:6px;overflow:hidden;background:#eee}
.pcx-dg__pv img,.pcx-dg__pv video{width:100%;height:100%;object-fit:cover}
.pcx-dg .pcx-dg__pv button{all:unset;position:absolute;top:2px;right:2px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:14px;line-height:22px;text-align:center;cursor:pointer}
.pcx-dg__up input[type=url]{width:100%;margin:6px 0 4px}
.pcx-dg__up small{color:#777;font-size:12px;display:block}
.pcx-dg__who{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pcx-dg__who input{margin:0}
.pcx-dg__hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.pcx-dg__bonus{font-size:13px;background:#fff8e6;border-radius:6px;padding:8px 10px;margin:0 0 12px}
.pcx-dg__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}
.pcx-dg__actions .button{margin:0}
.pcx-dg__msg{font-size:14px}
.pcx-dg__msg.is-err{color:#c62828}
.pcx-dg__msg.is-ok{color:#2e7d32;font-weight:600}
.pcx-dg__login{margin:8px 0}

/* Gọn (brochure, khối hẹp) */
.pcx-dg--compact{font-size:14px}
.pcx-dg--compact .pcx-dg__sum{padding:10px 12px;gap:12px}
.pcx-dg--compact .pcx-dg__avg{flex-direction:row;gap:8px;min-width:0;align-items:baseline}
.pcx-dg--compact .pcx-dg__avg b{font-size:24px}
.pcx-dg--compact .pcx-dg__th{width:64px;height:64px;flex-basis:64px}
.pcx-dg--compact .pcx-dg__tags,.pcx-dg--compact .pcx-dg__text,.pcx-dg--compact .pcx-dg__media,.pcx-dg--compact .pcx-dg__src,.pcx-dg--compact .pcx-dg__reply,.pcx-dg--compact .pcx-dg__foot{margin-left:0}

/* Xem ảnh/video to */
.pcx-dg-lb{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.pcx-dg-lb img,.pcx-dg-lb video{max-width:94vw;max-height:86vh;object-fit:contain;display:block}
.pcx-dg-lb button{all:unset;position:absolute;color:#fff;font-size:30px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;background:rgba(255,255,255,.12)}
.pcx-dg-lb button:focus-visible{outline:2px solid #fff}
.pcx-dg-lb .x{top:12px;right:12px}
.pcx-dg-lb .p{left:10px;top:50%;transform:translateY(-50%)}
.pcx-dg-lb .n{right:10px;top:50%;transform:translateY(-50%)}
.pcx-dg-lb .c{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#ddd;font-size:13px}
@media (max-width:549px){
	.pcx-dg__sum{gap:12px;padding:12px}
	.pcx-dg__avg{min-width:0;flex-direction:row;gap:8px;align-items:baseline}
	.pcx-dg__avg b{font-size:28px}
	.pcx-dg__tags,.pcx-dg__text,.pcx-dg__media,.pcx-dg__src,.pcx-dg__reply,.pcx-dg__foot{margin-left:0}
	.pcx-dg__th{width:72px;height:72px;flex-basis:72px}
	.pcx-dg__who{grid-template-columns:1fr}
	.pcx-dg__chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
	.pcx-dg__chips button{white-space:nowrap}
}

/* Trang sản phẩm 4 khối */
.pcx-sp4{clear:both;margin:24px 0 0}
.pcx-spn{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid #e5e5e5;margin:0 0 8px;transition:top .2s}
.pcx-spn__in{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.pcx-spn__in::-webkit-scrollbar{display:none}
.pcx-spn a{flex:0 0 auto;padding:12px 16px;font-weight:600;color:#555;text-transform:uppercase;font-size:14px;border-bottom:3px solid transparent;white-space:nowrap;text-decoration:none}
.pcx-spn a:hover,.pcx-spn a.is-on{color:var(--fs-color-primary,#2e7d32);border-bottom-color:currentColor}
.pcx-spn small{font-weight:400}
.pcx-sp4__sec{padding:20px 0 12px;border-bottom:1px solid #eee;scroll-margin-top:var(--pcx-spn-top,64px)}
.pcx-sp4__sec:last-child{border-bottom:0}
.pcx-sp4__h{font-size:1.3em;text-transform:uppercase;margin:0 0 14px;padding-left:10px;border-left:4px solid var(--fs-color-primary,#2e7d32);line-height:1.2}
.pcx-sp4__part{margin:0 0 18px}
.pcx-sp4__part>h3{font-size:1.05em;margin:0 0 8px}
.pcx-sp4__danh-gia .pcx-dg{margin-bottom:8px}
.pcx-spb{display:flex;gap:24px;align-items:flex-start}
.pcx-spb__logo{flex:0 0 160px;max-width:160px;border:1px solid #eee;border-radius:8px;padding:12px;background:#fff;display:flex;align-items:center;justify-content:center}
.pcx-spb__logo img{max-height:120px;width:auto;object-fit:contain;margin:0}
.pcx-spb__body{flex:1;min-width:0}
.pcx-spb__body h3{margin:0 0 6px}
.pcx-spb__meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px;font-size:13px}
.pcx-spb__meta span{background:#eef6ef;color:#2e7d32;border-radius:12px;padding:2px 10px}
.pcx-spb__text{max-height:9.5em;overflow:hidden;position:relative}
.pcx-spb__text.is-open{max-height:none}
.pcx-spb__text:not(.is-open):after{content:"";position:absolute;left:0;right:0;bottom:0;height:2.5em;background:linear-gradient(rgba(255,255,255,0),#fff)}
.pcx-spb__more{all:unset;cursor:pointer;color:var(--fs-color-primary,#2e7d32);font-weight:600;font-size:14px;margin:4px 0 8px;padding:4px 0}
.pcx-spb__more[hidden]{display:none}
.pcx-spb__btns{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.pcx-spb__btns .button{margin:0}
@media (max-width:549px){
	.pcx-spb{flex-direction:column;gap:12px}
	.pcx-spb__logo{flex-basis:auto;max-width:140px}
	.pcx-spn a{padding:10px 12px;font-size:13px}
}

/* 1.17.1 Trả lời đánh giá */
.pcx-dg button.pcx-dg__rep{all:unset;display:none;cursor:pointer;font-size:13px;padding:6px 4px;margin-left:14px;align-items:center;gap:5px}
.pcx-dg.is-auth button.pcx-dg__rep{display:inline-flex}
.pcx-dg__rep svg{width:15px;height:15px;fill:currentColor}
.pcx-dg button.pcx-dg__rep:focus-visible,.pcx-dg button.pcx-dg__rcancel:focus-visible{outline:2px solid var(--dg-c)}
.pcx-dg__reply time{color:#999;font-size:12px;font-weight:400}
.pcx-dg__reply:not(.is-shop){border-left-color:#ccc;background:#fafafa}
.pcx-dg__reply:not(.is-shop) b{color:#333;display:inline}
.pcx-dg__reply:not(.is-shop) p{margin-top:2px}
.pcx-dg__rform{margin:8px 0 0 46px}
.pcx-dg__rform textarea{width:100%;min-height:60px;margin:0 0 6px}
.pcx-dg__rform p{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}
.pcx-dg__rform .button{margin:0}
.pcx-dg button.pcx-dg__rcancel{all:unset;cursor:pointer;font-size:14px;padding:6px 8px}
.pcx-dg__rmsg{font-size:13px;color:#555}
.pcx-dg--compact .pcx-dg__rform{margin-left:0}
@media (max-width:549px){.pcx-dg__rform{margin-left:0}}
.pcx-dg-recipe{margin-top:32px;margin-bottom:24px}
.pcx-sp4__tuong-tu{container-type:inline-size}
@container (max-width:560px){.pcx-sp4__tuong-tu .products>.col,.pcx-sp4__tuong-tu .products .product-small.col{flex-basis:50%!important;max-width:50%!important}}
.pcx-dg-recipe .pcx-dg{background:#fff;border:1px solid #e3e7e1;border-radius:8px;padding:20px 24px}
