/* Migen Deals 1.0.0: CSS khối deal, chuyển nguyên từ style.css của child 2.6.0 (owner duyệt D1 2026-11-10).
   Phần block style is-style-mg-* và ghi chú Easy TOC ở lại child. Kiểu "Best Deals list" (mgd-bd) ở cuối file. */
/* ===== 2.6.0 (trạm 05 → 14, owner duyệt E5–E8 2026-11-07): khối deal / giá / so sánh / lab / điều hướng + block style.
   Mockup: du-an/05-cau-truc-ux-ui/mockup-deal_v2/, mockup-khoi_v1/. Tiền tố mg- để không đụng class của ReHub.
   Giá gia hạn KHÔNG gạch ngang (owner 2026-11-07): đó là giá người mua trả từ năm 2 → chữ thường, nhấn màu.
   Màu: tím = lựa chọn của biên tập ("Our pick"); xanh = nhãn tính từ số / tiết kiệm; nâu cam = giá phải trả sau năm đầu. ===== */
.mg-deals,.mg-vs,.mg-sum,.mg-more,.mg-tbl-wrap,.mg-verdict,.mg-dlg{--mg-tim:#8035BE;--mg-navy:#0B1628;--mg-nut:#DE1414;--mg-chu:#1F2937;--mg-chu2:#4B5563;--mg-vien:#E5E7EB;--mg-nen:#F3F4F6;--mg-xanh:#047857;--mg-nen-xanh:#ECFDF5;--mg-cam:#92400E}
.mg-deals{margin:0 0 24px}
.mg-sum{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px!important;padding:0!important;list-style:none!important}
/* 1.4.1 (owner 2026-11-20: "chip đẹp và gọn"): ô vuông số to → chip bo tròn 1 dòng, số đậm đứng trước chữ; % giảm xanh lá, giá năm đầu đỏ như giá sale */
.mg-sum li{display:inline-flex;align-items:stretch;background:#F5EDFC;border:1px solid #E4D3F5;border-radius:999px;overflow:hidden;font-size:13px;line-height:1.3;color:var(--mg-chu2);margin:0!important;padding:0!important;list-style:none!important}
/* 1.5.1 (owner chọn phương án E 2026-11-21): số trong ô màu đậm chữ trắng, chữ nền tím nhạt; 2 phần căn giữa theo chiều dọc */
.mg-sum li b{display:inline-flex;align-items:center;padding:5px 10px;font-size:13.5px;font-weight:700;line-height:1.3;color:#fff;background:var(--mg-tim)}
.mg-sum li span{display:inline-flex;align-items:center;padding:5px 12px 5px 8px}
.mg-sum li.mg-sum-pct b{background:var(--mg-xanh)}
.mg-sum li.mg-sum-price b{background:#CC0C39}
.mg-sum li.mg-sum-code b{background:var(--mg-navy)}
/* Thanh phân loại dính trong khối khi cuộn (owner 2026-11-09). --mg-stick-top = đáy menu dính của theme / admin bar, do mg-deals.js đo. Hết khối thì tự thả. */
.mg-filters{display:none;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid var(--mg-vien);border-radius:12px;padding:10px 12px;margin:0 0 12px;background:#fff;position:sticky;top:var(--mg-stick-top,0px);z-index:20}
.mg-js .mg-filters{display:flex}
.mg-filters.mg-stuck,.mg-chips.mg-stuck{box-shadow:0 6px 14px rgba(11,22,40,.14)}
.mg-lbl{font-size:13px;color:var(--mg-chu2)}
.mg-chip{border:1px solid var(--mg-vien);background:#fff;border-radius:999px;padding:6px 12px;font-size:14px;line-height:1.3;cursor:pointer;color:var(--mg-chu)}
.mg-chip[aria-pressed=true]{background:var(--mg-tim);border-color:var(--mg-tim);color:#fff}
.mg-filters select{border:1px solid var(--mg-vien);border-radius:8px;padding:6px 8px;font-size:14px;background:#fff;height:auto}
.mg-sep{flex:1}
.mg-count{font-size:14px;color:var(--mg-chu2);margin:0 0 10px}
.mg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mg-dc{position:relative;border:1px solid var(--mg-vien);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:7px;background:#fff}
.mg-dc[hidden],.mg-line[hidden]{display:none!important} /* thắng luật grid của dòng gọn điện thoại */
.mg-top{border:2px solid var(--mg-tim)}
.mg-badge{position:absolute;top:-11px;left:14px;background:var(--mg-tim);color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:2px 8px;line-height:1.5}
.mg-badge-g{background:var(--mg-xanh)}
.mg-brand{font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--mg-chu2)}
h3.mg-plan{font-size:18px;margin:0;line-height:1.3;color:var(--mg-navy)}
.mg-dev,.mg-meta{font-size:14px;color:var(--mg-chu2)}
.mg-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.mg-price{font-size:30px;font-weight:800;color:var(--mg-navy);line-height:1}
.mg-off{background:var(--mg-nen-xanh);color:var(--mg-xanh);font-weight:800;font-size:14px;border-radius:6px;padding:2px 8px}
.mg-renew{font-size:14px;color:var(--mg-chu2)}
.mg-renew-price{color:var(--mg-cam);font-weight:700;text-decoration:none}
.mg-list-price{color:var(--mg-chu);font-weight:600;text-decoration:none}
.mg-ctl{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.mg-save{color:var(--mg-xanh)}
.mg-cta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
a.mg-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--mg-nut);color:#fff!important;text-decoration:none;font-weight:700;border-radius:8px;padding:8px 14px;font-size:14px;min-height:44px}
a.mg-btn2{font-size:13px;color:var(--mg-tim)}
.mg-tags{display:flex;gap:6px;flex-wrap:wrap}
.mg-tag{font-size:12px;border:1px solid var(--mg-vien);border-radius:6px;padding:1px 7px;color:var(--mg-chu2)}
.mg-tag-nocode{border-color:#A7F3D0;color:var(--mg-xanh);background:var(--mg-nen-xanh)}
details.mg-terms{font-size:13px;color:var(--mg-chu2)}
details.mg-terms summary{cursor:pointer}
.mg-checked{font-size:12px;color:#6B7280;margin-top:auto}
.mg-why{font-size:14px;color:var(--mg-chu)}
.mg-deals-title{margin:0 0 12px}
table.mg-table td small{font-size:12px}
.mg-empty{border:1px dashed var(--mg-vien);border-radius:12px;padding:16px;margin:12px 0}
.mg-list{display:flex;flex-direction:column;gap:12px}
.mg-line{position:relative;display:grid;grid-template-columns:120px minmax(0,1fr) 220px;gap:14px;align-items:center;border:1px solid var(--mg-vien);border-radius:14px;padding:16px;background:#fff}
.mg-pct{font-size:30px;font-weight:900;line-height:1;color:var(--mg-tim);text-align:center}
.mg-pct small{display:block;font-size:12px;font-weight:700;color:var(--mg-chu2);letter-spacing:.5px;text-transform:uppercase;margin-top:4px}
.mg-pct-na{font-size:22px;color:var(--mg-navy)}
.mg-tbl-wrap{overflow-x:auto;border:1px solid var(--mg-vien);border-radius:12px;margin:0 0 24px}
table.mg-table{border-collapse:collapse;width:100%;font-size:15px;min-width:600px;margin:0}
table.mg-table caption{caption-side:top;text-align:left;font-size:13px;color:var(--mg-chu2);padding:10px 12px;border-bottom:1px solid var(--mg-vien)}
table.mg-table th,table.mg-table td{padding:9px 12px;border:0;border-bottom:1px solid var(--mg-vien);text-align:left}
table.mg-table th{background:var(--mg-nen);font-size:14px}
table.mg-table th button{all:unset;cursor:pointer;font-weight:700}
table.mg-table th button::after{content:" \2195";color:inherit;opacity:.55;font-weight:400}
table.mg-table th[aria-sort=ascending] button::after{content:" \2191";color:inherit;opacity:1}
table.mg-table th[aria-sort=descending] button::after{content:" \2193";color:inherit;opacity:1}
table.mg-table .mg-num{text-align:right;white-space:nowrap}
table.mg-table td.mg-na{color:#6B7280;font-style:italic}
.mg-vs{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--mg-vien);border-radius:14px;overflow:hidden;margin:0 0 10px}
.mg-vs>section{padding:16px;display:flex;flex-direction:column;gap:6px}
.mg-vs>section>.mg-cta{margin-top:auto} /* nút 2 cột luôn thẳng hàng ở đáy */
.mg-verdict>b:first-child{font-weight:700}
.mg-vs>section+section{border-left:1px solid var(--mg-vien)}
h2.mg-vs-name{font-size:20px;margin:0;color:var(--mg-navy)}
.mg-for{font-size:14px}
.mg-verdict{background:var(--mg-nen);border-radius:10px;padding:10px 14px;margin:0 0 18px}
.mg-more{border:1px solid var(--mg-vien);border-radius:12px;padding:12px 14px;margin:24px 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mg-more h2{font-size:18px;margin:0 8px 0 0;width:100%}
.mg-more a{border:1px solid var(--mg-vien);border-radius:999px;padding:5px 12px;font-size:14px;text-decoration:none}
.mg-warn{border:1px dashed #DE1414;padding:8px;color:#DE1414}
/* Vòng focus bàn phím (B4 web-qa-gate 2026-11-07: nút sắp xếp bảng mất vòng focus vì all:unset; CSS ReHub có thể tắt outline).
   Mọi phần tử bấm được trong khối mg- có viền tím khi focus bằng bàn phím. */
.mg-deals :is(a,button,select,summary):focus-visible,.mg-vs a:focus-visible,.mg-tbl-wrap :is(a,button):focus-visible,.mg-more a:focus-visible{outline:2px solid #8035BE!important;outline-offset:2px}
/* Tiêu đề bảng có thể bị snippet #10 tô nền navy chữ trắng → mũi tên + viền focus theo màu chữ của tiêu đề. */
table.mg-table th button:focus-visible{outline:2px solid currentColor!important;outline-offset:2px;border-radius:4px}
.mg-sum:focus-visible,.mg-tbl-wrap:focus-visible{outline:2px solid #8035BE!important;outline-offset:2px}
/* Bảng thành thẻ (snippet #10, khung < 600 px): hiện lại chữ caption phía trên các thẻ. */
.mg-tbl-note{display:none;margin:0;padding:10px 12px;font-size:13px;color:var(--mg-chu2);border-bottom:1px solid var(--mg-vien)}
.mg-tbl-note:has(+ .card-table-wrap){display:block}
@supports not selector(:has(a + b)){@media (max-width:640px){.mg-tbl-note{display:block}}}
/* ===== Mobile v2 (2026-11-07, owner: "chỉnh giống như các công ty lớn tối ưu"; phiếu 05-cau-truc-ux-ui/migendeals_danh-gia-mobile_v1.md).
   Bố cục theo bề rộng KHUNG chứa khối (container query), không theo cửa sổ: khối nằm trong cột bài hẹp hơn cửa sổ.
   Ngưỡng 600 px trùng snippet bảng #10 (snippet cũng đo bề rộng khung). Mẫu site lớn (RetailMeNot, CouponFollow, Tom's Hardware):
   thẻ gọn, 1 nút chính rộng hết khung, chi tiết gập sau "Details", điều khiển lọc / sắp xếp luôn thấy, vùng bấm ≥ 44 px. ===== */
.mg-deals,.mg-sum-box,.mg-vs-box{container-type:inline-size}
/* Chữ trong khối không ăn line-height lớn của ReHub (28 px cho chữ 13–14 px làm thẻ cao thừa). */
.mg-deals,.mg-sum,.mg-vs,.mg-verdict,.mg-more,.mg-tbl-note{line-height:1.45}
.mg-deals article.mg-dc,.mg-deals article.mg-line{line-height:1.45} /* ReHub đặt line-height cho article */
.mg-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px}
.mg-foot details[open]{flex-basis:100%}
.mg-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;flex:1 1 auto;min-width:0}
.mg-ctls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-left:auto}
.mg-more-btn{display:block;width:100%;min-height:48px;margin:12px 0 0;border:1px solid var(--mg-tim);border-radius:10px;background:#fff;color:var(--mg-tim);font-weight:700;font-size:15px;cursor:pointer}
.mg-more-btn[hidden]{display:none}
.mg-more-btn:focus-visible{outline:2px solid #8035BE!important;outline-offset:2px}
/* Bảng thành thẻ (snippet #10): bỏ khung viền của khối để không thành 2 lớp viền quanh thẻ của snippet. */
.mg-tbl-wrap:has(.card-table-wrap){border:0;overflow:visible}
.mg-tbl-wrap:has(.card-table-wrap) .mg-tbl-note{border:0;padding:0 0 8px}
/* Khung tên / khung giá (2026-11-07): máy tính xếp dọc như trước; điện thoại thành 2 cột của dòng gọn. */
.mg-name,.mg-pbox{display:flex;flex-direction:column;gap:7px}
.mg-was{display:none}
.mg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mg-why-list{margin:4px 0 0;padding-left:20px;list-style:disc}
.mg-why-list li{margin:0;list-style:inherit}
/* Dạng dòng máy tính: % trái · tên + giá + chân giữa · nút phải */
.mg-line{grid-template-areas:"pct name cta" "pct pbox cta" "pct why cta" "pct foot cta";row-gap:6px;align-items:start}
.mg-line>.mg-pct{grid-area:pct;align-self:center}
.mg-line>.mg-name{grid-area:name}
.mg-line>.mg-pbox{grid-area:pbox;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.mg-line>.mg-why{grid-area:why}
.mg-line>.mg-cta{grid-area:cta;align-self:center}
.mg-line>.mg-foot{grid-area:foot}
.mg-line>.mg-checked,.mg-line .mg-brand{display:none}
.mg-dates-mixed .mg-line>.mg-checked{display:block}
.mg-line .mg-price{font-size:24px}
/* Popup Details (dialog), mở trên điện thoại */
.mg-dlg{border:0;border-radius:16px;padding:0;width:min(94vw,480px);max-height:88vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);line-height:1.45;color:var(--mg-chu)}
.mg-dlg::backdrop{background:rgba(11,22,40,.55)}
.mg-dlg-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;background:#fff;border-bottom:1px solid var(--mg-vien)}
.mg-dlg-head b{font-size:16px;color:var(--mg-navy)}
.mg-dlg-x{flex:0 0 auto;width:40px;height:40px;border:1px solid var(--mg-vien);border-radius:10px;background:#fff;font-size:22px;line-height:1;cursor:pointer;color:var(--mg-chu)}
.mg-dlg-x:focus-visible{outline:2px solid #8035BE;outline-offset:2px}
.mg-dlg-body{padding:12px 14px 16px}
.mg-dlg-body article{display:flex!important;flex-direction:column;gap:10px;border:0!important;padding:0!important;line-height:1.45}
.mg-dlg-body .mg-pct,.mg-dlg-body .mg-brand,.mg-dlg-body .mg-plan{display:none}
.mg-dlg-body .mg-checked,.mg-dlg-body .mg-tag:not(.mg-tag-nocode){display:none!important} /* popup: ngày kiểm + tính năng đã có trong câu điều khoản (Includes…, Checked…), không in lại */
.mg-dlg-body .mg-price{font-size:26px}
html.mg-dlg-on{overflow:hidden}
.mg-dlg-body .mg-badge{position:static;display:inline-block;align-self:flex-start}
.mg-dlg-body .mg-was,.mg-dlg-body details.mg-terms>summary{display:none}
.mg-dlg-body .mg-cta{flex-direction:column;align-items:stretch;align-self:stretch!important;gap:4px}
.mg-dlg-body a.mg-btn{width:100%;min-height:48px;font-size:15px}
.mg-dlg-body a.mg-btn2{text-align:center;padding:6px 0}
.mg-dlg-body .mg-terms-txt{font-size:13px;color:var(--mg-chu2)}
@container (max-width:719px){.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:599px){
	/* Lọc: chip xuống dòng, thấy đủ (owner 2026-11-07: chip bị cắt ở mép trông như lỗi); 2 ô chọn cao 44 px */
	/* Điện thoại: chỉ hàng chip dính (cả thanh cao ~180 px sẽ che quá nhiều); Devices / Sort cuộn theo trang. display:contents để chip dính theo cả khối, không bị giới hạn trong .mg-filters. */
	.mg-js .mg-filters{display:contents}
	.mg-chips{flex-wrap:wrap;gap:6px;position:sticky;top:var(--mg-stick-top,0px);z-index:20;background:#fff;border:1px solid var(--mg-vien);border-radius:12px;padding:6px 8px}
	.mg-chips>.mg-lbl{display:none}
	.mg-chip{min-height:36px;padding:5px 12px;font-size:14px}
	.mg-ctls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 12px}
	.mg-ctls:has(> .mg-ctl:only-child){grid-template-columns:1fr}
	.mg-ctl{display:flex;flex-direction:column;align-items:stretch;gap:2px;white-space:normal}
	.mg-ctl select{width:100%;min-height:44px;font-size:15px}
	/* Dòng gọn (owner 2026-11-07, theo khối "Best Deals" của site): tên | giá năm đầu + giá gốc gạch | nút →.
	   Giá sau năm đầu, tiết kiệm, tính năng, lý do chọn, nguồn giá: trong popup Details (JS). */
	.mg-grid{grid-template-columns:1fr;gap:8px}
	.mg-list{gap:8px}
	.mg-deals article.mg-dc,.mg-deals article.mg-line{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;grid-template-areas:"name pbox cta" "foot pbox cta";gap:2px 10px;align-items:center;padding:14px 12px 8px;border-radius:12px}
	.mg-deals article>.mg-name{grid-area:name;gap:0}
	.mg-deals article>.mg-pbox{grid-area:pbox;flex-direction:column;flex-wrap:nowrap;align-items:flex-end;text-align:right;gap:0}
	.mg-deals article>.mg-cta{grid-area:cta;align-self:center}
	.mg-deals article>.mg-foot{grid-area:foot;justify-content:flex-start;gap:4px 10px}
	.mg-deals article>.mg-pct,.mg-deals article>.mg-why,.mg-deals article>.mg-checked,.mg-deals .mg-d2,.mg-deals .mg-d3,.mg-deals .mg-ren,.mg-deals .mg-tags .mg-tag:not(.mg-tag-nocode),.mg-deals a.mg-btn2,.mg-deals .mg-line .mg-brand{display:none}
	.mg-deals .mg-amz .mg-d3{display:inline} /* nút Amazon: giữ "price at <hãng>" vì giá Amazon có thể khác */
	.mg-dates-mixed article>.mg-checked{display:block;grid-column:1/-1;font-size:12px}
	.mg-deals .mg-row{display:contents}
	.mg-deals .mg-price{order:1;font-size:20px}
	.mg-deals .mg-was{order:2;display:block;font-size:13px;color:#6B7280}
	.mg-deals .mg-off{display:none} /* % giảm: trong popup; giá gốc gạch đã cho thấy mức giảm */
	.mg-deals .mg-brand{font-size:12px}
	.mg-deals h3.mg-plan{font-size:15px;line-height:1.3}
	.mg-deals .mg-dev{font-size:13px}
	.mg-deals a.mg-btn{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:0;border-radius:10px}
	.mg-deals a.mg-btn::after{content:"\2192";font-size:20px;line-height:1;font-weight:700} /* mũi tên, không dùng giỏ hàng: nút dẫn sang xem giá, không thêm vào giỏ */
	.mg-deals details.mg-terms summary{display:flex;align-items:center;min-height:36px;font-size:13px;font-weight:600;color:var(--mg-tim)}
	.mg-deals .mg-tag-nocode{font-size:12px;padding:0 6px}
	.mg-deals .mg-badge{top:-10px;font-size:12px;padding:1px 7px}
}
/* Khối deal hẹp hơn 360 px (màn ≤ khoảng 390 px, vì trừ lề trang): chip nhỏ hơn để hàng phân loại dính còn 2 hàng
   (đo Live Preview 320 px trước khi sửa: 3 hàng, 134 px; sau: 2 hàng, 81 px). Vùng bấm vẫn ≥ 32 px. */
@container (max-width:599px){
	.mg-has-promos .mg-chips{background:#F5EDFC;border-color:#E4D3F5;border-bottom:0;border-radius:12px 12px 0 0}
	.mg-has-promos .mg-chips.mg-stuck{border-bottom:1px solid #E4D3F5;border-radius:12px}
	.mg-has-promos .mg-ctls{margin:0 0 12px;padding:2px 8px 10px;background:#F5EDFC;border:1px solid #E4D3F5;border-top:0;border-radius:0 0 12px 12px}
}
@container (max-width:359px){
	.mg-chips{gap:5px;padding:5px 6px}
	.mg-chip{min-height:32px;padding:4px 9px;font-size:13px}
}
@container (max-width:599px){
	/* Tóm tắt 1.5.1: điện thoại cũng là chip (owner 2026-11-21; thay khối chữ gọn 2026-11-07), nhỏ hơn 1 chút, xuống hàng khi hết chỗ */
	.mg-sum{gap:6px}
	.mg-sum li{font-size:12.5px}
	.mg-sum li b{padding:4px 8px;font-size:13px}
	.mg-sum li span{padding:4px 10px 4px 7px}
}
@container (max-width:599px){
	/* VS: giữ 2 cột cạnh nhau để so ngay (trước: xếp chồng ở ≤ 480 px, phải cuộn qua lại) */
	.mg-vs>section{padding:12px;gap:5px}
	h2.mg-vs-name{font-size:16px}
	.mg-vs .mg-price{font-size:22px}
	.mg-vs .mg-renew,.mg-vs .mg-dev,.mg-vs .mg-for{font-size:13px}
	.mg-vs .mg-cta{flex-direction:column;align-items:stretch;gap:4px}
	.mg-vs a.mg-btn{width:100%;min-height:44px;padding:8px;font-size:13px;text-align:center}
}
/* Chỉ xếp chồng khi khung < 300 px (màn 360 px vẫn giữ 2 cột ~160 px) */
@container (max-width:299px){.mg-vs{grid-template-columns:1fr}.mg-vs>section+section{border-left:0;border-top:1px solid #E5E7EB}}
/* Trình duyệt chưa có container query: giữ bố cục theo cửa sổ như bản trước */
@supports not (container-type:inline-size){
@media (max-width:900px){.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
	@media (max-width:640px){
		.mg-grid{grid-template-columns:1fr}
		.mg-filters{flex-wrap:nowrap;overflow-x:auto}
		.mg-sep{display:none}
		.mg-sum{gap:6px}
		.mg-line{grid-template-columns:88px minmax(0,1fr)}
		.mg-line .mg-cta{grid-column:1/-1}
		.mg-pct{font-size:26px}
		.mg-price{font-size:28px}
	}
	@media (max-width:480px){.mg-vs{grid-template-columns:1fr}.mg-vs>section+section{border-left:0;border-top:1px solid #E5E7EB}}
}

/* ===== Kiểu "Best Deals list": giữ nguyên CSS khối Content Egg đang chạy (cegg-ctt, crawl 2026-11-06), đổi tiền tố mgd-bd ===== */
/* Tương phản (axe 2026-11-10): giá gạch #999 → #666 (≥ 5,2:1 trên cả nền trắng, kem, xám nhạt), HOT #e03e2d → #C62F20 (5,5:1); còn lại giữ màu khối cũ. */
.mgd-bd{font-family:inherit;max-width:100%;margin-bottom:1.5rem;container-type:inline-size;line-height:1.45} /* ReHub đặt line-height 28 px làm tên gói cao thừa */
.mgd-bd-name .mgd-bd-hot{display:inline-block;vertical-align:1px;margin-left:2px}
.mgd-bd-header{background:#1a1a2e;padding:9px 16px;border-radius:6px 6px 0 0}
.mgd-bd-header-text{font-size:13px;font-weight:700;color:#fff}
.mgd-bd-body{border:1px solid #e0e0e0;border-top:none;border-radius:0 0 6px 6px;overflow:hidden}
.mgd-bd-row{display:flex;align-items:center;padding:10px 16px;gap:10px;background:#fff}
.mgd-bd-grp .mgd-bd-row:nth-child(even){background:#f7f7f5}
.mgd-bd-row.is-hot{background:#fff8f0!important}
.mgd-bd-row.is-noprice{background:#f5f8ff!important}
.mgd-bd-spacer{height:6px;background:#f0f0f0;border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}
.mgd-bd-name{flex:1;font-size:14px;color:#1a1a1a;min-width:0;display:flex;align-items:center;gap:6px}
.mgd-bd-name>span.t{overflow:hidden;text-overflow:ellipsis}
.mgd-bd-asof{display:block;font-size:12px;color:#6B7280;font-weight:400}
.mgd-bd-src{font-size:10px;font-weight:700;border-radius:3px;padding:2px 5px;flex-shrink:0;line-height:1.4;white-space:nowrap}
.mgd-bd-src-amz{background:#f5c518;color:#111}
.mgd-bd-src-off{background:#1a6fc4;color:#fff}
.mgd-bd-src-deal{background:#6c5ce7;color:#fff}
.mgd-bd-hot{font-size:10px;font-weight:700;color:#fff;background:#C62F20;border-radius:3px;padding:2px 5px;flex-shrink:0;line-height:1.4;letter-spacing:.04em}
.mgd-bd-price{width:70px;text-align:right;font-size:14px;font-weight:700;color:#1a1a1a;white-space:nowrap;flex-shrink:0}
.mgd-bd-price.chk{width:auto;font-size:13px;font-weight:600;color:#374151}
.mgd-bd-oldprice{width:52px;text-align:right;font-size:13px;color:#666;text-decoration:line-through;white-space:nowrap;flex-shrink:0}
.mgd-bd-btn a{background:#007185;color:#fff;border-radius:5px;font-size:13px;font-weight:600;padding:8px 16px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex-shrink:0}
.mgd-bd-btn a:hover{background:#005f6e}
.mgd-bd-btn a:focus-visible{outline:2px solid #007185;outline-offset:2px}
.mgd-bd-btn-icon{display:none}
.mgd-bd-foot{font-size:12px;color:#4B5563;padding:8px 16px 10px;background:#fff;border-top:1px solid #e0e0e0;line-height:1.5}
.mgd-bd-foot a{color:#007185}
.mgd-bd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@container (max-width:600px){
 .mgd-bd-name{white-space:normal;font-size:13px}
 .mgd-bd-row{gap:8px;padding:10px 12px}
 .mgd-bd-price,.mgd-bd-oldprice{width:auto}
 .mgd-bd-btn{margin-left:auto}
 .mgd-bd-btn a{padding:8px 12px;min-width:44px;min-height:40px}
 .mgd-bd-btn-label{display:none}.mgd-bd-btn-icon{display:flex}
 .mgd-bd-foot{padding:8px 12px 10px}
}

/* ===== 1.1.0 kiểu "Offer list" (owner duyệt mockup-nut-cta_v4 2026-11-19, bố cục RetailMeNot; mặc định site). Tiền tố mgo-.
   Máy tính: ô % · tên + thiết bị + nhãn · cột giá cố định (thẳng hàng giữa các thẻ) · nút ôm chữ · chân: tên miền ↔ See Details.
   Khối 600–699 px: giá trên / dưới. Khối < 600 px: chip % + Our pick trên viền, giá 1 cột, nút tròn 44 px giỏ hàng.
   Giá sale đỏ #CC0C39 (5,7:1 trên trắng) semibold. "See Details" không viền / gạch khi focus (owner 2026-11-19: dấu + / − đủ). ===== */
.mgo-list{--mgo-sale:#CC0C39;--mgo-nen-tim:#F5EDFC;display:flex;flex-direction:column;gap:14px}
.mg-deals article.mgo{position:relative;border:1px solid #D1D5DB;border-radius:10px;background:#fff;line-height:1.45;margin:0;padding:0}
.mg-deals article.mgo[hidden]{display:none!important}
.mg-deals article.mgo.mgo-top{border:2px solid var(--mg-navy)}
.mgo-head{background:var(--mg-navy);color:#fff;font-weight:700;font-size:15px;line-height:1.4;padding:7px 16px;border-radius:8px 8px 0 0;text-align:center}
.mgo-chips{display:none}
.mgo-main{display:grid;grid-template-columns:120px minmax(0,1fr) 140px 150px;grid-template-areas:"off body price cta";gap:4px 22px;align-items:center;padding:16px 20px 12px}
.mgo-top>.mgo-main{padding-left:19px;padding-right:19px} /* viền 2 px: bù 1 px để cột giá thẳng với thẻ viền 1 px */
.mgo-off{grid-area:off;font-size:30px;font-weight:900;line-height:1.05;color:var(--mg-tim);text-align:center;text-transform:uppercase}
.mgo-off small{display:block;font-size:24px}
.mgo-off-na{font-size:24px;color:var(--mg-navy)}
.mgo-off-na small{font-size:11px;font-weight:700;color:var(--mg-chu2);letter-spacing:.4px;margin-top:4px}
.mgo-body{grid-area:body;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.mg-deals .mgo .mgo-name{font-size:19px;font-weight:500;margin:0;padding:0;color:var(--mg-navy);line-height:1.3}
.mgo-sub{font-size:14px;color:var(--mg-chu2)}
.mgo-meta{font-size:12px;font-weight:600;background:var(--mgo-nen-tim);color:var(--mg-chu);border-radius:4px;padding:1px 7px}
.mgo-price{grid-area:price;display:flex;align-items:baseline;justify-content:flex-start;gap:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mgo-price b{color:var(--mgo-sale);font-size:19px;font-weight:600;line-height:1.1}
.mgo-price s{color:#6B7280;font-size:14px}
.mgo-cta{grid-area:cta;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.mg-deals a.mgo-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 20px;border-radius:20px;background:var(--mg-nut);color:#fff!important;font-weight:700;font-size:15px;line-height:1;text-decoration:none!important;white-space:nowrap}
.mg-deals a.mgo-btn:hover{background:#C01010}
/* Show Code: góc gấp "lấp lửng" như mép phiếu bị bóc (cách RetailMeNot làm); mã chưa lộ đến khi bấm */
.mg-deals a.mgo-btn.mgo-code{padding-right:28px}
.mg-deals a.mgo-code::before{content:"";position:absolute;right:-17px;top:-10px;width:40px;height:27px;transform:rotate(45deg);background:#D1D5DB;z-index:1}
.mg-deals a.mgo-code::after{content:"";position:absolute;right:-14px;top:-14px;width:40px;height:40px;transform:rotate(45deg);border-radius:50%;background:rgba(255,255,255,.28)}
.mg-deals a.mgo-code:hover::before{right:-14px;top:-7px}
.mgo-codebox{display:inline-flex;align-items:center;gap:8px;height:40px;box-sizing:border-box;padding:0 4px 0 14px;border:2px dashed var(--mg-nut);border-radius:20px;font:700 15px/1 ui-monospace,Consolas,monospace;letter-spacing:1px;color:var(--mg-navy);background:#FEF2F2}
.mgo-codebox button{margin-left:auto;height:30px;padding:0 12px;border:0;border-radius:15px;background:var(--mg-nut);color:#fff;font:700 13px/1 system-ui,sans-serif;cursor:pointer}
.mgo-ft{position:relative;border-top:1px solid var(--mg-vien);margin:0 20px}
.mgo-top>.mgo-ft{margin:0 19px}
.mgo-to{position:absolute;left:0;top:9px;display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:1.3;color:var(--mg-chu2);white-space:nowrap;pointer-events:none}
.mgo-fav{width:16px;height:16px;border-radius:3px;flex:0 0 16px;color:var(--mg-chu2)} /* PNG 48 px = 3× → sắc nét ở 1× / 2× / 3× */
details.mgo-terms{padding:8px 0 10px;font-size:13px;color:var(--mg-chu2);margin:0}
details.mgo-terms>summary{list-style:none;cursor:pointer;width:fit-content;margin-left:auto;font-size:13px;font-weight:600;color:var(--mg-chu)}
details.mgo-terms>summary::-webkit-details-marker{display:none}
details.mgo-terms>summary::after{content:"  +";font-weight:400;font-size:16px}
details.mgo-terms[open]>summary::after{content:"  \2212"}
.mg-deals details.mgo-terms>summary:focus,.mg-deals details.mgo-terms>summary:focus-visible{outline:none!important;text-decoration:none}
html.mg-kbd .mg-deals details.mgo-terms>summary:focus{outline:2px solid var(--mg-tim)!important;outline-offset:3px;border-radius:4px} /* chỉ khi dùng phím Tab (JS) */
.mgo-dt{display:flex;flex-direction:column;gap:5px;margin-top:4px}
.mgo-dt p{margin:0!important;font-size:13px;line-height:1.5}
.mgo-dt .mgo-sale-t{color:var(--mgo-sale);font-weight:600}
.mgo-dt .mgo-ren-t{color:var(--mg-cam)}
.mgo-dt .mgo-save{color:var(--mg-xanh)}
.mgo-dt .mg-why{font-size:13px}
.mgo-tags{display:flex;flex-wrap:wrap;gap:4px}
.mgo-tag{font-size:12px;border:1px solid var(--mg-vien);border-radius:6px;padding:0 6px}
.mgo-code-t{font-weight:700;letter-spacing:1px}
/* 1.4.0 nhiều cửa hàng (owner 2026-11-20): gói có trên Amazon đúng y hệt → cột giá = giá thấp nhất (+ "at <nơi>"), nút navy "See Deals"
   mở danh sách cửa hàng; chân thẻ: icon các cửa hàng chồng nhau + "N stores". Không JS: danh sách luôn hiện. */
.mg-deals a.mgo-btn.mgo-see{background:var(--mg-navy)}
.mg-deals a.mgo-btn.mgo-see:hover,.mg-deals .mgo-open a.mgo-btn.mgo-see{background:#24324D}
.mgo-multi .mgo-price{flex-wrap:wrap;row-gap:0}
.mgo-at{flex-basis:100%;font-size:12px;color:var(--mg-chu2);line-height:1.3}
.mg-js .mgo-multi:not(.mgo-open)>.mgo-stores{display:none}
.mgo-stores{margin:0 20px;padding:2px 0 12px}
.mgo-top>.mgo-stores{margin:0 19px}
.mg-deals p.mgo-st-h{margin:6px 0 6px;font-size:13px;font-weight:600;color:var(--mg-chu)}
.mg-deals ul.mgo-st-list{list-style:none;margin:0;padding:0;border:1px solid var(--mg-vien);border-radius:8px}
.mg-deals li.mgo-st{display:grid;grid-template-columns:minmax(0,1fr) auto 128px;gap:4px 16px;align-items:center;padding:8px 12px;margin:0;list-style:none}
.mg-deals li.mgo-st+li.mgo-st{border-top:1px solid var(--mg-vien)}
.mgo-st-name{display:flex;align-items:center;gap:8px;min-width:0}
.mgo-st-name>span{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.mgo-st-name b{font-size:14px;font-weight:600;color:var(--mg-navy)}
.mgo-st-name small{font-size:12px;color:var(--mg-chu2)}
.mgo-st-price{display:flex;align-items:baseline;justify-content:flex-end;gap:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mgo-st-price b{color:var(--mgo-sale);font-size:16px;font-weight:600}
.mgo-st-price s{color:#6B7280;font-size:13px}
.mgo-st-chk{font-size:13px;color:var(--mg-chu2)}
.mgo-st-cta{grid-area:auto;align-items:flex-end}
.mg-deals a.mgo-st-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 14px;border-radius:17px;background:var(--mg-nut);color:#fff!important;font-weight:700;font-size:13px;line-height:1;text-decoration:none!important;white-space:nowrap}
.mg-deals a.mgo-st-btn:hover{background:#C01010}
.mg-deals a.mgo-st-btn svg{display:none}
.mg-deals p.mgo-st-note{margin:6px 0 0;font-size:12px;color:var(--mg-chu2);line-height:1.4}
.mgo-favs{display:inline-flex;align-items:center}
.mgo-favs .mgo-fav{border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px #fff}
.mgo-favs .mgo-fav+.mgo-fav{margin-left:-5px}
.mgo-to-multi{color:var(--mg-chu);font-weight:600}
/* 1.4.0 ưu đãi không có giá (uu-dai.csv, owner 2026-11-20): hộp kiểu Offer trên bộ lọc, không cột giá. */
.mgo-promos{--mgo-sale:#CC0C39;--mgo-nen-tim:#F5EDFC;display:flex;flex-direction:column;gap:14px;margin:0 0 16px}
.mg-deals p.mgo-promo-cap{margin:0 0 -4px;font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--mg-chu2)}
.mgo-promo>.mgo-main{grid-template-columns:120px minmax(0,1fr) 150px;grid-template-areas:"off body cta"}
.mgo-off-deal{font-size:24px}
/* "Up to X% off": chữ UP TO nhỏ phía trên số, để khách không đọc thành mức giảm cố định */
.mgo-off small.mgo-upto{font-size:13px;font-weight:800;letter-spacing:.6px;margin-bottom:2px}
/* Khối có hộp ưu đãi (owner 2026-11-20): bộ lọc nền tím nhạt, làm dải ngăn giữa "Special offers" và danh sách gói. Chip / ô chọn giữ nền trắng. */
.mg-has-promos .mg-filters{background:#F5EDFC;border-color:#E4D3F5}
@container (min-width:600px) and (max-width:699px){
 .mgo-main{grid-template-columns:100px minmax(0,1fr) 76px 150px;gap:4px 16px}
 .mgo-promo>.mgo-main{grid-template-columns:100px minmax(0,1fr) 150px}
 .mgo-price{flex-direction:column;align-items:flex-end;gap:0}
}
@container (max-width:599px){
 .mgo-list{gap:20px}
 .mgo-head,.mgo-off{display:none}
 .mgo-chips{display:flex;gap:6px;position:absolute;top:0;left:11px;transform:translateY(-50%);z-index:1}
 .mgo-chip{background:var(--mg-tim);color:#fff;font-size:12px;font-weight:800;line-height:1;letter-spacing:.3px;text-transform:uppercase;border-radius:6px;padding:4px 8px;white-space:nowrap}
 .mgo-chip-pick{background:var(--mg-navy);text-transform:none}
 /* Nhãn tính từ số (Lowest first-year price, Biggest % off, Lowest per device) lên viền trên, góc phải (owner 2026-11-20);
    chip % + Our pick giữ góc trái. Cao 20 px như chip trái (12 px + đệm 3 + viền 1). */
 .mgo-meta{position:absolute;top:0;right:11px;transform:translateY(-50%);z-index:1;font-size:12px;font-weight:700;line-height:1;border:1px solid #E4D3F5;border-radius:6px;padding:3px 7px;white-space:nowrap}
 .mgo-main{grid-template-columns:minmax(0,1fr) auto 44px;grid-template-areas:"body price cta";gap:2px 12px;padding:16px 12px 10px}
 .mgo-top>.mgo-main{padding-left:11px;padding-right:11px}
 .mgo-promos{gap:20px;margin:0 0 20px}
 .mg-deals p.mgo-promo-cap{margin:0}
 .mgo-promo>.mgo-main{grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"body cta"}
 .mg-deals .mgo .mgo-name{font-size:16px}
 .mgo-sub{font-size:13px}
 .mgo-price{flex-direction:column;align-items:flex-end;gap:0}
 .mgo-price b{font-size:17px}.mgo-price s{font-size:13px}
 /* Nút tròn 44 px: chữ ẩn khỏi mắt (trình đọc màn hình đọc aria-label), giỏ hàng; Show Code ghi "Code" */
 .mg-deals a.mgo-btn{width:44px;height:44px;padding:0;border-radius:22px}
 .mg-deals a.mgo-btn.mgo-code{padding:0}
 .mgo-btn-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .mg-deals a.mgo-btn:not(.mgo-code)::before{content:"";width:22px;height:22px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h3l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.1l1.7-7.3H6.4'/%3E%3C/svg%3E")}
 .mg-deals a.mgo-code::after{content:"Code";position:static;width:auto;height:auto;transform:none;border-radius:0;background:none;font-size:11px;font-weight:800;color:#fff}
 .mg-deals a.mgo-code::before{right:-12px;top:-8px;width:26px;height:18px}
 .mgo-codebox{height:40px;font-size:14px;padding:0 4px 0 10px;margin-top:4px;align-self:stretch}
 .mgo-codebox button{height:32px;padding:0 10px}
 .mgo-ft{margin:0 12px}
 .mgo-top>.mgo-ft{margin:0 11px}
 .mgo-to{top:7px}
 /* nhiều cửa hàng: icon so sánh (2 mũi tên ngược chiều) thay giỏ hàng; danh sách cửa hàng gọn: tên | giá | nút tròn 40 px giỏ hàng */
 .mg-deals a.mgo-btn.mgo-see::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5 3 7.5l4 4M3 7.5h14M17 12.5l4 4-4 4M21 16.5H7'/%3E%3C/svg%3E")}
 .mgo-stores{margin:0 12px}
 .mgo-top>.mgo-stores{margin:0 11px}
 .mg-deals li.mgo-st{grid-template-columns:minmax(0,1fr) auto 40px;gap:2px 10px;padding:8px 10px}
 .mgo-st-name b{font-size:13px}
 .mgo-st-name small{font-size:11px}
 .mgo-st-price{flex-direction:column;align-items:flex-end;gap:0}
 .mgo-st-price b{font-size:15px}.mgo-st-price s{font-size:12px}
 .mg-deals a.mgo-st-btn{width:40px;height:40px;padding:0;border-radius:20px}
 .mg-deals a.mgo-st-btn svg{display:block;width:20px;height:20px}
 details.mgo-terms{padding:6px 0 8px}
 details.mgo-terms>summary{font-size:12px}
}
/* Khối < 320 px (điện thoại 320–350 px): thẻ Our pick có 2 chip trái (% + Our pick, ~156 px) + nhãn dài nhất (141 px) không đủ chỗ
   trên viền (đo 2026-11-20 ở 288 px: chồng nhau) → riêng thẻ Our pick để nhãn về dưới tên gói như trước. */
@container (max-width:319px){
 .mgo-top .mgo-meta{position:static;transform:none}
}
/* ===== 1.4.0 kiểu "Simple list" (mgs, owner 2026-11-20): dáng Best Deals list (dùng lại lớp mgd-bd-*), nơi bán = icon + tên miền,
   ưu đãi không giá ở trên, gói ≥ 2 nơi bán: giá thấp nhất + nút navy "See Deals" mở danh sách nơi bán dưới dòng. ===== */
.mgs{--mg-tim:#8035BE;--mg-navy:#0B1628;--mg-nut:#DE1414;--mg-chu:#1F2937;--mg-chu2:#4B5563;--mg-vien:#E5E7EB} /* biến màu cho ô mã (Show Code) dùng chung với kiểu Offer */
.mgs a[data-mgo-see]:focus-visible,.mgs .mgo-codebox button:focus-visible{outline:2px solid #8035BE!important;outline-offset:2px}
.mgs .mgd-bd-grp>.mgd-bd-row+.mgd-bd-row,.mgs .mgs-plans>*+*{border-top:1px solid #ececec}
.mgs .mgd-bd-grp .mgd-bd-row:nth-child(even){background:#fff}
.mgs .mgs-promos .mgd-bd-row{background:#f5f8ff}
.mgs-src{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;font-size:12px;font-weight:600;color:#374151;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;padding:2px 6px;line-height:1.3;white-space:nowrap}
.mgs-src .mgo-fav{width:14px;height:14px;flex:0 0 14px;border-radius:3px}
.mgs-src-n{background:#EEF2FF;border-color:#C7D2FE;color:#1E2A44}
.mgs-src .mgo-favs .mgo-fav{border-radius:50%}
/* Cột giá thẳng hàng (owner 2026-11-20): giá 84 px · giá gạch 64 px · ô nút 108 px (nút ôm chữ, căn phải) — mọi dòng, cả dòng nơi bán */
.mgs .mgd-bd-price,.mgs .mgd-bd-price.chk{flex:0 0 84px;width:84px;min-width:0}
.mgs .mgd-bd-oldprice{flex:0 0 64px;width:64px}
.mgs .mgd-bd-btn{flex:0 0 100px;display:flex;justify-content:flex-end}
.mgs .mgd-bd-btn:has(.mgo-codebox){flex-basis:auto} /* ô mã sau Show Code rộng hơn cột nút */
.mgs .mgs-val{flex:0 0 auto;width:auto}
.mgs-dev{display:block;font-size:12px;color:#6B7280;font-weight:400;line-height:1.35}
.mgs-at{display:block;font-size:11px;font-weight:500;color:#6B7280;text-align:right}
.mgs .mgs-val{font-size:13px;font-weight:700;color:#5b21b6;text-align:right}
.mgs .mgd-bd-btn a.mgs-see{background:#0B1628}
.mgs .mgd-bd-btn a.mgs-see:hover,.mgs .mgo-open .mgd-bd-btn a.mgs-see{background:#24324D}
.mgs .mgd-bd-btn a{box-sizing:border-box;width:100%;min-width:0;height:30px;padding:0 8px;line-height:1.2} /* mọi nút cùng 100 × 30 px, thẳng cột (owner 2026-11-20) */
.mgs-stores{background:#fafafa;border-top:1px solid #e5e7eb;padding:4px 0 0}
.mg-js .mgs-multi:not(.mgo-open)>.mgs-stores{display:none}
.mgs-st-h{font-size:12px;font-weight:600;color:#4B5563;padding:4px 16px 2px 32px}
.mgs .mgs-st{padding:6px 16px 6px 32px}
/* danh sách nơi bán: vạch ngăn nhẹ + màu xen kẽ để phân biệt từng deal (owner 2026-11-20); con thứ 1 là dòng tiêu đề */
.mgs .mgs-stores>.mgs-st{border-top:1px solid #ececec;background:#fff}
.mgs .mgs-stores>.mgs-st:nth-child(odd){background:#f4f5f7}
.mgs .mgs-st .mgd-bd-btn a{font-size:13px}
.mgs .mgs-code-i{font-size:11px;font-weight:800}
.mgs .mgo-codebox{height:34px;font-size:13px}
/* Simple list 3 phần: khối ưu đãi tách riêng, cụm lọc ở giữa, khối gói có giá ở dưới (owner 2026-11-20) */
.mgs-wrap .mgd-bd{margin-bottom:0}
.mgs-wrap .mgs-sec-promos{margin-bottom:12px}
.mgs-wrap>.mg-count{margin:0 0 8px}
.mgs .mgs-empty{margin:10px 16px;border-radius:8px}
.mgs .mgs-plans>[hidden]{display:none!important}
.mgs-wrap .mgs-sec-promos .mgd-bd-header{background:#3b2a63}
/* Dòng xen kẽ trắng – xanh dương nhạt #EEF4FB (owner 2026-11-20 chọn B) ở cả 2 section. Sọc tính theo dòng đang hiện
   (lọc / sắp xếp xong vẫn xen kẽ). Dòng HOT giữ nền cam nhạt; danh sách nơi bán khi mở giữ màu riêng. */
.mgs{--mgs-zebra:#EEF4FB}
.mgs .mgs-plans>[data-mg-item],.mgs .mgs-plans>[data-mg-item]>.mgd-bd-row{background:#fff}
.mgs .mgs-plans>[data-mg-item]:nth-child(even of :not([hidden])),.mgs .mgs-plans>[data-mg-item]:nth-child(even of :not([hidden]))>.mgd-bd-row{background:var(--mgs-zebra)}
.mgs .mgs-promos>.mgd-bd-row{background:#fff!important}
.mgs .mgs-promos>.mgd-bd-row:nth-child(even){background:var(--mgs-zebra)!important}
@container (max-width:600px){
 .mgs .mgd-bd-name{flex-wrap:wrap;row-gap:3px}
 .mgs .mgd-bd-name>span.t{flex-basis:100%}
 .mgs .mgd-bd-price,.mgs .mgd-bd-price.chk{flex:0 0 66px;width:66px}
 .mgs .mgd-bd-price.chk{font-size:12px}
 .mgs .mgd-bd-oldprice{flex:0 0 50px;width:50px}
 .mgs .mgd-bd-btn{flex:0 0 36px}
 .mgs .mgs-val{flex:0 0 auto;width:auto;max-width:96px}
 .mgs .mgd-bd-btn a{min-width:0;min-height:0;width:36px;height:36px;padding:0} /* nút icon ôm sát icon, vùng bấm 36 px */
 .mgs-st-h{padding:4px 12px 2px 20px}
 .mgs .mgs-st{padding:6px 12px 6px 20px}
 .mgs .mgs-st .mgd-bd-btn a{padding:0}
 .mgs .mgd-bd-btn a.mgs-see .mgs-cmp{width:20px;height:20px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5 3 7.5l4 4M3 7.5h14M17 12.5l4 4-4 4M21 16.5H7'/%3E%3C/svg%3E")}
}
/* 1.6.0 Price history ([mg_price_history]) */
.mgph{margin:0 0 24px;border:1px solid var(--mg-vien,#E5E7EB);border-radius:12px;padding:16px 16px 12px;background:#fff}
.mgph-cap{font-size:15px;line-height:1.45;margin:0 0 8px;color:#1F2937}.mgph-cap span{color:#4B5563;font-size:13px}
.mgph-svg{display:block;width:100%;height:auto}.mgph-m{display:none}
.mgph-svg .g{stroke:#EEF0F3}.mgph-svg .yl{font:12px Roboto,Arial,sans-serif;fill:#6B7280;text-anchor:end}.mgph-svg .xl{font:12px Roboto,Arial,sans-serif;fill:#6B7280;text-anchor:middle}.mgph-svg .xl.st{text-anchor:start}
.mgph-svg .ln{fill:none;stroke:#8035BE;stroke-width:2.5;stroke-linejoin:round}.mgph-svg .dot{fill:#fff;stroke:#8035BE;stroke-width:2}
.mgph-svg .ren{stroke:#9CA3AF;stroke-dasharray:5 4}.mgph-svg .rl{font:12px Roboto,Arial,sans-serif;fill:#4B5563;text-anchor:end}
.mgph-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:#F3F4F6;border-radius:10px;padding:14px 16px;margin:12px 0 8px}
.mgph-sl{display:flex;align-items:center;gap:6px;font-size:13px;color:#4B5563}.mgph-st.hi .mgph-sl svg{color:#CC0C39}.mgph-st.lo .mgph-sl svg{color:#047857}.mgph-st.cur .mgph-sl svg{color:#8035BE}
.mgph-sv b{font-size:20px;margin-right:6px;color:#1F2937}.mgph-sv span{font-size:13px;color:#4B5563}.mgph-sd{font-size:12.5px;color:#4B5563}
.mgph-since{font-size:12.5px;color:#6B7280;margin:0 0 6px!important}
.mgph-tbl summary{cursor:pointer;font-size:13.5px;color:#8035BE;font-weight:600}.mgph-tbl table{border-collapse:collapse;width:100%;font-size:13.5px;margin:8px 0 0}
.mgph-tbl th,.mgph-tbl td{border-bottom:1px solid #E5E7EB;padding:6px 8px;text-align:left}.mgph-tbl th{background:#F3F4F6}
@media (max-width:560px){.mgph-d{display:none}.mgph-m{display:block}.mgph-stats{gap:8px;padding:10px}.mgph-sl{font-size:12px}.mgph-sl svg{display:none}.mgph-sv b{display:block;font-size:17px}.mgph-sv span{display:none}.mgph-sd{font-size:11.5px}}
