/* Feedback website round 3 (26/10/2026). Mỗi khối ghi số slide. */

/* R3 slide 4: dòng "Mua thêm … để giảm ngay …" trên thanh dưới = dải xanh lá nhạt, chữ xanh đậm (như dòng Freeship cũ) */
.ly-chint{gap:6px !important;margin:0 !important;padding:0 14px !important;min-height:32px !important;background:#F2FAEC !important;color:#14803A !important;font-size:12.5px !important;font-weight:600 !important;line-height:1.3 !important;box-sizing:border-box !important}
.ly-chint span{min-width:0 !important;overflow:hidden !important;white-space:nowrap !important;text-overflow:ellipsis !important}
.ly-chint b{font-weight:800 !important;color:#14803A !important}
.ly-mcart .ly-chint{border-radius:var(--ly-r,14px) var(--ly-r,14px) 0 0 !important}
.bond-pb .ly-chint,.bond-lb .ly-chint{margin:-8px -12px 8px !important;padding:0 14px !important;border-radius:14px 14px 0 0 !important}
.bond-lb .ly-chint{margin:0 -12px 8px !important}
.bond-lb .ly-chint:not([hidden]){display:flex !important}

/* R3 slide 2: dải chữ chạy trang chủ trên mobile 44px → 32px */
@media (max-width:849px){
#ly-m .ly-marquee-track{font-size:32px !important;gap:26px !important;padding-right:26px !important}
#ly-m .ly-marquee-track svg{width:24px;height:24px}
}

/* R3 slide 3: badge giải thưởng trang SP (mobile) – chữ xuống dòng, không cắt "…" */
@media (max-width:849px){
html body #ly-m.ly-pdp .ly-awrow > span{flex:1 1 0;align-items:center}
html body #ly-m.ly-pdp .ly-awrow strong,
html body #ly-m.ly-pdp .ly-awrow strong + span{white-space:normal !important;overflow:visible !important;text-overflow:clip !important;overflow-wrap:anywhere;line-height:1.3}
}

/* R3 slide 7: form địa chỉ – nhãn nằm trong ô (floating label như coolmate.me/cart) */
.lc-card-address .form-row.ly-fl{position:relative;margin-bottom:12px}
.lc-card-address .form-row.ly-fl > label{position:absolute;left:15px;top:0;height:50px;display:flex;align-items:center;margin:0;padding:0;max-width:calc(100% - 44px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:400;color:#8A958B;pointer-events:none;z-index:2;transition:top .15s,height .15s,font-size .15s,color .15s;text-transform:none;letter-spacing:0}
.lc-card-address .form-row.ly-fl > label abbr,.lc-card-address .form-row.ly-fl > label .lc-opt{font-size:inherit;color:inherit;text-decoration:none;border:0;font-weight:inherit}
.lc-card-address .form-row.ly-fl :is(input.input-text,select){height:50px !important;min-height:50px;padding:20px 14px 4px !important;font-size:15px !important;line-height:1.3;box-sizing:border-box}
.lc-card-address .form-row.ly-fl textarea{min-height:76px;padding:24px 14px 8px !important;font-size:15px !important;box-sizing:border-box}
.lc-card-address .form-row.ly-fl :is(input,textarea)::placeholder{color:transparent}
.lc-card-address .form-row.ly-fl:not(.is-filled):not(.is-focus) select{color:transparent}
.lc-card-address .form-row.ly-fl:not(.is-filled):not(.is-focus) select option{color:#1C2A1E}
.lc-card-address .form-row.ly-fl:is(.is-filled,.is-focus) > label{top:7px;height:auto;font-size:11.5px;font-weight:600;color:#5A6B5C}
.lc-card-address .form-row.ly-fl.is-focus > label{color:#14803A}
.lc-card-address .form-row.ly-fl.is-focus :is(input,textarea)::placeholder{color:#A7B0A8}
.lc-card-address .form-row.ly-fl.woocommerce-invalid > label{color:#B42318}

/* R3 slide 8: đổi phân loại ngay trong giỏ – máy tính: danh sách thả xuống; điện thoại: tấm chọn dưới đáy */
html body #ly-m.ly-cart .ly-ci-swap{position:relative;align-self:flex-start;max-width:100%}
html body #ly-m.ly-cart .ly-ci-opts{position:absolute;left:0;top:calc(100% + 4px);z-index:60;min-width:260px;max-width:min(420px,80vw);background:#fff;border:1px solid #DDE5DA;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.14);padding:6px;display:flex;flex-direction:column;gap:4px;font-family:"Be Vietnam Pro",sans-serif}
html body #ly-m.ly-cart .ly-ci-opts[hidden]{display:none}
html body #ly-m.ly-cart .ly-ci-opts-head{display:none}
html body #ly-m.ly-cart .ly-ci-opt{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 10px;border:1.5px solid transparent;border-radius:8px;font-size:13px;color:#1C2A1E;cursor:pointer;text-align:left}
html body #ly-m.ly-cart .ly-ci-opt span{min-width:0;line-height:1.35}
html body #ly-m.ly-cart .ly-ci-opt b{flex-shrink:0;font-weight:800;color:#14803A;white-space:nowrap}
html body #ly-m.ly-cart .ly-ci-opt del{font-weight:400;font-size:11px;color:#A7B0A8}
html body #ly-m.ly-cart .ly-ci-opt:hover{background:#F4F6F2}
html body #ly-m.ly-cart .ly-ci-opt[aria-selected=true]{border-color:#34C759;background:#F2FAEC}
@media (max-width:849px){
html.ly-swap-open,html.ly-swap-open body{overflow:hidden}
html body #ly-m.ly-cart .ly-ci-opts{position:fixed;left:0;right:0;top:auto;bottom:0;z-index:100010;min-width:0;max-width:none;max-height:70vh;overflow:auto;border:0;border-radius:16px 16px 0 0;padding:6px 14px calc(16px + env(safe-area-inset-bottom,0px));box-shadow:0 0 0 100vmax rgba(0,0,0,.45);gap:8px}
html body #ly-m.ly-cart .ly-ci-opts-head{display:flex;align-items:center;justify-content:space-between;padding:10px 0 4px}
html body #ly-m.ly-cart .ly-ci-opts-head strong{font-size:16px;font-weight:800}
html body #ly-m.ly-cart .ly-ci-opts-x{all:unset;width:32px;height:32px;border-radius:50%;background:#F1F4F1;text-align:center;line-height:32px;font-size:20px;cursor:pointer}
html body #ly-m.ly-cart .ly-ci-opt{min-height:52px;padding:10px 12px;border:1.5px solid #DDE5DA;font-size:14px}
}

.lc-card-address .form-row.ly-fl > label .lc-opt{margin-left:4px}

/* R3 slide 11: form "Viết đánh giá" – "Chấm điểm" cùng lề + cùng kiểu với các nhãn khác (Nội dung đánh giá, Họ và tên, SĐT) */
html body fieldset.comment-form-rating.lc-rate{margin:0 0 1em !important;padding:0 !important;border:0 !important;min-width:0 !important;background:none !important;box-shadow:none !important}
html body fieldset.comment-form-rating.lc-rate > legend{display:block !important;float:none !important;width:auto !important;margin:0 0 .4em !important;padding:0 !important;border:0 !important;font-size:14.4px !important;font-weight:700 !important;line-height:1.3 !important;text-transform:none !important;letter-spacing:normal !important;color:#222 !important}
html body fieldset.comment-form-rating.lc-rate > legend .required{color:inherit}
@media (min-width:850px){html body .comment-form fieldset.comment-form-rating.lc-rate{padding:0 15px !important}}

/* R3 slide 16: flash sale đang chạy – giá cam, nhãn "⚡ FLASHSALE", đồng hồ đếm ngược */
/* Feedback 27/10 – 4.1: giá đang flash sale #FF9900 (giá thường giữ nguyên) */
html body #ly-m.ly-pdp.ly-is-flash .ly-price{color:#FF9900 !important}
/* 7.2: nhãn + đồng hồ cùng 1 dòng (desktop + 390px) */
html body #ly-m .ly-fsrow{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;margin-top:6px;max-width:100%;min-width:0}
html body #ly-m .ly-fsrow[hidden]{display:none !important}
html body #ly-m .ly-fsl{display:inline-flex;align-items:center;flex:0 0 auto;height:28px;padding:0 10px;border-radius:6px;background:#FFF1E6;color:#FF6A00;font-size:14px;font-weight:800;letter-spacing:.02em;white-space:nowrap}
/* 4.2: khung nền xanh #34C759 bao các ô số; ô số nền #1C2A1E, chữ trắng, bo 6px (trang SP desktop + mobile, thẻ SP ở danh sách) */
html body #ly-m .ly-fs-box{display:inline-flex;align-items:center;gap:4px;padding:4px;border-radius:8px;background:#34C759;box-sizing:border-box}
html body #ly-m .ly-fs-box b{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:32px;padding:0 6px;border-radius:6px;background:#1C2A1E;color:#fff;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;box-sizing:border-box}
html body #ly-m .ly-fs-box i{font-style:normal;font-weight:800;color:#fff}
/* 7.1: thẻ SP – "⚡ FLASHSALE hh:mm:ss" 1 dòng, chữ cam trên nền #FFF1E6, số tabular-nums; thẻ hẹp (2 cột ~170px) thì thu chữ, không tràn */
.ly-fsl-c,html body :is(#ly-m,#ly-x,#ly-cd) .ly-fsl-c{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:4px;white-space:nowrap;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box;align-self:flex-start;margin:0 2px;padding:2px 7px;border-radius:5px;background:#FFF1E6;color:#FF6A00 !important;font-size:11.5px;font-weight:700;line-height:1.45;font-variant-numeric:tabular-nums}
.ly-fsl-c > span:first-child{flex:0 0 auto}
.ly-fsl-c .ly-fs-cd,html body :is(#ly-m,#ly-x,#ly-cd) .ly-fsl-c .ly-fs-cd{display:inline;white-space:nowrap;flex-wrap:nowrap;align-items:center;gap:0;padding:0;border-radius:0;background:none;font-variant-numeric:tabular-nums;font-weight:800;color:inherit}
.ly-fsl-c .ly-fs-cd:empty{display:none}
.ly-fsl-c .ly-fs-cd b,.ly-fsl-c .ly-fs-cd i,html body :is(#ly-m,#ly-x,#ly-cd) .ly-fsl-c .ly-fs-cd b,html body :is(#ly-m,#ly-x,#ly-cd) .ly-fsl-c .ly-fs-cd i{display:inline;min-width:0;height:auto;padding:0;border-radius:0;background:none;color:inherit;font-size:inherit;font-weight:800;font-style:normal;line-height:inherit}
@media (max-width:549px){.ly-fsl-c,html body :is(#ly-m,#ly-x,#ly-cd) .ly-fsl-c{gap:3px;padding:2px 5px;font-size:clamp(9.5px,2.75vw,11.5px);letter-spacing:-.01em}}
.ly-fsl-c[hidden]{display:none !important}
@media (max-width:549px){html body #ly-m .ly-fs-box b{min-width:32px;height:30px;padding:0 4px;font-size:15px}html body #ly-m .ly-fsl{padding:0 8px;font-size:13px}}

/* Feedback 27/10 – 8: tên sản phẩm trong giỏ hàng / giỏ nhanh / thanh toán: 13px, tối đa 3 dòng, dư thì "…" (title = tên đầy đủ) */
html body .ly-ci-name{display:-webkit-box !important;-webkit-line-clamp:3 !important;line-clamp:3;-webkit-box-orient:vertical !important;overflow:hidden !important;text-overflow:ellipsis;font-size:13px !important;line-height:1.35 !important;white-space:normal !important;word-break:break-word;max-height:none}

/* Feedback 27/10 – 9: badge giải thưởng cạnh tên SP – mobile (< 768px) xếp dọc, mỗi badge 1 khối vừa nội dung; desktop giữ nguyên */
@media (max-width:767px){
html body #ly-m.ly-pdp .ly-awrow{flex-direction:column !important;flex-wrap:nowrap !important;align-items:flex-start !important;gap:8px !important}
html body #ly-m.ly-pdp .ly-awrow > span{flex:0 0 auto !important;width:fit-content !important;max-width:100% !important;padding:6px 12px 6px 6px !important;gap:8px !important;box-sizing:border-box}
html body #ly-m.ly-pdp .ly-awrow > span > span{min-width:0}
html body #ly-m.ly-pdp .ly-awrow img{height:30px !important}
html body #ly-m.ly-pdp .ly-awrow strong{font-size:14px !important;white-space:nowrap !important;overflow:visible !important;text-overflow:clip !important;overflow-wrap:normal !important}
html body #ly-m.ly-pdp .ly-awrow strong + span{font-size:12.5px !important;white-space:normal !important;overflow:visible !important;text-overflow:clip !important;overflow-wrap:normal !important}
}

/* A1 (27/10): icon accordion trang sản phẩm cùng cỡ 20px, căn giữa với tiêu đề; nhãn Highlight dùng nguyên ảnh (cao 20px). */
html body #ly-m .ly-acc-t > svg,html body #ly-m .ly-acc-t > .ly-acc-ic{width:20px !important;height:20px !important;flex:0 0 20px;display:block;align-self:center}
html body #ly-m .ly-acc-t > .ly-acc-ic{object-fit:contain}
html body #ly-m .ly-acc-dac_diem .ly-acc-t > .ly-acc-ic{width:34px !important;flex-basis:34px;border-radius:3px}

/* A2: hover từng icon kênh bán hàng ở chân trang. */
#ly-f .ly-fsoc:hover{transform:none}
#ly-f .ly-fsoc a{transition:transform .2s}
#ly-f .ly-fsoc a:hover{transform:translateY(-2px)}
/* A4 (27/10): banner điện thoại giữ đúng tỉ lệ ảnh đã tải lên (không cắt theo khung máy tính). */
@media (max-width: 767px){html body #ly-m.ly-cat .ly-cat-ban.has-m img{aspect-ratio:auto !important;height:auto !important}}
/* A4: bỏ khoảng trống thừa dưới banner – tiêu đề danh mục nằm sát ngay sau banner (mọi trang danh mục dùng chung template). */
@media (max-width: 767px){html body #ly-m.ly-cat .ly-cat-ban + section{padding-top:12px !important}}

/* 28/10 – Mô tả chi tiết soạn bằng trình Visual: tiêu đề, danh sách, ảnh, bảng, video YouTube, trích dẫn (desktop + mobile) */
#ly-m .ly-rich{overflow-wrap:anywhere;text-align:left}
/* Khung đọc ~860px (dòng chữ không quá dài, ảnh 1600px không phủ kín màn hình rộng) */
#ly-m .ly-more-body.ly-rich{max-width:860px;margin-left:auto !important;margin-right:auto !important}
#ly-m .ly-rich > :first-child{margin-top:0}
#ly-m .ly-rich h2{margin:1.4em 0 .5em;font-size:20px;line-height:1.35;font-weight:800;color:#1C2A1E}
#ly-m .ly-rich h3{margin:1.2em 0 .4em;font-size:17px;line-height:1.4;font-weight:700;color:#1C2A1E}
#ly-m .ly-rich h4{margin:1em 0 .3em;font-size:15px;font-weight:700}
#ly-m .ly-rich ul,#ly-m .ly-rich ol{margin:.6em 0 .8em;padding-left:1.4em}
#ly-m .ly-rich ul{list-style:disc}
#ly-m .ly-rich ol{list-style:decimal}
#ly-m .ly-rich li{margin:.2em 0}
#ly-m .ly-rich li > p{margin:0}
#ly-m .ly-rich a{color:#14803A;text-decoration:underline;text-underline-offset:2px}
#ly-m .ly-rich img{display:block;max-width:100%;height:auto;margin:14px auto;border-radius:8px}
#ly-m .ly-rich p img{display:inline-block;margin:6px 0;vertical-align:middle}
#ly-m .ly-rich p:has(> img:only-child){text-align:center}
#ly-m .ly-rich blockquote{margin:1em 0;padding:10px 16px;border-left:4px solid #34C759;background:#F2FAEC;border-radius:0 8px 8px 0;color:#3F5242;font-style:italic}
#ly-m .ly-rich blockquote p{margin:0}
#ly-m .ly-rich hr{border:none;border-top:1px solid #DDE5DA;margin:1.4em 0}
#ly-m .ly-rich table{width:100%;border-collapse:collapse;margin:1em 0;font-size:14px}
#ly-m .ly-rich th,#ly-m .ly-rich td{border:1px solid #DDE5DA;padding:8px 10px;vertical-align:top;text-align:left}
#ly-m .ly-rich th{background:#F2FAEC;font-weight:700}
#ly-m .ly-rich td p,#ly-m .ly-rich th p{margin:0}
#ly-m .ly-rich .ly-yt-embed{position:relative;width:100%;max-width:720px;margin:16px auto;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#000}
#ly-m .ly-rich .ly-yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
#ly-m .ly-rich-mini img{margin:6px 0;max-height:240px;width:auto}
#ly-m .ly-rich-mini ul,#ly-m .ly-rich-mini ol{margin:.3em 0}
#ly-m .ly-gift-name a{color:#14803A;text-decoration:underline;text-underline-offset:2px}
@media (max-width: 760px){
	#ly-m .ly-rich h2{font-size:18px}
	#ly-m .ly-rich h3{font-size:16px}
	/* Bảng rộng cuộn ngang trong khung, không làm tràn trang */
	#ly-m .ly-rich table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;width:max-content;max-width:100%}
	#ly-m .ly-rich img{border-radius:6px}
}

/* 28/10 – A5: danh mục chỉ có banner mobile → không hiện banner trên máy tính */
@media (min-width: 768px){ #ly-m .ly-cat-ban.only-m{display:none !important} }
