/* =========================================================
   CỔNG ĐỐI TÁC B2B — dùng token màu của theme (main.css :root)
   ========================================================= */
.b2b-chip{display:inline-flex;align-items:center;gap:4px;background:var(--green-light);color:var(--green-dark);border:1px solid #cfe5c5;font:600 11.5px/1.5 var(--font-body);padding:1px 8px;border-radius:999px;white-space:nowrap;vertical-align:middle}
.b2b-tag{display:inline-flex;align-items:center;background:var(--bg-soft);color:var(--text);border:1px solid var(--line);font:500 12px/1.5 var(--font-body);padding:2px 9px;border-radius:999px}
.b2b-save{color:var(--green-dark);font-size:12px;font-weight:600}
.b2b-muted{color:var(--muted)}
.b2b-hint{color:var(--muted);font-size:13px;margin:6px 0 0}
.b2b-eyebrow{display:inline-block;font:600 12px/1.4 var(--font-body);letter-spacing:.3px;text-transform:uppercase;color:var(--green)}
.b2b-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}
.b2b-alert{border-radius:var(--radius-sm);padding:10px 12px;font-size:14px;margin:0 0 12px}
.b2b-alert--bad{background:#fdecec;color:#a61b1b;border:1px solid #f6c9c9}
.b2b-alert--info{background:var(--green-50);color:var(--ink);border:1px solid var(--line)}
.b2b-pill{display:inline-block;font:600 11.5px/1.5 var(--font-body);padding:1px 8px;border-radius:999px;vertical-align:middle}
.b2b-pill--good{background:#e7f4ea;color:#1e7b34}.b2b-pill--warn{background:#fff4e0;color:#995a00}.b2b-pill--info{background:#e9f1fb;color:#1f5d99}.b2b-pill--bad{background:#fdecec;color:#b42318}
.btn.is-disabled{opacity:.45;pointer-events:none;filter:grayscale(.3)}

/* ---------- Header ---------- */
.b2b-hdr{display:inline-flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;padding:6px 12px 6px 8px;border:1px solid var(--line);border-radius:999px;background:#fff;transition:border-color .15s,box-shadow .15s;max-width:240px}
.b2b-hdr:hover{border-color:var(--green);box-shadow:var(--shadow)}
.b2b-hdr svg{flex:none;color:var(--green)}
.b2b-hdr__txt{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.b2b-hdr__txt small{font-size:11px;color:var(--muted)}
.b2b-hdr__txt b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b2b-hdr.is-in{background:var(--green-50);border-color:#cfe5c5}
@media (max-width:900px){.b2b-hdr{padding:7px;border-radius:50%}.b2b-hdr__txt{display:none}}
.b2b-topbar{background:#fff4e0;color:#7a4a00;text-align:center;font-size:13.5px;padding:7px 12px;border-bottom:1px solid #f3dcb0}

/* ---------- Banner mời đăng ký ---------- */
.b2b-invite{display:flex;gap:16px;align-items:center;justify-content:space-between;background:linear-gradient(120deg,var(--green-50),#fff);border:1px solid #d6ead0;border-left:4px solid var(--green);border-radius:var(--radius);padding:14px 18px;margin:0 0 18px}
.b2b-invite__txt{font-size:14.5px;color:var(--ink)}
.b2b-invite__act{display:flex;gap:8px;flex:none}
@media (max-width:700px){.b2b-invite{flex-direction:column;align-items:flex-start}}

/* ---------- Trang SP: khối giá đối tác ---------- */
.b2b-pbox{border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 14px;margin:14px 0;background:var(--bg-soft);font-size:14px}
.b2b-pbox__row{display:flex;justify-content:space-between;gap:10px;padding:4px 0;align-items:baseline}
.b2b-pbox__row.is-muted{color:var(--muted);font-size:13px}
.b2b-pbox__row.is-ship{border-top:1px dashed var(--line);margin-top:4px;padding-top:8px}

/* ---------- Đăng nhập / đăng ký ---------- */
.b2b-auth{display:grid;grid-template-columns:1fr 440px;gap:28px;max-width:1040px;margin:24px auto 48px;align-items:start}
.b2b-auth--wide{grid-template-columns:1fr 560px}
.b2b-auth__side{padding:28px;border-radius:var(--radius);background:linear-gradient(150deg,var(--green-dark),var(--green));color:#eaf5e4}
.b2b-auth__side h2{color:#fff;font-family:var(--font-head);font-size:28px;line-height:1.25;margin:8px 0 14px}
.b2b-auth__side .b2b-eyebrow{color:#cfe8c4}
.b2b-auth__side .b2b-muted{color:#cfe2c7;margin-top:16px}
.b2b-ticks,.b2b-steps{margin:0;padding-left:20px;display:grid;gap:9px;font-size:15px}
.b2b-ticks{list-style:none;padding:0}.b2b-ticks li{padding-left:26px;position:relative}
.b2b-ticks li::before{content:"✓";position:absolute;left:0;top:0;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:11px;font-weight:700}
.b2b-ticks b,.b2b-steps b{color:#fff}
.b2b-auth__card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}
.b2b-auth__card h3{margin:0 0 14px;font-family:var(--font-head);font-size:22px;color:var(--ink)}
.b2b-auth__foot{text-align:center;margin:14px 0 0;font-size:14px;color:var(--muted)}
@media (max-width:900px){.b2b-auth,.b2b-auth--wide{grid-template-columns:1fr;margin-top:12px}.b2b-auth__side{padding:20px}.b2b-auth__side h2{font-size:22px}}

/* ---------- Trường form ---------- */
.b2b-field{display:flex;flex-direction:column;gap:5px;margin:0 0 12px;font-size:13.5px;color:var(--text);font-weight:500}
.b2b-field input,.b2b-field select{width:100%;font:15px/1.4 var(--font-body);padding:10px 12px;border:1px solid #d5ddcf;border-radius:var(--radius-sm);background:#fff;color:var(--ink);box-sizing:border-box}
.b2b-field input:focus,.b2b-field select:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(59,133,44,.15)}
.b2b-field.is-bad input{border-color:#d33;background:#fff8f8}
.b2b-check{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--text);margin:4px 0 12px;cursor:pointer}
.b2b-check input{width:17px;height:17px;accent-color:var(--green)}
.b2b-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.b2b-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 14px}
.b2b-span3{grid-column:1/-1}
.b2b-more{margin:0 0 12px;border:1px dashed var(--line);border-radius:var(--radius-sm);padding:8px 12px}
.b2b-more summary{cursor:pointer;font-size:14px;color:var(--green-dark);font-weight:600}
.b2b-more[open] summary{margin-bottom:10px}
@media (max-width:640px){.b2b-grid2,.b2b-grid3{grid-template-columns:1fr}}

/* ---------- Thanh tiến độ tối thiểu ---------- */
.b2b-moq{background:#fff;border:1px solid #f0d9a8;border-left:4px solid var(--accent);border-radius:var(--radius-sm);padding:10px 14px;margin:0 0 14px}
.b2b-moq.is-ok{border-color:#cfe5c5;border-left-color:var(--green)}
.b2b-moq__top{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--ink);flex-wrap:wrap}
.b2b-moq__lab{color:var(--muted);font-size:13px;white-space:nowrap}
.b2b-moq__bar{height:8px;border-radius:999px;background:#f1efe8;margin-top:8px;overflow:hidden}
.b2b-moq__bar i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#f8c15c);border-radius:999px;transition:width .3s}
.b2b-moq.is-ok .b2b-moq__bar i{background:var(--green)}
.b2b-moq-row td{padding:0 0 8px!important;border:0!important}

/* ---------- Thanh toán ---------- */
.b2b-co{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin:0 0 18px}
.b2b-co__who{display:flex;flex-direction:column;gap:2px;padding:0 0 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.b2b-co__who small{color:var(--muted)}
.b2b-co__h{font:700 15px/1.4 var(--font-body);color:var(--ink);margin:16px 0 8px}
.b2b-branches{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.b2b-branch{display:flex;gap:10px;align-items:flex-start;border:1.5px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;cursor:pointer;transition:border-color .15s,background .15s}
.b2b-branch input{margin-top:3px;accent-color:var(--green)}
.b2b-branch span{display:flex;flex-direction:column;gap:2px;font-size:14px}
.b2b-branch small{color:var(--muted);font-size:12.5px}
.b2b-branch:has(input:checked){border-color:var(--green);background:var(--green-50)}
.b2b-chips{display:flex;gap:8px;flex-wrap:wrap}
.b2b-chipbtn input{position:absolute;opacity:0;pointer-events:none}
.b2b-chipbtn span{display:flex;flex-direction:column;align-items:center;min-width:64px;padding:7px 12px;border:1.5px solid var(--line);border-radius:var(--radius-sm);font:600 14px/1.25 var(--font-body);color:var(--ink);cursor:pointer;background:#fff;transition:border-color .15s,background .15s}
.b2b-chipbtn span small{font-weight:500;font-size:11.5px;color:var(--muted)}
.b2b-chipbtn input:checked+span{border-color:var(--green);background:var(--green);color:#fff}
.b2b-chipbtn input:checked+span small{color:#dff0d8}
.b2b-chipbtn input:focus-visible+span{box-shadow:0 0 0 3px rgba(59,133,44,.25)}

/* ---------- Thông tin giao hàng (đơn) + QR ---------- */
.b2b-od{border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 16px;margin:0 0 18px;background:var(--bg-soft)}
.b2b-od h3{margin:0 0 6px;font-size:15px}
.b2b-od dl{display:grid;grid-template-columns:120px 1fr;gap:4px 12px;margin:0;font-size:14px}
.b2b-od dt{color:var(--muted)}.b2b-od dd{margin:0;color:var(--ink);font-weight:500}
.b2b-qr{display:flex;gap:18px;align-items:center;border:1px solid #cfe5c5;background:var(--green-50);border-radius:var(--radius);padding:16px;margin:16px 0}
.b2b-qr img{border-radius:10px;background:#fff;flex:none;width:220px!important;height:auto!important}
.b2b-qr h3{margin:0 0 6px}
.b2b-qr--mini{padding:10px 14px;gap:12px;margin:0;font-size:12.5px;max-width:360px}
.b2b-qr--mini img{width:120px!important}
.b2b-qr--mini small{line-height:1.5}
@media (max-width:600px){.b2b-qr{flex-direction:column;text-align:center}}

/* ---------- Tài khoản: tổng quan ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
.b2b-hello{display:flex;justify-content:space-between;gap:16px;align-items:center;background:linear-gradient(130deg,var(--green-dark),var(--green));color:#e7f3e1;border-radius:var(--radius);padding:20px 22px;margin:0 0 16px}
.b2b-hello h2{color:#fff;margin:4px 0 8px;font-family:var(--font-head);font-size:26px}
.b2b-hello .b2b-eyebrow{color:#cfe8c4}
.b2b-tags{display:flex;gap:6px;flex-wrap:wrap}
.b2b-hello .b2b-chip{background:#fff;border-color:#fff}
.b2b-hello .b2b-tag{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}
.b2b-hello__next{text-align:right;background:rgba(255,255,255,.12);border-radius:var(--radius-sm);padding:10px 14px;flex:none}
.b2b-hello__next small{display:block;font-size:12px;color:#cfe8c4}.b2b-hello__next b{color:#fff;font-size:16px}
.b2b-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 16px}
.b2b-kpi{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px;text-decoration:none;color:var(--ink)}
.b2b-kpi small{color:var(--muted);font-size:12.5px}.b2b-kpi b{font-size:20px;font-family:var(--font-head)}
.b2b-kpi.is-warn{border-color:#f0d9a8;background:#fffaf0}.b2b-kpi.is-warn b{color:#995a00}
.b2b-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 22px}
.b2b-quick__btn{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:var(--radius-sm);border:1.5px solid var(--line);background:#fff;text-decoration:none;color:var(--ink);transition:border-color .15s,transform .15s}
.b2b-quick__btn:hover{border-color:var(--green);transform:translateY(-1px)}
.b2b-quick__btn small{color:var(--muted);font-size:12.5px}
.b2b-quick__btn.is-primary{background:var(--green);border-color:var(--green);color:#fff}
.b2b-quick__btn.is-primary small{color:#dcefd5}
.b2b-sec{margin:0 0 22px}
.b2b-sec h3{display:flex;align-items:baseline;gap:10px;font-size:17px;margin:0 0 10px}
.b2b-sec h3 small{font-weight:400;color:var(--muted);font-size:13px}
.b2b-sec h3 a{margin-left:auto;font-size:13.5px;font-weight:600}
.b2b-freq{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.b2b-freq__item{display:grid;grid-template-columns:56px 1fr auto;grid-template-areas:"img info info" "img step add";gap:6px 12px;align-items:center;border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;background:#fff}
.b2b-freq__item img{grid-area:img;width:56px;height:56px;object-fit:cover;border-radius:8px;align-self:start}
.b2b-freq__info{grid-area:info;display:flex;flex-direction:column;min-width:0}
.b2b-freq__item .b2b-stepper{grid-area:step;justify-self:start}
.b2b-freq__item .b2b-add{grid-area:add}
.b2b-freq__info b{font-size:14px;line-height:1.35}
.b2b-freq__info small{color:var(--muted);font-size:12px}
.b2b-stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.b2b-stepper button{width:28px;height:30px;border:0;background:var(--bg-soft);cursor:pointer;font-size:16px;color:var(--ink)}
.b2b-stepper input{width:46px;border:0;text-align:center;font:600 14px var(--font-body);-moz-appearance:textfield}
.b2b-stepper input::-webkit-inner-spin-button{-webkit-appearance:none}
.b2b-add{border:0;background:var(--green);color:#fff;border-radius:999px;padding:7px 14px;font:600 13px var(--font-body);cursor:pointer}
.b2b-add.is-done{background:var(--green-light);color:var(--green-dark)}
.b2b-orders{display:grid;gap:8px}
.b2b-order{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:center;border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 14px;background:#fff}
.b2b-order small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.b2b-order__sum{font-size:14px;color:var(--text)}
.b2b-order__act{display:flex;gap:10px;align-items:center}
.b2b-pending{display:flex;gap:16px;align-items:flex-start;background:#fffaf0;border:1px solid #f0d9a8;border-radius:var(--radius);padding:20px}
.b2b-pending__icon{font-size:34px;line-height:1}
.b2b-pending h2{margin:0 0 6px;font-size:22px}
@media (max-width:760px){.b2b-hello{flex-direction:column;align-items:flex-start}.b2b-hello__next{text-align:left}.b2b-quick{grid-template-columns:1fr}.b2b-kpis{gap:8px}.b2b-kpi{padding:10px}.b2b-kpi small{font-size:11.5px}.b2b-kpi b{font-size:15px}.b2b-order{grid-template-columns:1fr}}

/* ---------- Bảng (công nợ, đặt nhanh) ---------- */
.b2b-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden}
.b2b-table th{background:var(--green-dark);color:#fff;text-align:left;font-weight:600;padding:9px 12px;font-size:13px}
.b2b-table td{padding:9px 12px;border-top:1px solid var(--line);vertical-align:middle}
.b2b-table .r{text-align:right;white-space:nowrap}
.b2b-debt-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 14px;flex-wrap:wrap}
.b2b-debt-head>div:first-child{display:flex;flex-direction:column;gap:4px}
.b2b-debt-head>div:first-child small{color:var(--muted)}
.b2b-debt-head>div:first-child b{font-size:28px;font-family:var(--font-head);color:#995a00}

/* ---------- Đặt nhanh ---------- */
.b2b-qo__input{width:100%;font:15px/1.6 var(--font-body);padding:12px;border:1px solid #d5ddcf;border-radius:var(--radius-sm);margin:8px 0 0;box-sizing:border-box}
.b2b-qo__result{margin-top:18px}
.b2b-qo__table td:first-child{width:28px}
.b2b-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.b2b-qo__table .raw{color:var(--muted);font-size:13px;margin:0 0 4px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.b2b-qo__table td{vertical-align:top}
.b2b-qo__table select{width:100%;max-width:340px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;font:14px var(--font-body)}
.b2b-qo__table input[type=number]{width:72px;padding:6px;border:1px solid var(--line);border-radius:8px;text-align:right;font:14px var(--font-body)}
.b2b-qo__table tr.is-off td{opacity:.45}
.b2b-qo__foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}

/* ---------- Cơ sở & hoá đơn ---------- */
.b2b-bredit{border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px 4px;margin:0 0 10px;background:#fff}
.b2b-link-bad{background:none;border:0;color:#b42318;font-size:13px;cursor:pointer;padding:0 0 8px}

/* ---------- Mobile: menu tài khoản thành hàng ngang cuộn được (không chiếm cả màn đầu) ---------- */
@media (max-width:768px){
	.woocommerce-account .woocommerce-MyAccount-navigation{margin:0 -16px 14px;padding:0 16px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
	.woocommerce-account .woocommerce-MyAccount-navigation::-webkit-scrollbar{display:none}
	.woocommerce-account .content-layout>.site-main,.woocommerce-account .woocommerce,.woocommerce-account .woocommerce>*{min-width:0;max-width:100%}
	.woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex!important;gap:8px;flex-wrap:nowrap}
	.woocommerce-account .woocommerce-MyAccount-navigation li{flex:none}
	.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0!important;border-radius:999px!important}
	.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;white-space:nowrap;padding:8px 14px!important;font-size:14px;border-radius:999px!important}
}

/* Mobile giỏ / thanh toán: giữ đủ nút liên hệ như cũ, chỉ đẩy lên trên thanh tổng tiền để không che. */
@media (max-width:768px){
	body.woocommerce-cart .floating-contact,
	body.woocommerce-checkout .floating-contact{bottom:84px!important}
}

/* ---------- Full width: trang Tài khoản + Đăng nhập/Đăng ký đối tác (page.php mặc định chỉ 880px) ---------- */
body.woocommerce-account .content-layout.no-sidebar,
body.b2b-page .content-layout.no-sidebar{max-width:var(--container)}
body.woocommerce-account .entry-content,
body.b2b-page .entry-content{max-width:none}
@media (min-width:900px){
	.woocommerce-account .woocommerce{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start}
	.woocommerce-account .woocommerce::before,.woocommerce-account .woocommerce::after{display:none}   /* clearfix của Woo chiếm ô lưới */
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content{float:none;width:auto}
	.woocommerce-account .woocommerce-MyAccount-navigation{position:sticky;top:110px}
	.woocommerce-account .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
}
@media (min-width:1280px){
	.b2b-kpis{grid-template-columns:repeat(4,1fr)}
	.b2b-freq{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
}

/* =================== v0.2 =================== */
.b2b-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#d64545;color:#fff;font:700 11px/1 var(--font-body);margin-left:6px;vertical-align:middle}
.b2b-alert--warn{background:#fff7e6;color:#7a4a00;border:1px solid #f3dcb0}
.b2b-alert--link{display:block;text-decoration:none}
.b2b-alert--link:hover{filter:brightness(.98)}
.b2b-empty{padding:28px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:var(--radius)}
.b2b-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin:0 0 16px}
.b2b-card h3{margin:0 0 12px;font-size:16px}
.b2b-inline{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}
.b2b-inline select,.b2b-inline input[type=text]{padding:7px 10px;border:1px solid var(--line);border-radius:8px;font:14px var(--font-body)}
.b2b-linkbtn{background:none;border:0;color:var(--green-dark);text-decoration:underline;cursor:pointer;font:600 13px var(--font-body);padding:0 4px}
.b2b-btn-bad{border-color:#e7b4b4!important;color:#b42318!important}
.b2b-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font:600 14px var(--font-body);z-index:99999;transition:.25s;box-shadow:var(--shadow-lg)}
.b2b-toast.on{opacity:1;transform:translate(-50%,0)}

/* Header: chuông, menu tài khoản, đồng hồ chốt đơn */
.b2b-bell{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--ink);border:1px solid var(--line);background:#fff}
.b2b-bell span{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:999px;background:#d64545;color:#fff;font:700 11px/18px var(--font-body);text-align:center;padding:0 4px}
.b2b-hdrmenu{position:relative}
.b2b-hdrmenu summary{list-style:none;cursor:pointer}
.b2b-hdrmenu summary::-webkit-details-marker{display:none}
.b2b-hdrmenu__pop{position:absolute;right:0;top:calc(100% + 8px);min-width:260px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);padding:6px;z-index:1000}
.b2b-hdrmenu__pop a{display:block;padding:8px 10px;border-radius:8px;color:var(--ink);text-decoration:none;font-size:14px}
.b2b-hdrmenu__pop a small{display:block;color:var(--muted);font-size:12px}
.b2b-hdrmenu__pop a:hover,.b2b-hdrmenu__pop a.on{background:var(--green-50)}
.b2b-hdrmenu__pop a{padding:10px 12px;font-size:14.5px}
.b2b-hdrmenu__pop a.b2b-hdrmenu__out{color:#d63a3a;font-weight:600}
.b2b-hdrmenu__pop a.b2b-hdrmenu__out:hover{background:#fdecec}
.b2b-hdrmenu__pop hr{border:0;border-top:1px solid var(--line);margin:6px 0}
.b2b-hdrmenu__h{font:600 11.5px var(--font-body);color:var(--muted);text-transform:uppercase;padding:6px 10px 2px}
.b2b-cutoff{display:inline-flex;flex-direction:column;line-height:1.2;padding:5px 10px;border-radius:10px;background:var(--green-50);border:1px solid #d6ead0;font-size:12.5px;color:var(--green-dark);white-space:nowrap}
.b2b-cutoff b{font-size:13px}
.b2b-cutoff small{color:var(--muted);font-size:11px}
.b2b-cutoff.is-urgent{background:#fff4e0;border-color:#f3dcb0;color:#995a00}
@media (max-width:1180px){.b2b-cutoff{display:none}}
@media (max-width:900px){.b2b-bell{width:36px;height:36px}}

/* Gợi ý tìm kiếm (form tìm của theme đang overflow:hidden → mở ra để hiện ô gợi ý) */
.site-header form.header-search{overflow:visible}
.b2b-suggest{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);z-index:1000;max-height:70vh;overflow:auto;padding:6px}
.b2b-suggest__h{font:600 11.5px var(--font-body);color:var(--muted);text-transform:uppercase;padding:6px 8px}
.b2b-suggest__row{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:8px}
.b2b-suggest__row:hover{background:var(--green-50)}
.b2b-suggest__row a{flex:1;display:flex;gap:10px;align-items:center;color:var(--ink);text-decoration:none;min-width:0}
.b2b-suggest__row img{width:40px;height:40px;object-fit:cover;border-radius:6px;flex:none}
.b2b-suggest__row span{display:flex;flex-direction:column;min-width:0}
.b2b-suggest__row b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b2b-suggest__row small{color:var(--muted);font-size:12px}
.b2b-suggest__row em{color:var(--green-dark);font-style:normal;font-weight:600}
.b2b-suggest__row .b2b-add{width:34px;height:34px;padding:0;font-size:18px;flex:none}
.b2b-suggest__all,.b2b-suggest__empty{display:block;padding:9px 8px;font-size:13.5px;color:var(--green-dark)}
.b2b-suggest__empty{color:var(--muted)}

/* Trang SP: thông tin + thanh mua dính đáy */
.b2b-facts{margin:10px 0;font-size:14px}
.b2b-facts dl{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:4px 14px;margin:6px 0;background:var(--bg-soft);border-radius:var(--radius-sm);padding:10px 14px}
.b2b-facts dt{color:var(--muted)}.b2b-facts dd{margin:0;font-weight:600;color:var(--ink)}
.b2b-sold{display:inline-block;font-size:12.5px;color:var(--muted)}
@media (max-width:600px){.b2b-facts dl{grid-template-columns:auto 1fr}}
.b2b-buybar{display:none}
@media (max-width:768px){
	.b2b-buybar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:900;gap:10px;align-items:center;background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(0,0,0,.06);padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
	.b2b-buybar__p{display:flex;flex-direction:column;line-height:1.2;min-width:0}
	.b2b-buybar__p b{font-size:16px;color:var(--green-dark)}.b2b-buybar__p small{font-size:11px;color:var(--muted)}
	.b2b-buybar .b2b-add{flex:1;padding:11px 10px}
	body.single-product .floating-contact{bottom:84px!important}
	body.single-product{padding-bottom:70px}
}

/* Lọc xuất xứ */
.b2b-filter{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 14px;font-size:13.5px;width:100%;clear:both}
.b2b-filter>span{color:var(--muted);margin-right:4px}
.b2b-filter a{padding:5px 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;background:#fff}
.b2b-filter a.on{background:var(--green);border-color:var(--green);color:#fff}
.b2b-filter__mine{margin-left:auto;border-color:#f3dcb0!important}
.b2b-filter__mine.on{background:var(--accent)!important;border-color:var(--accent)!important}

/* Bộ sưu tập + gợi ý */
.b2b-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:0 0 20px}
.b2b-cols__tab{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1.5px solid var(--line);border-radius:var(--radius-sm);color:var(--ink);text-decoration:none;background:#fff}
.b2b-cols__tab small{color:var(--muted);font-size:12px;line-height:1.4}
.b2b-cols__tab.on{border-color:var(--green);background:var(--green-50)}
.b2b-recs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.b2b-rec{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px;background:#fff}
.b2b-rec img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.b2b-rec b{font-size:13.5px;line-height:1.35}.b2b-rec small{color:var(--muted);font-size:12px}
.b2b-rec .b2b-add{margin-top:auto}
.b2b-cartsug{margin:8px auto 40px}
.b2b-cartsug h3{font-size:17px}.b2b-cartsug h3 small{font-weight:400;color:var(--muted);font-size:13px}

/* Đơn mẫu */
.b2b-tpls{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.b2b-tpl{border:1.5px dashed #cfe5c5;border-radius:var(--radius-sm);padding:12px 14px;background:var(--green-50)}
.b2b-tpl b{display:block}.b2b-tpl small{color:var(--muted)}
.b2b-tpl .b2b-actions{margin-top:8px}
.b2b-savetpl input{min-width:220px}

/* Giỏ: VAT, voucher */
.cart-row .price small{color:var(--muted);font-weight:400}
.cart-row .row-vat{display:block;font-size:11.5px;color:var(--muted);font-weight:400}
.b2b-coupon{display:flex;gap:8px;margin:12px 0 4px}
.b2b-coupon input{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font:14px var(--font-body);text-transform:uppercase}
.b2b-coupon-line a{color:#b42318;text-decoration:none;margin-left:4px}
.tt-empty-link{display:block;text-align:center;margin-top:10px;font-size:13px;color:#b42318}
.b2b-vat-row th,.b2b-vat-row td{font-size:14px}

/* Thanh toán: khung giờ, người nhận */
.b2b-slot{width:100%;max-width:360px;padding:10px 12px;border:1.5px solid var(--line);border-radius:var(--radius-sm);font:600 15px var(--font-body);background:#fff;color:var(--ink)}
.b2b-recv{margin:10px 0 0;font-size:14px;color:var(--text)}
body.b2b-hide-billing .woocommerce-billing-fields{display:none}

/* Đơn: dòng thời gian + nút */
.b2b-ov{margin:0 0 18px}
.b2b-tl{display:flex;list-style:none;margin:0 0 12px;padding:0;counter-reset:s}
.b2b-tl li{flex:1;position:relative;text-align:center;font-size:12.5px;color:var(--muted);padding-top:22px}
.b2b-tl li i{position:absolute;top:4px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#dfe5da;z-index:1}
.b2b-tl li::before{content:"";position:absolute;top:10px;left:-50%;right:50%;height:3px;background:#dfe5da}
.b2b-tl li:first-child::before{display:none}
.b2b-tl li b{display:block;color:var(--text);font-weight:600}
.b2b-tl li.is-done i,.b2b-tl li.is-done::before,.b2b-tl li.is-cur::before{background:var(--green)}
.b2b-tl li.is-cur i{background:var(--accent);box-shadow:0 0 0 4px rgba(245,160,30,.2)}
.b2b-tl li.is-cur b{color:var(--ink)}
.b2b-ov__act{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:600px){.b2b-tl li{font-size:11px}.b2b-tl li small{display:none}}

/* Duyệt đơn */
.b2b-appr{border:1px solid #f3dcb0;background:#fffaf0;border-radius:var(--radius);padding:14px 16px;margin:0 0 12px}
.b2b-appr__head{display:flex;justify-content:space-between;gap:12px}
.b2b-appr__head small{display:block;color:var(--muted);font-size:12.5px}
.b2b-appr__sum{font-size:18px;color:var(--ink)}
.b2b-appr__items{list-style:none;margin:10px 0 0;padding:0;font-size:14px}
.b2b-appr__items li{display:grid;grid-template-columns:1fr auto auto;gap:14px;padding:4px 0;border-top:1px dashed #f0e2c4}

/* Phiếu giao */
.b2b-dn{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.b2b-dn__head{display:flex;justify-content:space-between;gap:16px;border-bottom:2px solid var(--ink);padding-bottom:10px;margin-bottom:12px}
.b2b-dn__head small{display:block;color:var(--muted);font-size:12px}
.b2b-dn__no{text-align:right}
.b2b-dn__info{display:grid;grid-template-columns:110px 1fr;gap:4px 12px;margin:0 0 14px;font-size:14px}
.b2b-dn__info dt{color:var(--muted)}.b2b-dn__info dd{margin:0;font-weight:600}
.b2b-dn__sign{display:grid;grid-template-columns:1fr 1fr;text-align:center;margin:22px 0;font-size:14px}
.b2b-dn__pod{border-top:1px dashed var(--line);padding-top:12px;font-size:14px}
.b2b-dn__pod img{display:block;max-width:320px;margin-top:8px;border-radius:8px}
@media print{body *{visibility:hidden}.b2b-dn,.b2b-dn *{visibility:visible}.b2b-dn{position:absolute;left:0;top:0;width:100%;border:0}.b2b-noprint{display:none!important}}

/* Báo lỗi */
.b2b-issue h3{font-size:15px;margin:16px 0 8px}
.b2b-issue__items{display:grid;gap:2px}

/* Thông báo */
.b2b-notices{list-style:none;margin:0;padding:0}
.b2b-notices li{display:flex;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}
.b2b-notices li.is-new{background:var(--green-50)}
.b2b-notices__ic{font-size:20px;line-height:1}
.b2b-notices small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.b2b-notices a{color:var(--ink)}

/* Người dùng */
.b2b-toggle{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.b2b-toggle input{position:absolute;opacity:0}
.b2b-toggle i{flex:none;width:42px;height:24px;border-radius:999px;background:#cfd6ca;position:relative;transition:.2s;margin-top:2px}
.b2b-toggle i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.2s}
.b2b-toggle input:checked+i{background:var(--green)}
.b2b-toggle input:checked+i::after{left:21px}
.b2b-toggle span{display:flex;flex-direction:column}.b2b-toggle small{color:var(--muted)}
.b2b-roles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin:14px 0}
.b2b-roles div{background:var(--bg-soft);border-radius:8px;padding:8px 12px;font-size:13px}
.b2b-roles small{display:block;color:var(--muted)}

/* Báo cáo */
.b2b-rep-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.b2b-seg{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.b2b-seg a{padding:7px 14px;font-size:13.5px;color:var(--ink);text-decoration:none}
.b2b-seg a.on{background:var(--green);color:#fff}
.b2b-kpi em{font-style:normal;font-size:12px;color:var(--muted)}
.b2b-kpi em.up{color:#b42318}.b2b-kpi em.down{color:#1e7b34}
.b2b-bars{display:flex;gap:14px;align-items:flex-end;height:200px;padding:10px 4px 0;border-bottom:1px solid var(--line)}
.b2b-bars__col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.b2b-bars__col i{display:block;width:100%;max-width:56px;background:var(--green);border-radius:4px 4px 0 0;min-height:2px}
.b2b-bars__col small{color:var(--muted);font-size:12px;margin-bottom:-22px}
.b2b-bars__v{font-size:11.5px;color:var(--text);font-weight:600}
.b2b-rep-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-top:34px}
.b2b-share{display:inline-block;width:60px;height:6px;background:#eef2ea;border-radius:999px;overflow:hidden;vertical-align:middle;margin-right:6px}
.b2b-share i{display:block;height:100%;background:var(--green)}
.b2b-kpi .b2b-share{width:100%;margin:4px 0 0}
@media (max-width:900px){.b2b-rep-grid{grid-template-columns:1fr}}

/* Giới thiệu + đăng nhập: quên mật khẩu */
.b2b-ref{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;background:linear-gradient(120deg,var(--green-50),#fff);border:1px solid #d6ead0;border-radius:var(--radius);padding:18px;margin:0 0 20px}
.b2b-ref h3{margin:6px 0}
.b2b-ref__code{background:#fff;border:1px dashed var(--green);border-radius:var(--radius-sm);padding:12px}
.b2b-ref__code b{display:block;font-size:24px;letter-spacing:1px;color:var(--green-dark)}
.b2b-ref__code input{width:100%;margin:8px 0 0;padding:7px;border:1px solid var(--line);border-radius:8px;font-size:12.5px}
@media (max-width:760px){.b2b-ref{grid-template-columns:1fr}}
.b2b-forgot{margin-left:auto;font-size:13px}

/* Đặt nhanh: ô ảnh */
.b2b-qo__in{display:grid;grid-template-columns:1fr 200px;gap:12px;margin-top:8px}
.b2b-qo__in .b2b-qo__input{margin:0}
.b2b-qo__img{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;border:1.5px dashed var(--green);border-radius:var(--radius-sm);background:var(--green-50);cursor:pointer;padding:12px}
.b2b-qo__img span{font-size:28px}.b2b-qo__img small{color:var(--muted);font-size:12px}
@media (max-width:640px){.b2b-qo__in{grid-template-columns:1fr}}

/* Cài app */
.b2b-install{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#eef5ff;border:1px solid #cfe0f7;border-radius:var(--radius-sm);padding:10px 14px;font-size:14px;margin:0 0 16px}
/* Header đối tác: gọn lại khi có thêm đồng hồ chốt + chuông + menu tài khoản */
@media (max-width:1560px){body.logged-in .header-hotline__text{display:none}}
.header-actions{gap:10px}

.b2b-install[hidden],.b2b-suggest[hidden],.b2b-qo__result[hidden]{display:none!important}

/* =====================================================================
   v0.3 — VỎ ỨNG DỤNG ĐỐI TÁC: thoáng, nhẹ, ít khung viền (tham khảo Kamereo)
   Chỉ áp cho đối tác đã đăng nhập (body.nstt-partner) — khách lẻ giữ giao diện web cũ.
   ===================================================================== */
.b2b-ic{flex:none;display:inline-block;vertical-align:middle}

/* Header gọn: bỏ dải địa chỉ/email/giờ, bỏ 3 nút nổi (đã có trong menu tài khoản + thanh tab) */
body.nstt-partner .topbar{display:none}
/* (15/10: nút liên hệ nổi hiện lại cho cả đối tác như cũ; mobile nằm trên thanh tab) */
@media (max-width:900px){body.nstt-partner .floating-contact{bottom:calc(84px + env(safe-area-inset-bottom))!important}}   /* cao hơn thanh tab đáy */

/* Menu chính đối tác: nền trắng, chữ đậm, icon — thay dải xanh đặc (desktop) */
@media (min-width:901px){
	body.nstt-partner .main-navigation{background:#fff;border-top:1px solid var(--line)}
	body.nstt-partner .main-navigation a{color:var(--text);font-size:15.5px;padding:13px 16px;display:inline-flex;align-items:center;gap:8px}
	body.nstt-partner .main-navigation a:hover{background:var(--green-50);color:var(--green-dark)}
	body.nstt-partner .main-navigation .current-menu-item>a{background:transparent;color:var(--green-dark)}
	body.nstt-partner .main-navigation>.container>ul>li>a::after{background:var(--green);height:2.5px;bottom:0;left:12px;right:12px}
	body.nstt-partner .main-navigation .b2b-ic{color:var(--green)}
}
.b2b-pmenu>li>a .b2b-ic{margin-right:2px}

/* Nền khu vực ứng dụng (tài khoản, giỏ, thanh toán): xám rất nhạt, thẻ trắng nổi lên */
body.b2b-app{background:var(--bg-soft)}
body.b2b-app .site-header{box-shadow:0 1px 0 var(--line)}
body.nstt-partner.woocommerce-account .entry-header{display:none}
body.nstt-partner.woocommerce-account .content-layout{padding-top:24px}
body.b2b-app .entry-title{font-size:28px;margin:4px 0 16px}
.b2b-ptitle{font-size:24px;margin:2px 0 16px;color:var(--ink)}

/* Menu tài khoản: 1 thẻ trắng, mục có icon, không viền từng ô */
.b2b-nav{background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px}
.woocommerce-account .b2b-nav ul{display:block}
.woocommerce-account .b2b-nav li{border:0!important;margin:0!important;background:none!important;border-radius:10px}
.woocommerce-account .b2b-nav li a{display:flex!important;align-items:center;gap:11px;padding:9px 12px!important;border-radius:10px;color:var(--text)!important;font-size:14.5px;font-weight:500;transition:background .15s,color .15s}
.woocommerce-account .b2b-nav li a .b2b-ic{color:#8a9783}
.woocommerce-account .b2b-nav li a:hover{background:var(--bg-soft)}
.woocommerce-account .b2b-nav li.is-active a{background:var(--green-50);color:var(--green-dark)!important;font-weight:600;box-shadow:inset 3px 0 0 var(--green)}
.woocommerce-account .b2b-nav li.is-active a .b2b-ic{color:var(--green)}
.woocommerce-account .b2b-nav li a .b2b-badge{margin-left:auto}
.b2b-nav__h{font:600 11px/1 var(--font-body);letter-spacing:.4px;text-transform:uppercase;color:#98a392;padding:14px 12px 6px!important}
.b2b-me{display:flex;gap:11px;align-items:center;padding:8px 8px 14px;margin:0 0 6px;border-bottom:1px solid var(--line)}
.b2b-me__av{flex:none;width:40px;height:40px;border-radius:12px;background:linear-gradient(140deg,var(--green),var(--green-dark));color:#fff;display:grid;place-items:center;font:700 17px var(--font-head)}
.b2b-me__t{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.b2b-me__t b{font-size:14.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b2b-me__t small{font-size:12px;color:var(--muted)}

/* Tổng quan: khối chào trắng thay mảng xanh đậm */
body.nstt-partner .b2b-hello{background:#fff;color:var(--text);border:1px solid var(--line);border-radius:16px;padding:22px 24px;align-items:center}
body.nstt-partner .b2b-hello h2{color:var(--ink);font-size:26px;margin:4px 0 10px}
.b2b-hello__hi{font-size:14px;color:var(--muted)}.b2b-hello__hi b{color:var(--text)}
body.nstt-partner .b2b-hello .b2b-chip{background:var(--green-50);border-color:#d6ead0}
body.nstt-partner .b2b-hello .b2b-tag{background:var(--bg-soft);border-color:var(--line);color:var(--text)}
body.nstt-partner .b2b-hello__next{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;text-align:left;background:var(--green-50);border:1px solid #d6ead0;border-radius:14px;padding:12px 16px}
body.nstt-partner .b2b-hello__next .b2b-ic{grid-row:1/3;color:var(--green);width:30px;height:30px}
body.nstt-partner .b2b-hello__next small{color:var(--muted)}
body.nstt-partner .b2b-hello__next b{color:var(--green-dark);font-size:17px}

/* Lối tắt: icon tròn + chữ */
.b2b-quick__btn{display:grid!important;grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px 16px!important;border:1px solid var(--line)!important;border-radius:14px!important}
.b2b-quick__btn .b2b-ic{grid-row:1/3;width:44px;height:44px;padding:11px;border-radius:12px;background:var(--green-50);color:var(--green)}
.b2b-quick__btn.is-primary .b2b-ic{background:rgba(255,255,255,.18);color:#fff}
.b2b-quick__btn b{font-size:15px}
.b2b-quick__btn:hover{box-shadow:var(--shadow)}

/* Ô số liệu */
.b2b-kpi{position:relative;padding:14px 16px 14px!important;border-radius:14px!important}
.b2b-kpi>.b2b-ic{width:34px;height:34px;padding:8px;border-radius:10px;background:var(--bg-soft);color:var(--green);margin-bottom:6px}
.b2b-kpi.is-warn>.b2b-ic{background:#fff1d6;color:#b26b00}
.b2b-kpi b{font-size:21px!important;white-space:nowrap;color:var(--ink)}
.b2b-kpi.is-warn b{color:#995a00}

/* Mỗi mục = 1 thẻ trắng, phần tử bên trong dùng nền nhạt (bớt viền chồng viền) */
body.nstt-partner .b2b-sec{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px 20px}
body.nstt-partner .b2b-sec h3{font-size:17px;margin:0 0 14px}
body.nstt-partner .b2b-freq__item,body.nstt-partner .b2b-rec,body.nstt-partner .b2b-order{border-color:transparent;background:var(--bg-soft);border-radius:12px}
body.nstt-partner .b2b-freq__item img,body.nstt-partner .b2b-rec img{background:#fff;object-fit:contain;mix-blend-mode:multiply}
body.nstt-partner .b2b-stepper{background:#fff}
body.nstt-partner .b2b-stepper button{background:#fff}
body.nstt-partner .b2b-tpl{border-style:solid;border-color:#d6ead0}
.b2b-tpl .b2b-actions{align-items:center}
body.nstt-partner .b2b-recs{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
body.nstt-partner .b2b-rec{padding:12px}

/* Cửa hàng (đối tác): thanh chuyển Lưới/Danh sách; bỏ ghi chú VAT lặp ở từng thẻ, bỏ nút giỏ trùng */
.b2b-viewbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;width:100%;clear:both}
.b2b-viewbar small{color:var(--muted);font-size:13px}
.b2b-view button{display:inline-flex;align-items:center;gap:6px;border:0;background:#fff;padding:7px 14px;font:600 13px var(--font-body);color:var(--text);cursor:pointer}
.b2b-view button.on{background:var(--green);color:#fff}
body.nstt-partner ul.products li.product .vat-note,
body.nstt-partner ul.products li.product .tt-go-cart{display:none!important}

/* Dạng danh sách: 1 hàng / món — lướt + bấm số lượng nhanh như phiếu đặt hàng */
body.b2b-listview ul.products{display:flex!important;flex-direction:column;gap:8px!important}
body.b2b-listview ul.products li.product{display:grid!important;grid-template-columns:72px minmax(0,1fr) auto 40px;grid-template-rows:auto auto;align-items:center;column-gap:16px;row-gap:2px;width:auto!important;margin:0!important;padding:10px 16px!important;text-align:left;min-height:0!important}
body.b2b-listview ul.products li.product>.tt-thumb{grid-column:1;grid-row:1/3;width:72px;height:72px;margin:0!important;padding:0!important;border-radius:10px;overflow:hidden;background:#fff}
body.b2b-listview ul.products li.product>.tt-thumb img{width:72px!important;height:72px!important;object-fit:contain;margin:0!important}
body.b2b-listview ul.products li.product>.tt-thumb .cb-mini{display:none}
body.b2b-listview ul.products li.product>a:not(.tt-thumb){grid-column:2;grid-row:1;align-self:end}
body.b2b-listview ul.products li.product .woocommerce-loop-product__title{margin:0!important;padding:0!important;font-size:15.5px!important;min-height:0!important}
body.b2b-listview ul.products li.product>.price{grid-column:2;grid-row:2;align-self:start;margin:0!important;padding:0!important;justify-content:flex-start!important}
body.b2b-listview ul.products li.product .woocommerce-loop-product__title{font-weight:600!important;color:var(--ink)}
body.b2b-listview ul.products li.product>.qty-cell{grid-column:3;grid-row:1/3;margin:0!important}
body.b2b-listview ul.products li.product>.fav-toggle{position:static!important;grid-column:4;grid-row:1/3}
@media (max-width:600px){
	body.b2b-listview ul.products li.product{grid-template-columns:56px minmax(0,1fr) 34px;padding:10px 12px!important;column-gap:12px}
	body.b2b-listview ul.products li.product>.tt-thumb,body.b2b-listview ul.products li.product>.tt-thumb img{width:56px!important;height:56px!important}
	body.b2b-listview ul.products li.product>.tt-thumb{grid-row:1/4}
	body.b2b-listview ul.products li.product>.qty-cell{grid-column:2/4;grid-row:3;justify-self:start;margin-top:6px!important}
	body.b2b-listview ul.products li.product>.fav-toggle{grid-column:3;grid-row:1/3;align-self:start}
	.b2b-viewbar small{display:none}
}

/* Trang SP (đối tác): bỏ khối "Cần báo giá sỉ số lượng lớn?" — đối tác đã có giá hợp đồng */
body.nstt-partner .tt-quote-cta{display:none}

/* Thanh toán: bỏ tiêu đề trống khi đã ẩn form địa chỉ; khung phương thức thanh toán đúng tông */
body.b2b-hide-billing .checkout-form>h2:has(+ #customer_details){display:none}
.woocommerce-checkout #payment div.payment_box{background:var(--green-50)!important;color:var(--text)!important;border-radius:10px}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--green-50)!important}
.woocommerce-checkout .woocommerce-privacy-policy-text{font-size:13px;color:var(--muted)}

/* Đăng nhập: dấu tick thẳng hàng chữ */
.b2b-auth .b2b-ticks{padding:0!important;margin:0!important}
.b2b-auth .b2b-ticks li{list-style:none;margin:0!important}
.b2b-auth .b2b-ticks li::before{top:3px}

/* Chân trang (đối tác): gọn — bỏ dải cam kết + ô nhận email */
body.nstt-partner .footer-trust,
body.nstt-partner .footer-newsletter-form{display:none}

/* Thanh tab dưới đáy (mobile) */
.b2b-tabbar{display:none}
@media (max-width:900px){
	.b2b-tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:950;background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
	.b2b-tabbar a{flex:1;position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;color:#7d8a76;text-decoration:none;font:600 10.5px/1.2 var(--font-body)}
	.b2b-tabbar a.on{color:var(--green-dark)}
	.b2b-tabbar a.on .b2b-ic{color:var(--green)}
	.b2b-tabbar__n{position:absolute;top:1px;left:calc(50% + 6px);min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#d64545;color:#fff;font:700 10.5px/17px var(--font-body);font-style:normal;text-align:center}
	body.nstt-partner{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
	body.nstt-partner .b2b-buybar{bottom:calc(58px + env(safe-area-inset-bottom))}
	body.nstt-partner.single-product{padding-bottom:calc(128px + env(safe-area-inset-bottom))}
	body.nstt-partner .b2b-toast{bottom:84px}
}

/* Mobile: khối chào gọn, số liệu 2×2, bỏ khung tên ở menu (đã có khối chào) */
@media (max-width:760px){
	body.nstt-partner .b2b-hello{padding:16px}
	body.nstt-partner .b2b-hello h2{font-size:21px}
	body.nstt-partner .b2b-hello__next{width:100%}
	.b2b-kpis{grid-template-columns:1fr 1fr!important}
	.b2b-kpi b{font-size:17px!important}
	.b2b-kpi>.b2b-ic{width:30px;height:30px;padding:7px}
	.b2b-quick{grid-template-columns:1fr!important;gap:8px}
	body.nstt-partner .b2b-sec{padding:14px;border-radius:14px}
	body.nstt-partner .b2b-freq{grid-template-columns:1fr}
	body.nstt-partner .b2b-freq__item{grid-template-columns:48px 1fr auto;padding:8px 10px}
	body.nstt-partner .b2b-freq__item img{width:48px;height:48px}
	body.nstt-partner .b2b-recs{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:4px}
	body.nstt-partner .b2b-rec{flex:0 0 44%;scroll-snap-align:start}
	.b2b-me{display:none}
	.woocommerce-account .b2b-nav{background:none;border:0;border-radius:0;margin:0 -20px 14px!important;padding:2px 20px!important}
	.woocommerce-account .b2b-nav ul{display:flex!important}
	.b2b-nav__h{display:none}
	.woocommerce-account .b2b-nav li a{background:#fff;border:1px solid var(--line);border-radius:999px!important;padding:7px 14px!important;box-shadow:none!important;gap:7px}
	.woocommerce-account .b2b-nav li.is-active a{background:var(--green)!important;border-color:var(--green);color:#fff!important}
	.woocommerce-account .b2b-nav li.is-active a .b2b-ic{color:#fff}
	.woocommerce-account .b2b-nav li a .b2b-ic{width:16px;height:16px}
	.b2b-ptitle{font-size:20px}
}
body.b2b-app article.single-page{background:transparent}
body.nstt-partner .checkout-form .b2b-co{border:0;padding:0;margin-bottom:8px;background:transparent}
/* Dạng danh sách trên mobile: ô số lượng + nút thêm nằm cùng 1 hàng */
body.b2b-listview.woocommerce ul.products li.product .qty-cell,
body.b2b-listview .woocommerce ul.products li.product .qty-cell{display:flex!important;flex-wrap:nowrap!important;gap:8px;align-items:center}
body.b2b-listview .woocommerce ul.products li.product .qty-cell .mini-qty,
body.b2b-listview.woocommerce ul.products li.product .qty-cell .mini-qty{flex:0 0 auto!important}
@media (max-width:600px){
	body.b2b-listview ul.products li.product .qty-cell .mini-qty button{width:36px;height:36px!important;flex:none!important;font-size:18px!important}
	body.b2b-listview ul.products li.product .qty-cell .mini-qty input{width:44px!important;flex:0 0 44px!important;height:36px!important}
	body.b2b-listview ul.products li.product .qty-cell .add-to-cart,
	body.b2b-listview ul.products li.product .qty-cell .tt-add-btn{width:38px!important;height:38px!important;flex:none!important}
	body.b2b-listview ul.products li.product>.tt-thumb{align-self:start}
}
.b2b-cobar{display:none}
@media (max-width:900px){
	body.nstt-partner .b2b-cobar{display:flex;position:fixed;left:0;right:0;bottom:calc(58px + env(safe-area-inset-bottom));z-index:940;gap:12px;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(34,60,20,.07);padding:10px 16px}
	.b2b-cobar span{display:flex;flex-direction:column;line-height:1.25}
	.b2b-cobar small{font-size:11.5px;color:var(--muted)}.b2b-cobar b{font-size:18px;color:var(--green-dark)}
	.b2b-cobar .btn{padding:11px 20px}
	.b2b-cobar .btn.is-disabled{opacity:.45;pointer-events:none}
	body.nstt-partner.woocommerce-cart{padding-bottom:calc(128px + env(safe-area-inset-bottom))}
}
/* Header mobile (đối tác): gọn hơn — khoảng cách hàng nhỏ lại, kính lúp chỉ hiện khi đã cuộn (ô tìm đang ẩn) */
@media (max-width:880px){
	body.nstt-partner .site-header__inner{row-gap:10px;column-gap:10px;padding-top:10px;padding-bottom:10px}
	body.nstt-partner .site-header:not(.is-stuck) .header-search-toggle{display:none}
	body.nstt-partner .site-header .brand-logo-link img,body.nstt-partner .site-header .custom-logo{max-height:44px;width:auto}
}
/* Bảng (công nợ, báo cáo, đặt nhanh): tiêu đề nhạt thay nền xanh đậm — đỡ nặng mắt */
.b2b-table{border-radius:14px}
.b2b-table th{background:var(--bg-soft);color:var(--muted);font-weight:600;font-size:12.5px;text-transform:uppercase;letter-spacing:.3px;border-bottom:1px solid var(--line)}
.b2b-table tr:hover td{background:#fbfcfa}
body.nstt-partner .main-navigation .current-menu-item>a{font-weight:700}
/* Thẻ bật thông báo đẩy */
.b2b-pushcard{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:0 0 16px}
.b2b-pushcard>span{flex:none;width:44px;height:44px;border-radius:12px;background:var(--green-50);color:var(--green);display:grid;place-items:center}
.b2b-pushcard>div{flex:1;display:flex;flex-direction:column;gap:2px}
.b2b-pushcard small{color:var(--muted);font-size:13px}
@media (max-width:600px){.b2b-pushcard{flex-wrap:wrap}.b2b-pushcard .btn{width:100%}}
.b2b-crmo{margin-bottom:18px}
.b2b-subh{font-size:17px;margin:6px 0 12px}
/* Khách chưa phải đối tác: chỉ xem */
.b2b-guestcta{display:flex;align-items:center;justify-content:center;width:100%;height:40px;border-radius:999px;border:1.5px dashed #c9d6c1;color:var(--green-dark);font:600 13.5px var(--font-body);text-decoration:none;background:var(--bg-soft)}
.b2b-guestcta__more{margin-left:.3em}   /* flex nuốt dấu cách đầu span → "Đăng nhậpđể đặt hàng" dính chữ */
.b2b-guestcta:hover{border-style:solid;border-color:var(--green);background:var(--green-50)}
.b2b-guestcta.is-wait{color:#995a00;border-color:#f3dcb0;background:#fffaf0}
.b2b-guestbox{display:flex;flex-direction:column;gap:6px;border:1px solid #d6ead0;background:var(--green-50);border-radius:14px;padding:14px 16px;margin:14px 0;font-size:14px}
.b2b-guestbox b{color:var(--ink)}
body.nstt-nocart .pl-cart-btn,body.nstt-nocart .pricelist-table .mini-qty,body.nstt-nocart .tt-cart,body.nstt-nocart .b2b-buybar{display:none!important}   /* 15/10: khách vãng lai CÓ giỏ; chỉ người dùng con không quyền đặt mới không có */
body.nstt-nocart .pricelist-table .act{display:none}   /* khách chưa đăng nhập: bỏ cột "Đặt" trống */
body.tt-ui2.b2b-listview.nstt-guest ul.products li.product .b2b-guestcta{width:auto;padding:0 14px;height:36px;white-space:nowrap}
/* Gợi ý tự động */
.b2b-recbox h3 .btn{margin-left:auto}
.b2b-why{display:inline-block;margin-top:3px;font-size:11.5px;line-height:1.35;color:var(--muted);background:var(--bg-soft);border-radius:6px;padding:1px 6px}
body.nstt-partner .b2b-freq__item .b2b-why{background:#fff}
.b2b-why--due{color:#995a00;background:#fff4e0!important}
.b2b-why--cooc{color:var(--green-dark)}

/* ===== Rà mobile trước khi lên web thật (15/10) ===== */
/* Báo cáo: bảng mặt hàng rộng 484px tràn khung → co cột, cuộn ngang trong thẻ, bỏ thanh tỉ trọng */
.b2b-rep-grid>*{min-width:0}
@media (max-width:600px){
	.b2b-rep-grid{grid-template-columns:minmax(0,1fr)}
	.b2b-rep-grid .b2b-sec{overflow-x:auto}
	.b2b-rep-grid .b2b-table td .b2b-share{display:none}
	.b2b-table th,.b2b-table td{padding:8px 8px}
}
/* Thanh toán: cột form / tóm tắt không được dãn quá màn hình */
.woocommerce-checkout .checkout-layout>*{min-width:0}
/* Đăng nhập / đăng ký trên điện thoại: form lên trước khối giới thiệu */
@media (max-width:900px){
	.b2b-auth__card{order:-1}
	.b2b-auth__side{padding:18px}
	.b2b-auth__side .b2b-ticks{font-size:14px}
	body.b2b-page .entry-header{display:none}
}
/* Tiêu đề mục trên điện thoại: tên + mô tả + nút/link xuống dòng gọn, không bóp nút */
@media (max-width:600px){
	body.nstt-partner .b2b-sec h3{flex-wrap:wrap;row-gap:4px}
	body.nstt-partner .b2b-sec h3 small{flex-basis:100%;order:3}
	body.nstt-partner .b2b-sec h3 a{order:2}
	.b2b-recbox h3 .btn{order:4;flex-basis:100%;margin:6px 0 0;justify-content:center}
}
.b2b-paytotal{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:4px 0 12px;padding:10px 12px;border-radius:10px;background:var(--green-50);font-size:13.5px;color:var(--muted)}
.b2b-paytotal b{font-size:19px;color:var(--green-dark)}
/* Danh sách đơn dạng thẻ */
.b2b-orders--list .b2b-order__act{flex-wrap:wrap;justify-content:flex-end}
.b2b-orders--list .b2b-order a b{color:var(--ink)}
@media (max-width:600px){
	.b2b-orders--list .b2b-order__act{justify-content:flex-start}
	.b2b-orders--list .b2b-order{gap:6px}
	/* Báo cáo: bảng mặt hàng gọn trong 1 màn hình */
	.b2b-rep-grid .b2b-table th:nth-child(4),.b2b-rep-grid .b2b-table td:nth-child(4){display:none}
	.b2b-rep-grid .b2b-table{font-size:13px}
	.b2b-rep-grid .b2b-table td:first-child{word-break:break-word}
}
body.nstt-partner .b2b-orders--list .b2b-order{background:#fff;border-color:var(--line)}
/* Bảng xếp thành thẻ trên điện thoại (Người dùng & phân quyền) */
@media (max-width:600px){
	.b2b-table--stack thead{display:none}
	.b2b-table--stack,.b2b-table--stack tbody,.b2b-table--stack tr,.b2b-table--stack td{display:block;width:100%}
	.b2b-table--stack tr{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 12px;border-top:1px solid var(--line)}
	.b2b-table--stack td{border:0!important;padding:0!important}
	.b2b-table--stack td:nth-child(2){grid-column:1;color:var(--muted);font-size:13px}
	.b2b-table--stack td:nth-child(3){grid-column:1/-1}
	.b2b-table--stack td:nth-child(4){grid-column:2;grid-row:1;text-align:right}
	.b2b-table--stack select{width:100%}
}
/* Đối tác trên điện thoại: bỏ chân trang dài (menu giới thiệu, chính sách) — đã có thanh tab + menu tài khoản */
@media (max-width:900px){
	body.nstt-partner .site-footer__main,body.nstt-partner .footer-trust{display:none}
	body.nstt-partner .site-footer__bottom .pay-icons,body.nstt-partner .site-footer__bottom .dmca-badge-wrap{display:none}
}
/* Điện thoại: bảng kết quả Đặt nhanh thành thẻ (☑ + món bạn ghi + món ghép / số lượng · thành tiền) */
@media (max-width:600px){
	.b2b-qo__table thead{display:none}
	.b2b-qo__table,.b2b-qo__table tbody{display:block;width:100%;border:0}
	.b2b-qo__table tr{display:grid;grid-template-columns:28px 1fr auto;gap:6px 10px;padding:12px;border:1px solid var(--line);border-radius:12px;margin:0 0 8px;background:#fff}
	.b2b-qo__table td{border:0!important;padding:0!important}
	.b2b-qo__table td:nth-child(1){grid-row:1/3;padding-top:2px!important}
	.b2b-qo__table td:nth-child(2){grid-column:2/4}
	.b2b-qo__table td:nth-child(2) select{max-width:none;width:100%;margin-top:4px}
	.b2b-qo__table td:nth-child(3){grid-column:2;text-align:left!important;white-space:nowrap}
	.b2b-qo__table td:nth-child(4){grid-column:3;align-self:center;font-weight:600}
	.b2b-qo__result .b2b-scroll{overflow:visible}
	.b2b-qo__foot .btn{width:100%}
}
/* Điện thoại: bảng có nhãn (công nợ, báo cáo theo cơ sở / người đặt) → mỗi dòng 1 thẻ "nhãn: giá trị" */
@media (max-width:600px){
	.b2b-table--cards thead{display:none}
	.b2b-table--cards,.b2b-table--cards tbody,.b2b-table--cards tr{display:block;width:100%}
	.b2b-table--cards tr{padding:8px 12px;border-top:1px solid var(--line)}
	.b2b-table--cards td{display:flex;justify-content:space-between;gap:12px;border:0!important;padding:3px 0!important;text-align:right}
	.b2b-table--cards td::before{content:attr(data-label);color:var(--muted);font-size:12.5px;text-align:left}
	.b2b-table--cards td:first-child{font-weight:700;color:var(--ink)}
	.b2b-table--cards td:first-child::before{content:none}
}
@media (max-width:600px){.b2b-guestcta__more{display:none}.b2b-guestcta{white-space:nowrap}}
body.nstt-nocart .tt-go-cart{display:none!important}   /* bảng giá: khách chưa đăng nhập không có nút giỏ */
body.nstt-partner .tt-go-cart{display:none!important}   /* đối tác: đã có icon giỏ / ngăn giỏ / thanh tab */
/* Ô tài khoản gọn trên header (14/10): chữ viết tắt + tên ngắn, rê chuột hiện thẻ tài khoản */
.b2b-hdrmenu .b2b-hdr--me{border:1px solid #d6ead0;background:var(--green-50);cursor:pointer;font:inherit;padding:4px 12px 4px 4px;gap:8px;max-width:190px}
.b2b-av{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:linear-gradient(140deg,var(--green),var(--green-dark));color:#fff;font:700 12.5px/1 var(--font-body);letter-spacing:.3px}
.b2b-av--lg{width:42px;height:42px;font-size:15px;border-radius:12px}
.b2b-hdr__name{font-weight:600;font-size:13.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
.b2b-hdrmenu__pop{display:none}
.b2b-hdrmenu.open .b2b-hdrmenu__pop{display:block}
@media (hover:hover){.b2b-hdrmenu:hover .b2b-hdrmenu__pop{display:block}}
.b2b-hdrmenu__pop::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}   /* cầu nối để rê chuột không mất menu */
.b2b-hdrmenu__card{display:flex;gap:10px;align-items:center;padding:8px 10px 10px}
.b2b-hdrmenu__card div{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.b2b-hdrmenu__card b{color:var(--ink);font-size:14.5px}
.b2b-hdrmenu__card small{color:var(--muted);font-size:12px}
.b2b-hdrmenu__note{margin:0 4px 4px;padding:7px 10px;border-radius:8px;background:var(--bg-soft);font-size:12.5px;color:var(--text)}
.b2b-hdrmenu__pop{min-width:280px}
@media (max-width:900px){.b2b-hdrmenu .b2b-hdr--me{padding:3px;border-radius:50%}.b2b-hdr__name{display:none}.b2b-hdrmenu__pop{position:fixed;left:12px;right:12px;min-width:0;max-height:75vh;overflow:auto}}

/* ---------- Nhãn "Bán theo …" + phí dịch vụ kiểu Kamereo (inc/b2b/fees.php) ---------- */
.b2b-unitrow{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;margin:2px 0 6px}
.b2b-unittag{display:inline-flex;align-items:center;gap:4px;background:var(--bg-soft,#f4f6f3);color:var(--muted);border:1px solid var(--line);font:500 12px/1.5 var(--font-body);padding:1px 8px;border-radius:6px;white-space:nowrap}
.b2b-unittag svg{flex:none;opacity:.8}
.b2b-unitpack{color:var(--muted);font-size:12px}
.b2b-unitrow--single{margin:4px 0 10px}
.b2b-unitrow--single .b2b-unittag{font-size:13px;padding:2px 10px}
.cart-row .row-vat{display:block;font-size:11.5px;color:var(--muted);font-weight:400;margin-top:2px;white-space:pre-line;line-height:1.35}
.b2b-sum .line.total > span:first-child{white-space:nowrap}
.b2b-sum .line small{font-weight:400;color:var(--muted)}
.b2b-sumnote{display:block;text-align:right;font-style:italic;color:var(--muted);font-size:12px;margin:-4px 0 6px}
.b2b-feeline > span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.b2b-feeline > b{white-space:nowrap}
.b2b-i{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;border:1px solid var(--muted);color:var(--muted);background:none;font:600 10px/1 var(--font-body);font-style:italic;cursor:pointer;padding:0}
.b2b-i:hover{border-color:var(--green);color:var(--green)}
.b2b-free{color:var(--green);font-weight:700}
.b2b-feebar{font-size:13px;margin:6px 0 10px;color:var(--ink)}
.b2b-feebar__bar{height:6px;border-radius:999px;background:#eef0ea;margin-top:6px;overflow:hidden}
.b2b-feebar__bar i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#f8c15c);border-radius:999px;transition:width .3s}
.b2b-feebar.is-ok .b2b-feebar__bar i{background:var(--green)}
.b2b-grandwrap{display:inline-flex;align-items:baseline;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.b2b-grandwrap s{color:var(--muted);font-size:13px;font-weight:400}
.b2b-dr__foot .b2b-feebar{margin:2px 0 8px;font-size:12.5px}
.b2b-feedlg{border:0;border-radius:var(--radius);padding:22px;max-width:420px;width:calc(100% - 32px);box-shadow:0 20px 60px rgba(0,0,0,.25)}
.b2b-feedlg::backdrop{background:rgba(20,30,20,.45)}
.b2b-feedlg h3{margin:0 0 14px;font-size:18px}
.b2b-feedlg dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:0 0 18px;font-size:14px}
.b2b-feedlg dt{color:var(--muted)}
.b2b-feedlg dd{margin:0;font-weight:600}
.b2b-feedlg dd small{font-weight:400;color:var(--muted)}
.b2b-trust{list-style:none;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.b2b-trust li{position:relative;padding-left:20px;margin:6px 0}
.b2b-trust li::before{content:"✓";position:absolute;left:2px;color:var(--green);font-weight:700}
.b2b-sum .line{gap:10px}

/* ===== Trang Đăng nhập / Đăng ký đối tác — 1 khung 2 nửa (15/10) ===== */
body.b2b-page .entry-header{display:none}
body.b2b-page{background:linear-gradient(180deg,#f2f6ef 0,#fff 520px)}
.b2b-auth--split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;max-width:1080px;margin:36px auto 64px;background:#fff;border:1px solid #e1e9dc;border-radius:24px;overflow:hidden;box-shadow:0 30px 70px rgba(27,94,32,.13);align-items:stretch}
.b2b-auth--split.b2b-auth--wide{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);max-width:1180px}
.b2b-auth--split .b2b-auth__side{position:relative;display:flex;flex-direction:column;gap:6px;border-radius:0;padding:40px 42px 34px;background:linear-gradient(160deg,rgba(23,82,28,.95) 0%,rgba(46,138,32,.9) 100%),url('../images/sample/banner-1600.webp') center/cover;color:#eaf5e4}
.b2b-auth--split .b2b-auth__side h2{font-size:32px;line-height:1.2;margin:4px 0 16px}
.b2b-auth__logo{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none;margin-bottom:26px}
.b2b-auth__logo img{width:46px;height:46px;object-fit:contain;background:#fff;border-radius:50%;padding:3px}
.b2b-auth__logo span{display:flex;flex-direction:column;font:700 16px/1.2 var(--font-head)}
.b2b-auth__logo small{font:500 12px var(--font-body);color:#cfe8c4}
.b2b-auth--split .b2b-ticks li{margin:0 0 12px!important;font-size:15px;line-height:1.5}
.b2b-auth--split .b2b-steps{padding-left:20px;margin:0 0 10px}
.b2b-auth--split .b2b-steps li{margin:0 0 10px;font-size:15px}
.b2b-auth__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:auto;padding-top:26px}
.b2b-auth__stats div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:12px 10px;text-align:center}
.b2b-auth__stats b{display:block;color:#fff;font:800 20px/1.1 var(--font-head)}
.b2b-auth__stats span{font-size:12px;color:#d7ecce}
.b2b-auth--split .b2b-auth__card{border:0;border-radius:0;box-shadow:none;padding:46px 48px;display:flex;flex-direction:column;justify-content:center}
.b2b-auth--split .b2b-auth__card h3{font-size:26px;margin:0 0 6px}
.b2b-auth__sub{color:var(--muted);font-size:14.5px;margin:0 0 22px}
.b2b-auth--split .b2b-field{margin-bottom:16px}
.b2b-auth--split .b2b-field input,.b2b-auth--split .b2b-field select{height:50px;border-radius:12px;padding:0 14px;font-size:15.5px;background:#fbfcfa}
.b2b-auth--split .b2b-field textarea{border-radius:12px}
.b2b-auth--split .btn-lg{height:52px;border-radius:12px;font-size:16px;margin-top:4px}
.b2b-auth--split .btn-outline.btn-block{height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.b2b-pw{position:relative;display:block}
.b2b-pw input{padding-right:64px!important}
.b2b-pw__eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--green-dark);font:600 13px var(--font-body);cursor:pointer;padding:6px 8px}
.b2b-auth__or{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:var(--muted);font-size:13px}
.b2b-auth__or::before,.b2b-auth__or::after{content:"";flex:1;height:1px;background:var(--line)}
.b2b-auth--split .b2b-auth__foot{margin-top:16px}
@media (max-width:900px){
	.b2b-auth--split,.b2b-auth--split.b2b-auth--wide{grid-template-columns:1fr;margin:12px 0 32px;border-radius:18px}
	.b2b-auth--split .b2b-auth__card{order:-1;padding:26px 20px}
	.b2b-auth--split .b2b-auth__side{padding:22px 20px}
	.b2b-auth--split .b2b-auth__side h2{font-size:22px}
	.b2b-auth__logo{margin-bottom:12px}
	.b2b-auth__stats{padding-top:12px}
}

/* ===== Thẻ SP nhỏ dùng chung (Gợi ý hôm nay / Yêu thích / Bộ sưu tập / Gợi ý trong giỏ) — 15/10 ===== */
.b2b-pcs{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px}
.b2b-pc{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 10px 12px;min-width:0;transition:box-shadow .2s,border-color .2s}
.b2b-pc:hover{border-color:#cfe2c6;box-shadow:0 8px 20px rgba(34,60,20,.08)}
.b2b-pc__img{display:block;background:#f7f9f5;border-radius:10px;overflow:hidden}
.b2b-pc__img img{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;mix-blend-mode:multiply;margin:0!important}
.b2b-pc__name{font:600 14px/1.35 var(--font-body);color:var(--ink);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;margin-top:4px}
.b2b-pc__name:hover{color:var(--green-dark)}
.b2b-pc__price{font:700 15px var(--font-body);color:var(--ink)}
.b2b-pc__price small{font-weight:500;color:var(--muted);font-size:12px}
.b2b-pc .b2b-why{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11.5px;line-height:1.4;padding:3px 7px;border-radius:8px;background:#fff7e6;color:#8a5a00;min-height:2.8em}
.b2b-pc__buy{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:6px}
.b2b-pc__buy .b2b-stepper{flex:1 1 auto;min-width:0;height:36px}
.b2b-pc__buy .b2b-stepper input{width:100%;min-width:0}
.b2b-pc__buy .b2b-add{flex:0 0 auto;height:36px;padding:0 12px;border-radius:999px}
@media (max-width:700px){
	.b2b-pcs{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:46%;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;-webkit-overflow-scrolling:touch}
	.b2b-pc{scroll-snap-align:start}
}
/* Công nợ (15/10) */
.b2b-debt2{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;margin:0 0 16px}
.b2b-debt2__kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.b2b-kpi2{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.b2b-kpi2 small{color:var(--muted);font-size:12.5px}
.b2b-kpi2 b{font:800 20px/1.25 var(--font-head);color:var(--ink)}
.b2b-kpi2 span{font-size:12px;color:var(--muted)}
.b2b-kpi2.is-main{background:#fff8ec;border-color:#f3dcb0}
.b2b-kpi2.is-main b{color:#b45309;font-size:24px}
.b2b-debt2__qr{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px 10px 10px}
.b2b-debt2__qr img{border-radius:10px;width:132px!important;height:132px!important;max-width:none;flex:none;object-fit:contain}
.b2b-debt2__qr{max-width:340px}
.b2b-debt2__qr div{display:flex;flex-direction:column;gap:2px;font-size:13px}
.b2b-debt2__qr code{background:var(--bg-soft);padding:2px 6px;border-radius:6px;font-size:12.5px}
@media (max-width:900px){.b2b-debt2{grid-template-columns:1fr}.b2b-debt2__kpis{grid-template-columns:1fr 1fr}.b2b-kpi2.is-main{grid-column:1/-1}}
/* Đơn hàng: lọc trạng thái + cột thẳng hàng, nút cùng thứ tự (Chi tiết · Đặt lại · Sửa/Phiếu giao) — 15/10 */
.b2b-ofilter{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.b2b-ofilter a{padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--text);font-size:13.5px;font-weight:500;text-decoration:none}
.b2b-ofilter a.on{background:var(--green);border-color:var(--green);color:#fff}
.b2b-orders--list{display:flex;flex-direction:column;gap:8px}
.b2b-orders--list .b2b-order{grid-template-columns:minmax(0,1fr) 170px 300px;padding:12px 16px;border-radius:12px}
.b2b-orders--list .b2b-order__sum{text-align:right;white-space:nowrap}
.b2b-orders--list .b2b-order__act{display:flex;justify-content:flex-end;gap:8px;flex-wrap:nowrap}
.b2b-orders--list .b2b-order__act a{order:3;white-space:nowrap}
.b2b-orders--list .b2b-order__act a.view{order:1}
.b2b-orders--list .b2b-order__act a.nstt-reorder{order:2}
.b2b-orders--list .b2b-order small{display:block;color:var(--muted);font-size:12.5px;margin-top:3px}
@media (max-width:900px){.b2b-orders--list .b2b-order{grid-template-columns:1fr auto}.b2b-orders--list .b2b-order__act{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}}
/* Giới thiệu bạn bè (15/10) */
.b2b-ref2__hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;background:linear-gradient(120deg,#eef7ea,#fff)!important}
.b2b-ref2__hero h3{font-size:20px;margin:4px 0 10px}
.b2b-ref2__stats{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:10px}
.b2b-ref2__stats div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;text-align:center}
.b2b-ref2__stats b{display:block;font:800 20px var(--font-head);color:var(--green-dark)}
.b2b-ref2__stats span{font-size:12px;color:var(--muted)}
.b2b-ref2__f{display:block;margin:0 0 12px}
.b2b-ref2__f small{display:block;color:var(--muted);font-size:12.5px;margin-bottom:4px}
.b2b-ref2__f span{display:flex;gap:8px}
.b2b-ref2__f input{flex:1;min-width:0;height:44px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fbfcfa;font-size:15px}
.b2b-ref2__f .btn{height:44px;flex:none}
.b2b-vouchers{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.b2b-voucher{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:1px dashed #9fcb8f;border-radius:12px;padding:10px 12px;background:#f6fbf3}
.b2b-voucher.is-off{opacity:.55;filter:grayscale(.5)}
.b2b-voucher__v{font:800 17px var(--font-head);color:var(--green-dark);display:flex;flex-direction:column;min-width:96px}
.b2b-voucher__v small{font:500 11px var(--font-body);color:var(--muted)}
.b2b-voucher__i{display:flex;flex-direction:column;min-width:0}
.b2b-voucher__i code{font-size:14px;font-weight:700;background:none;padding:0}
.b2b-voucher__i small{color:var(--muted);font-size:12px}
@media (max-width:900px){.b2b-ref2__hero{grid-template-columns:1fr}}
.b2b-ref2 .b2b-ticks li,.b2b-ref2 .b2b-ticks b{color:var(--ink)}
.b2b-ref2 .b2b-ticks{list-style:none;padding:0;margin:0}
.b2b-ref2 .b2b-ticks li{margin:0 0 6px;font-size:14.5px}
/* Tài khoản đối tác: mọi tab dùng chung "khung thẻ trắng" như Tổng quan (15/10) */
body.nstt-partner .woocommerce-MyAccount-content>:is(form.b2b-profile,.b2b-qo,ul.b2b-notices,.b2b-roles,form.woocommerce-EditAccountForm,.b2b-card,.b2b-ref){background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px 20px;margin:0 0 16px;box-sizing:border-box}
body.nstt-partner .woocommerce-MyAccount-content>table.b2b-table{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:0 0 16px}
body.nstt-partner .woocommerce-MyAccount-content>.b2b-empty{background:#fff}
body.nstt-partner ul.b2b-notices{list-style:none}
body.nstt-partner ul.b2b-notices li{border-bottom:1px solid var(--line);padding:12px 4px}
body.nstt-partner ul.b2b-notices li:last-child{border-bottom:0}
body.nstt-partner .b2b-profile .b2b-bredit{border:1px solid var(--line);border-radius:12px;padding:14px 14px 8px;margin:0 0 12px;background:#fbfcfa}
body.nstt-partner .b2b-profile h3{margin:0 0 4px}
body.nstt-partner .b2b-qo textarea{border-radius:12px}
@media (max-width:700px){body.nstt-partner .woocommerce-MyAccount-content>:is(form.b2b-profile,.b2b-qo,ul.b2b-notices,.b2b-roles,form.woocommerce-EditAccountForm,.b2b-card,.b2b-ref){padding:14px;border-radius:14px}}

/* ===== CHÂN TRANG v2 (mọi người xem): dải trên = logo to + hotline + Gọi / Zalo; 4 cột Về Tuấn Tú · Chính sách · Đặt hàng & giao nhận · Liên hệ.
   Đặt ở file này (có số bản theo giờ sửa) vì site.css bị LiteSpeed bỏ ?ver nên sửa không cập nhật được. ===== */
.site-footer__top{position:relative;border-bottom:1px solid rgba(255,255,255,.08)}
.site-footer__topin{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-top:30px;padding-bottom:30px}
.site-footer .footer-brand{display:inline-flex;flex:none;max-width:100%}
.site-footer .site-footer__top .footer-brand .footer-logo-wrap{display:inline-block!important;width:auto!important;max-width:100%}
.site-footer .site-footer__top .footer-brand .footer-logo-img{height:84px!important;width:auto!important;max-width:100%!important;background:transparent;padding:0;border-radius:0}
.site-footer .site-footer__top .footer-brand .footer-logo-img.is-trim{height:80px!important}
.footer-topcta{display:flex;align-items:center;gap:26px;flex-wrap:wrap;justify-content:flex-end}
.site-footer .footer-hotline{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}
.footer-hotline__ic{width:48px;height:48px;border-radius:50%;background:rgba(143,208,111,.14);color:#8fd06f;display:grid;place-items:center;flex:none}
.footer-hotline small{display:block;font-size:11.5px;letter-spacing:.5px;text-transform:uppercase;color:#9fb092;font-weight:700}
.footer-hotline b{display:block;font:800 23px/1.15 var(--font-head);color:#fff;letter-spacing:.3px}
.site-footer .footer-hotline:hover b{color:#bff2a5}
.site-footer__top .footer-quick-order{flex-direction:row;gap:10px}
.site-footer__top .footer-quick-order .btn{width:auto;padding:12px 22px;border-radius:999px;font-weight:700;display:inline-flex;align-items:center;gap:8px}

.site-footer .site-footer__main{grid-template-columns:1.2fr .85fr 1.2fr 1.2fr;gap:44px;padding-top:44px;padding-bottom:40px}
.site-footer .footer-desc{font-size:14.5px;line-height:1.7;color:#c3d0b7;margin:0 0 18px}
.site-footer .footer-menu{gap:11px}
.site-footer .footer-contact{gap:16px}
.site-footer .footer-contact li > div{min-width:0}
.site-footer .footer-contact a.footer-maplink{display:block;margin-top:5px;font-size:13px;color:#8fd06f;font-weight:600}
.site-footer .footer-contact a.footer-maplink:hover{color:#bff2a5}
.site-footer .footer-b2b-cta{display:block;margin-top:20px;padding:12px 14px;border-radius:12px;background:rgba(143,208,111,.1);border:1px solid rgba(143,208,111,.28);text-decoration:none;transition:background .2s}
.site-footer .footer-b2b-cta b{display:block;color:#fff;font-size:14px}
.site-footer .footer-b2b-cta b::after{content:" →"}
.site-footer .footer-b2b-cta span{display:block;color:#b5c4a7;font-size:12.5px;margin-top:3px}
.site-footer .footer-b2b-cta:hover{background:rgba(143,208,111,.2)}
@media (max-width:1100px){
	.site-footer .site-footer__main{grid-template-columns:1fr 1fr;gap:34px 44px}
}
@media (max-width:760px){
	.site-footer__topin{flex-direction:column;align-items:stretch;gap:18px;padding-top:26px;padding-bottom:24px}
	.site-footer .footer-brand{align-self:center}
	.site-footer .site-footer__top .footer-brand .footer-logo-img{height:64px!important}
	.footer-topcta{flex-direction:column;align-items:stretch;gap:14px}
	.site-footer .footer-hotline{justify-content:center}
	.site-footer__top .footer-quick-order{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:10px}
	.site-footer__top .footer-quick-order .btn{width:100%;padding:11px 10px;justify-content:center}
	.site-footer .site-footer__main{grid-template-columns:1fr;gap:28px;padding-top:28px;padding-bottom:28px}
	.site-footer .site-footer__top .footer-brand .footer-logo-img.is-trim{height:60px!important}
	.site-footer__bottom .pay-icons{justify-content:center}
}

/* Giỏ / ngăn giỏ của khách chưa gửi đơn được: Đăng nhập để gửi đơn · Đăng ký đối tác */
.b2b-cartcta{display:grid;gap:8px;margin-top:14px}
.b2b-cartcta small{display:block;color:var(--muted);font-size:12.5px;line-height:1.5}
.b2b-cartcta .is-disabled{opacity:.7;pointer-events:none}
.b2b-cartcta.is-compact{margin-top:10px}
.b2b-cartcta.is-compact .btn{padding-top:11px;padding-bottom:11px}

/* Nút liên hệ nổi trên điện thoại (15/10, user chọn cách a): giữ ĐỦ nút, chỉ thu nhỏ 44px, khít mép phải, khoảng cách hẹp
   → bớt che nút "+" số lượng / nút Đăng nhập trên thẻ SP. Không gộp, không ẩn. */
@media (max-width:900px){
	.floating-contact{right:8px;gap:8px}
	.floating-contact .fc-btn{width:44px;height:44px;box-shadow:0 6px 16px rgba(0,0,0,.22)}
	.floating-contact .fc-btn svg{width:20px;height:20px}
	.floating-contact .fc-zalo{font-size:11.5px}
	.floating-contact .fc-pulse{border-width:1.5px}
}
.site-footer .footer-newsletter-form{position:relative}
.site-footer .footer-newsletter-msg{margin:-8px 0 16px;font-size:13px;color:#bff2a5}
.site-footer a.footer-story{display:inline-block;margin:-6px 0 16px;font-size:13.5px;font-weight:600;color:#8fd06f}
.site-footer a.footer-story:hover{color:#bff2a5}
.tt-ggrev__more{text-align:center;margin:14px 0 0;font-size:14px}
.tt-ggrev__more a{font-weight:600}
/* Đoạn giới thiệu trang Cửa hàng (SEO) */
.tt-shop-intro{margin:34px 0 8px;padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:16px}
.tt-shop-intro h2{font-size:20px;margin:0 0 10px}
.tt-shop-intro p{margin:0 0 10px;color:var(--muted);font-size:14.5px;line-height:1.7;max-width:900px}
.tt-shop-intro__cats{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:12px 0 0}
.tt-shop-intro__cats a{display:inline-block;padding:6px 12px;border-radius:999px;border:1px solid var(--line);font-size:13px;color:var(--ink);text-decoration:none}
.tt-shop-intro__cats a:hover{border-color:var(--green);color:var(--green)}

/* =====================================================================
   ĐIỆN THOẠI (15/10): nội dung rộng gần hết màn hình — lề ngoài 12px (trước 20–22px), thẻ gọn lề trong;
   danh sách SP của đối tác tràn hết chiều ngang, ngăn bằng đường kẻ (kiểu app); trang chủ gọn lại.
   ===================================================================== */
@media (max-width:600px){
	.container,body.page .container{padding-left:12px!important;padding-right:12px!important}
	.woocommerce-account .woocommerce-MyAccount-navigation{margin:0 -12px 12px!important;padding:0 12px!important}
	body.nstt-partner .b2b-sec{padding:12px}
	body.nstt-partner .b2b-hello{padding:14px}
	.b2b-card{padding:12px 14px}
	.woocommerce ul.products.columns-3,.woocommerce ul.products.columns-4,.woocommerce ul.products.columns-5,.woocommerce ul.products{gap:8px!important}
	/* Danh sách (đối tác / chế độ Danh sách): hàng tràn mép, kẻ ngang */
	body.b2b-listview ul.products{gap:0!important;margin-left:-12px!important;margin-right:-12px!important;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
	body.b2b-listview ul.products li.product{border-radius:0!important;border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;padding:10px 12px!important}
	body.b2b-listview ul.products li.product:last-child{border-bottom:0!important}
	/* Trang chủ: SP bán chạy thành 1 hàng vuốt ngang (trước là lưới 20 món ≈ 3.900px) */
	body.home .section-products ul.products{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:10px!important;margin-right:-12px!important;padding:2px 12px 8px 0!important}
	body.home .section-products ul.products::-webkit-scrollbar{display:none}
	body.home .section-products ul.products li.product{flex:0 0 46%!important;max-width:46%!important;width:auto!important;scroll-snap-align:start}
	/* Blog: 2 cột, chỉ ảnh + tiêu đề (trước 1 cột 6 bài/slide ≈ 3.500px) */
	.blog-slider.tt-slider{padding:0!important}
	.blog-slider .tt-slider__prev{left:-6px}
	.blog-slider .tt-slider__next{right:-6px}
	.blog-grid--6{grid-template-columns:1fr 1fr!important;gap:10px!important}
	.blog-grid--6 .blog-card__excerpt,.blog-grid--6 .blog-card__more{display:none!important}
	.blog-grid--6 .blog-card__img img{aspect-ratio:4/3;height:auto!important;width:100%;object-fit:cover}
	.blog-grid--6 .blog-card__body{padding:10px 10px 12px!important}
	.blog-grid--6 .blog-card__title{font-size:14px!important;line-height:1.35!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0 0!important}
	.blog-grid--6 .blog-card__meta{font-size:11.5px}
	/* Cẩm nang: danh sách tiêu đề (bỏ đoạn tóm tắt) */
	.tt-guide{grid-template-columns:1fr!important;gap:8px!important}
	.tt-guide a{padding:12px 14px!important}
	.tt-guide a span{display:none!important}
	.tt-guide a strong{font-size:14.5px;line-height:1.4}
	/* Chữ số liệu dễ đọc hơn */
	.about-stat-strip span,.b2b-kpi small{font-size:12.5px!important}
}
/* Dải danh mục vuốt ngang (Cửa hàng / danh mục) — chỉ điện thoại & máy tính bảng; máy tính đã có cột danh mục */
.b2b-catchips{display:none}
@media (max-width:900px){
	.b2b-catchips{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -12px 12px;padding:2px 12px 4px}
	.b2b-catchips::-webkit-scrollbar{display:none}
	.b2b-catchips a{flex:none;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13.5px;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap}
	.b2b-catchips a.on{background:var(--green);border-color:var(--green);color:#fff}
	/* Đối tác: dải mục tài khoản trên đầu bỏ các mục đã có ở thanh tab đáy (Tổng quan, Đặt nhanh, Đơn hàng) */
	body.nstt-partner .woocommerce-MyAccount-navigation-link--dashboard,
	body.nstt-partner .woocommerce-MyAccount-navigation-link--dat-nhanh,
	body.nstt-partner .woocommerce-MyAccount-navigation-link--orders{display:none!important}
}
.b2b-loadmore{display:flex;margin:18px auto 10px;min-width:220px;justify-content:center}
.b2b-mst{display:flex;gap:6px}
.b2b-mst input{flex:1;min-width:0}
.b2b-mst__btn{flex:none;border:1px solid var(--green);background:#fff;color:var(--green-dark);border-radius:10px;padding:0 14px;font-weight:700;cursor:pointer}
.b2b-mst__btn:disabled{opacity:.6}
.b2b-mst__msg{display:block;margin:-4px 0 10px;color:var(--green-dark);font-size:13px}
/* Khối "Thông tin sản phẩm" (SP có mô tả ngắn) */
.b2b-pinfo{margin-top:16px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fbfdf9}
.b2b-pinfo h2{font-size:17px;margin:0 0 8px}
.b2b-pinfo p{margin:0 0 8px;line-height:1.65}
.b2b-pinfo ul{margin:0;padding-left:18px;display:grid;gap:6px;line-height:1.6}

/* Khả năng truy cập (Lighthouse 15/10): chữ đủ tương phản, tiêu đề chân trang là h2 (giữ nguyên kiểu chữ), link breadcrumb có gạch chân */
.b2b-unittag,body.tt-ui2:not(.b2b-listview) ul.products li.product .b2b-unittag{color:#4a5646}
.site-footer .footer-col h2.widget-title{font-family:var(--font-head);font-size:15px;color:#fff;margin:0 0 16px;padding-bottom:10px;position:relative;text-transform:uppercase;letter-spacing:.5px;line-height:1.3}
.site-footer .footer-col h2.widget-title::after{content:"";position:absolute;left:0;bottom:0;width:36px;height:2px;background:var(--green);border-radius:2px}
.woocommerce-breadcrumb a{text-decoration:underline;text-decoration-color:rgba(44,106,31,.35);text-underline-offset:3px}
.screen-reader-text.b2b-srh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* ===== Rà soát lần 4 (15/10/2026) — nhóm A ===== */
/* Ảnh chính trang SP: WooCommerce in sẵn opacity:0 tới khi JS gallery chạy xong → LCP điện thoại 8s. Hiện ngay. */
.woocommerce-product-gallery{opacity:1!important}
/* Nút liên hệ nổi GIỮ NGUYÊN (không gộp / ẩn) — chỉ chừa chỗ cho nội dung khỏi bị che.
   Máy tính: cột nút chiếm ~72px mép phải → khung nội dung chừa 84px mỗi bên khi màn hẹp hơn khung 1560px + lề. */
@media (min-width:901px){
	.container{padding-left:max(20px,calc(84px - max(0px,(100vw - 1560px) / 2)));padding-right:max(20px,calc(84px - max(0px,(100vw - 1560px) / 2)))}
	body:has(.b2b-cartpill:not([hidden])) .site-footer{padding-bottom:84px}
}
/* Điện thoại: các hàng có nút bấm sát mép phải (giỏ, thanh toán, đăng nhập, đặt nhanh, bảng giá) chừa 52px cho cột nút 44px. */
@media (max-width:900px){
	.tt-cart-form .cart-row,.woocommerce-checkout-review-order,.b2b-auth form,.b2b-qo,.pricelist-table td.act,.pricelist-table th.act{padding-right:52px!important}
	.site-footer__bottom{padding-right:56px}
	body:has(.b2b-cartpill:not([hidden])){padding-bottom:76px}
	body.single-product .b2b-cartpill{display:none!important}   /* trang SP đã có thanh "Thêm vào giỏ" dính đáy */
}
/* Công nợ: QR to hơn + dòng sao chép */
.b2b-debt2__qr img{width:200px;height:200px}
.b2b-copyl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:8px 0 0;align-items:center}
.b2b-copyl dt{font-size:12.5px;color:#5d6b5c}
.b2b-copyl dd{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.b2b-copyl dd small{flex-basis:100%;color:#5d6b5c;font-size:12px}
.b2b-copy{border:1px solid #cfe0c6;background:#fff;color:#2c6a1f;border-radius:999px;padding:4px 10px;font:600 12px/1.2 inherit;cursor:pointer}
@media (max-width:600px){.b2b-debt2__qr{flex-direction:column;align-items:flex-start}}
/* Trang Mật khẩu (đối tác): ẩn email kỹ thuật, bỏ dấu * ở Họ/Tên (không còn bắt buộc) */
body.nstt-fakemail .woocommerce-EditAccountForm p:has(#account_email){display:none}
body.nstt-partner .woocommerce-EditAccountForm label[for=account_first_name] .required,
body.nstt-partner .woocommerce-EditAccountForm label[for=account_last_name] .required,
body.nstt-partner .woocommerce-EditAccountForm label[for=account_display_name] .required{display:none}
/* Menu: mục chỉ dành cho điện thoại; menu điện thoại nền đặc, nút ≡ thành ✕ khi mở, chừa đáy cho nút liên hệ nổi */
.main-navigation .tt-m-only{display:none}
@media (max-width:900px){
	.main-navigation .tt-m-only{display:block}
	.main-navigation .tt-m-hot a{font-weight:800}
	.main-navigation{background:#3f8e2f!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding-bottom:72px}
	.site-header:has(#tt-menu-chk:checked) .menu-toggle__bar{background:transparent}
	.site-header:has(#tt-menu-chk:checked) .menu-toggle__bar::before{transform:translate(-50%,-50%) rotate(45deg)}
	.site-header:has(#tt-menu-chk:checked) .menu-toggle__bar::after{transform:translate(-50%,-50%) rotate(-45deg)}
}
/* Menu thả xuống mở được bằng bàn phím (Tab) */
@media (min-width:901px){.main-navigation .menu-item-has-children:focus-within>.sub-menu,.main-navigation .menu-item-has-children:focus-within>.tt-mega{display:block;opacity:1;visibility:visible;transform:none}}
/* Đánh giá Google tĩnh (thay widget Trustindex hay bị trống) */
.tt-ggrev__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:8px}
.tt-ggrev__card{margin:0;background:#fff;border:1px solid #e3ecdc;border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.tt-ggrev__who{display:flex;align-items:center;gap:10px}
.tt-ggrev__who>div{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.tt-ggrev__who b{font-size:15px;color:#1f3b1f;overflow-wrap:anywhere}
.tt-ggrev__av{flex:0 0 38px;height:38px;border-radius:50%;background:#e6f0df;color:#2c6a1f;display:grid;place-items:center;font-weight:800}
.tt-ggrev__st{color:#f4b400;letter-spacing:1px;font-size:14px}
.tt-ggrev__g{margin-left:auto;font-size:11.5px;font-weight:700;color:#5d6b5c;border:1px solid #e3ecdc;border-radius:999px;padding:3px 8px}
.tt-ggrev__card blockquote{margin:0;color:#3d4a3c;font-size:14.5px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.tt-ggrev__more{text-align:center;margin-top:18px}
@media (max-width:900px){.tt-ggrev__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.tt-ggrev__grid{grid-template-columns:1fr}.tt-ggrev__card:nth-child(n+4){display:none}}
/* Trang chủ: số KPI khối Giới thiệu to, không viết hoa (span số bị dính kiểu nhãn 11.5px); ảnh ngang tiêu đề */
.about-stat-strip b span{font-size:inherit;text-transform:none;color:inherit;letter-spacing:0}
.about-stat-strip b{font-size:clamp(24px,2.4vw,32px)}
.section-about .about-grid{align-items:center}
/* Khối SEO trang chủ thu gọn — chữ vẫn trong HTML (Google đọc được), bấm "Xem thêm" mới hiện */
.seo-more,.seo-reasons{display:none}
.seo-more.is-open{display:block}
.seo-reasons.is-open{display:block}
.seo-more-btn{background:none;border:0;padding:4px 0;margin:0 0 14px;color:#2c6a1f;font:700 14.5px/1.3 inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.section-seo-intro .seo-intro-grid:has(.seo-reasons:not(.is-open)){grid-template-columns:1fr}
/* Cửa hàng (máy tính): cột danh mục gọn ~36px/mục → hiện đủ 17 danh mục không phải cuộn; bỏ khung lồng 2 lớp */
@media (min-width:901px){
	.shop-sidebar .widget{border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important}
	.shop-sidebar .cat-filter{gap:2px}
	.shop-sidebar .cat-filter a{padding:7px 10px;font-size:14px;line-height:1.3;min-height:0;white-space:nowrap}
	.shop-sidebar .cat-filter a>span,.shop-sidebar .cat-filter a{overflow:hidden;text-overflow:ellipsis}
	.shop-sidebar .cat-filter a small{flex:none;padding:1px 7px;border-radius:999px;font-size:12px}
}
/* Cửa hàng điện thoại: đưa sản phẩm lên màn đầu — lọc xuất xứ 1 hàng vuốt ngang; Lưới/Danh sách + Sắp xếp chung 1 hàng; ẩn dòng "Hiển thị 1–24…" */
@media (max-width:900px){
	.b2b-filter{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:6px!important;margin:0 -12px 8px!important;padding:2px 12px!important;align-items:center}
	.b2b-filter::-webkit-scrollbar{display:none}
	.b2b-filter>*{flex:none;white-space:nowrap}
	.b2b-filter a{padding:6px 12px!important;font-size:13px!important}
	.b2b-viewbar{float:left;width:auto!important;display:inline-flex!important;margin:0 0 10px!important}
	.woocommerce-ordering{float:right;margin:0 0 10px!important;max-width:calc(100% - 214px)}
	.woocommerce-ordering select{max-width:100%;font-size:13.5px;padding:8px 28px 8px 10px}
	.woocommerce .woocommerce-result-count{display:none}
	.woocommerce ul.products{clear:both}
	.b2b-catchips{margin-bottom:8px!important}
}
/* Nút "Xem thêm": vòng chờ khi đang tải; phân trang (giữ cho Google) thu nhỏ bên dưới */
.b2b-loadmore.is-loading::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:b2bSpin .7s linear infinite}
@keyframes b2bSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.b2b-loadmore.is-loading::before{animation:none}}
.woocommerce-pagination.b2b-pag-js{transform:scale(.88);opacity:.8;margin-top:6px}
/* Kiểu Danh sách: dòng gọn (~80px trên điện thoại) — ô số lượng sang cột phải, bỏ nhãn "Bán theo Kg" trùng với "/kg" ở giá, tim nhỏ ở góc ảnh */
body.b2b-listview ul.products li.product .b2b-unittag{display:none!important}
@media (max-width:900px){
	body.b2b-listview ul.products li.product{position:relative;grid-template-columns:56px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;row-gap:2px!important;min-height:0!important;padding-right:56px!important;column-gap:10px!important}
	body.b2b-listview ul.products li.product>.tt-thumb{grid-row:1/3!important;align-self:center!important}
	body.b2b-listview ul.products li.product>.qty-cell{grid-column:3!important;grid-row:1/3!important;justify-self:end;align-self:center;margin:0!important}
	body.b2b-listview ul.products li.product>.fav-toggle{position:absolute!important;left:52px;top:6px;width:26px!important;height:26px!important;margin:0!important}
	body.b2b-listview ul.products li.product .woocommerce-loop-product__title{font-size:14.5px!important;line-height:1.3!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	body.b2b-listview ul.products li.product .qty-cell .mini-qty button{width:32px!important;height:34px!important}
	body.b2b-listview ul.products li.product .qty-cell .mini-qty input{width:38px!important;flex:0 0 38px!important;height:34px!important}
}
/* Máy tính: không để khoảng trống lớn giữa tên và ô số lượng */
@media (min-width:901px){body.b2b-listview ul.products li.product{grid-template-columns:72px minmax(0,1fr) auto 40px!important;max-width:1100px}}
/* Trang SP: đơn vị cạnh giá chính, ký hiệu ₫ không gạch chân; thanh mua dính đáy điện thoại: nút −/+ to 40px */
.woocommerce div.product .summary .price,.woocommerce div.product .summary .price *{text-decoration:none!important}
.b2b-punit{font-size:.62em;font-weight:600;color:#5d6b5c;margin-left:2px}
@media (max-width:768px){
	.b2b-buybar .b2b-stepper button,.b2b-buybar button[data-step]{width:40px!important;height:40px!important;font-size:19px}
	.b2b-buybar .b2b-stepper input,.b2b-buybar input[type=number]{height:40px!important;width:46px!important}
}
/* Giỏ hàng điện thoại: thanh tổng + nút gửi đơn dính đáy */
.tt-cartbar{display:none}
@media (max-width:900px){
	body.woocommerce-cart .tt-cartbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:950;gap:12px;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid #e3ecdc;box-shadow:0 -6px 20px rgba(0,0,0,.07);padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
	body.nstt-partner.woocommerce-cart .tt-cartbar{bottom:calc(64px + env(safe-area-inset-bottom))}
	.tt-cartbar__t{display:flex;flex-direction:column;line-height:1.2;min-width:0}
	.tt-cartbar__t small{font-size:11.5px;color:#5d6b5c}
	.tt-cartbar__t b{font-size:17px;color:#2c6a1f;white-space:nowrap}
	.tt-cartbar .btn{flex:none;padding:11px 16px;white-space:nowrap}
	body.woocommerce-cart{padding-bottom:76px}
	body.woocommerce-cart .floating-contact{bottom:calc(84px + env(safe-area-inset-bottom))!important}
	body.nstt-partner.woocommerce-cart .floating-contact{bottom:calc(148px + env(safe-area-inset-bottom))!important}
}
/* Lời nhắc đơn tối thiểu (khách): dạng thông tin, không phải báo lỗi đỏ */
.tt-mo-notice-wrap .woocommerce-error{background:#eef6e9!important;border:1px solid #cfe3c3!important;border-left:4px solid #3f8e2f!important;color:#1f3b1f!important;border-radius:10px}
.tt-mo-notice-wrap .woocommerce-error::before{content:"ℹ"!important;color:#3f8e2f!important;font-weight:800}
/* Ô nhập ≥16px → iPhone không tự phóng to khi chạm (đăng nhập, đăng ký, liên hệ, thanh toán) */
@media (max-width:900px){
	.b2b-field input,.b2b-field select,.b2b-field textarea,.b2b-auth--split .b2b-field input,.b2b-auth--split .b2b-field select,
	.checkout-form input,.checkout-form select,.checkout-form textarea,.woocommerce form .input-text,.woocommerce form select,.pl-search,.pricelist-toolbar select{font-size:16px!important}
}
.b2b-regnote{font-size:13.5px;color:#4a5646;background:#f3f8ef;border-radius:10px;padding:10px 12px;margin:4px 0 12px}
.b2b-regnote a{color:#2c6a1f}
/* Giới thiệu: danh sách đã có dấu ✓ trong chữ → bỏ chấm tròn mặc định (trước hiện 2 ký hiệu) */
.about-list{list-style:none;padding-left:0}
.about-list li{margin:0 0 8px}
.error-404__h{font-size:17px;margin:26px 0 10px}
.error-404__cats{list-style:none;padding:0;margin:0 auto;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:720px}
.error-404__cats a{display:inline-block;padding:7px 14px;border:1px solid #d9e6d0;border-radius:999px;background:#fff;color:#2c6a1f;font-weight:600;font-size:14px;text-decoration:none}
.error-404__hot{margin-top:18px;color:#4a5646}
/* Bảng giá: mở/đóng theo danh mục + dòng gọn trên điện thoại + 1 nút "Thêm" rõ chữ */
.pl-acc h2{margin:0;padding:0!important;background:none!important;border:0!important}
.pl-toggle{width:100%;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e3ecdc;border-radius:12px;padding:14px 16px;font:700 17px/1.3 inherit;color:#1f3b1f;cursor:pointer;text-align:left}
.pl-toggle small{font-weight:500;color:#5d6b5c;font-size:13px}
.pl-chev{margin-left:auto;width:10px;height:10px;border-right:2px solid #3f8e2f;border-bottom:2px solid #3f8e2f;transform:rotate(45deg);transition:transform .2s}
.pl-acc.is-open .pl-chev{transform:rotate(-135deg)}
.pl-acc{margin-bottom:10px}
.pl-acc .pl-body{margin-top:8px}
.pricelist-table .pl-add-txt{width:auto!important;min-width:64px;padding:0 14px!important;border-radius:999px!important;font-weight:700;font-size:14px}
@media (max-width:760px){
	.pricelist-table .stt{display:none}
	.pricelist-table td.img img{width:44px!important;height:44px!important}
	.pricelist-table td{padding-top:6px!important;padding-bottom:6px!important}
	.pricelist-table .vat-note{display:none}
	.pricelist-toolbar .pl-search{flex:1 1 100%!important}
	.pricelist-toolbar .pl-search input{width:100%}
}
@media (prefers-reduced-motion:reduce){.pl-chev{transition:none}}
/* Chi tiết đơn (đối tác): bỏ khối "Địa chỉ thanh toán" WooCommerce (đã có khối Giao hàng riêng) + email kỹ thuật */
body.nstt-partner .woocommerce-customer-details,body.nstt-fakemail .woocommerce-order-overview__email{display:none!important}
/* Tổng quan đối tác (điện thoại): "Đặt lại đơn gần nhất" lên đầu khối nút; 4 thẻ số liệu thành 1 hàng vuốt ngang; lời chào gọn hơn */
@media (max-width:900px){
	.b2b-quick{display:flex!important;flex-direction:column}
	.b2b-quick .b2b-quick__btn.is-primary{order:-1}
	.b2b-kpis{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:10px!important;margin-left:-12px!important;margin-right:-12px!important;padding:2px 12px 6px!important}
	.b2b-kpis::-webkit-scrollbar{display:none}
	.b2b-kpis>*{flex:0 0 46%!important;min-width:150px}
	.b2b-hello{padding:14px 16px!important}
	.b2b-hello .b2b-tags{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
	.b2b-hello h2{font-size:20px!important;margin:4px 0 8px!important}
}
/* Báo lỗi hàng: ô số lượng lỗi từng món + nút chọn ảnh tiếng Việt */
.b2b-issue__row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:6px 0;border-bottom:1px dashed #e3ecdc}
.b2b-issue__qty{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:#4a5646}
.b2b-issue__qty input{width:76px;padding:6px 8px;border:1px solid #d5ddcf;border-radius:8px;font-size:16px}
.b2b-filebtn{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border:1px dashed #3f8e2f;border-radius:10px;color:#2c6a1f;font-weight:700;cursor:pointer;background:#f3f8ef}
/* Công nợ theo sổ kế toán CRM: mỗi kỳ 1 dòng bấm mở danh sách đơn */
.b2b-crmdebt{display:grid;gap:8px}
.b2b-crmdebt__row{background:#fff;border:1px solid #e3ecdc;border-radius:12px;padding:0 14px}
.b2b-crmdebt__row>summary{cursor:pointer;list-style:none;display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr)) auto;gap:8px 14px;align-items:center;padding:12px 0}
.b2b-crmdebt__row>summary::-webkit-details-marker{display:none}
.b2b-crmdebt__k{display:flex;flex-direction:column;gap:2px}
.b2b-crmdebt__k small,.b2b-crmdebt__n small{color:#5d6b5c;font-size:12px}
.b2b-crmdebt__n{display:flex;flex-direction:column;text-align:right;font-variant-numeric:tabular-nums}
.b2b-crmdebt__n.is-main b{color:#2c6a1f}
.b2b-crmdebt__orders{margin:0 0 12px;font-size:14px}
@media (max-width:700px){.b2b-crmdebt__row>summary{grid-template-columns:1fr 1fr}.b2b-crmdebt__k{grid-column:1/-1}.b2b-crmdebt__n{text-align:left}}
/* Trang nguyên liệu theo loại quán */
.tt-industry__head{max-width:860px}
.tt-industry__head h1{font-size:clamp(26px,3.2vw,38px);line-height:1.2;margin:0 0 12px;text-wrap:balance}
.tt-industry__lead{font-size:17px;color:#3d4a3c;line-height:1.65}
.tt-industry__cta{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.tt-industry__facts{list-style:none;padding:0;margin:0 0 8px;display:flex;flex-wrap:wrap;gap:8px}
.tt-industry__facts li{background:#eef6e9;color:#2c6a1f;border-radius:999px;padding:6px 12px;font-size:13.5px;font-weight:600}
.tt-industry__sec{margin-top:30px}
.tt-industry__sec h2{font-size:22px;margin:0 0 10px}
.tt-industry__sec h3{font-size:16.5px;margin:16px 0 6px}
.tt-industry__sec ul{padding-left:20px;display:grid;gap:6px;line-height:1.6}
.footer-industry{font-size:13.5px;line-height:1.7;margin:8px 0 12px;color:rgba(255,255,255,.85)}
.footer-industry a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.b2b-cartpill__t [data-b2b-cartpill-moq]{font-size:11px;font-weight:700;color:#ffe08a;opacity:1}
.b2b-cartpill__t [data-b2b-cartpill-moq]:empty{display:none}
/* Ca giao dạng nút theo nhóm */
select.b2b-slot-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}
.b2b-slotui{display:grid;gap:8px;margin-top:4px}
.b2b-slotg{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;align-items:start}
.b2b-slotg__h{font-size:12.5px;font-weight:700;color:#5d6b5c;padding-top:7px}
.b2b-slotg__b{display:flex;flex-wrap:wrap;gap:6px}
.b2b-slotbtn{border:1px solid #d5ddcf;background:#fff;border-radius:999px;padding:6px 11px;font:600 13px/1.2 inherit;color:#1f3b1f;cursor:pointer}
.b2b-slotbtn.is-on{background:#2c6a1f;border-color:#2c6a1f;color:#fff}
.b2b-slotbtn:disabled{opacity:.4;cursor:not-allowed;text-decoration:line-through}
.b2b-slotbtn:focus-visible{outline:2px solid #2c6a1f;outline-offset:2px}
.b2b-pmeta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:4px 0 10px}
.b2b-pfav{position:static!important;display:inline-flex;align-items:center;gap:6px;border:1px solid #e3ecdc;background:#fff;border-radius:999px;padding:6px 12px;font:600 13px/1 inherit;color:#5d6b5c;cursor:pointer;width:auto!important;height:auto!important}
.b2b-pfav.active{color:#c2185b;border-color:#f3c2d4;background:#fff5f8}
.b2b-plast{font-size:13.5px;color:#2c6a1f;background:#eef6e9;border-radius:999px;padding:6px 12px}
/* Giỏ hàng điện thoại: mỗi món gọn hơn (~230px → ~150px) — bỏ dòng "Bán theo kg" (đã có "/ kg" ở giá), VAT từng dòng gộp 1 dòng nhỏ */
@media (max-width:900px){
	.tt-cart-form .cart-row .pname>small{display:none}
	.tt-cart-form .cart-row .row-vat{display:block;white-space:nowrap;font-size:11px;line-height:1.3}
	.tt-cart-form .cart-row .row-vat br{display:none}
	.tt-cart-form .cart-row{row-gap:6px!important;padding-top:10px!important;padding-bottom:10px!important}
	.tt-cart-form .cart-row .img img{width:52px!important;height:52px!important}
	.tt-cart-form .cart-row .qty-box button{width:36px;height:36px}
}
@media (max-width:900px){.tt-cart-form .cart-row .price{white-space:nowrap}.tt-cart-form .cart-row .price small{display:inline}}
/* 15/10: icon SVG thay emoji (📞 💬 ✉️ 🖨️ 📍) trong nút / dòng liên hệ */
.tt-ei{vertical-align:-3px;margin-right:2px;color:var(--green-dark,#2c6a1f)}
.b2b-regnote .tt-icon,.tt-job-tag .tt-icon,.tt-pc-item h3 .tt-icon,.btn-print .tt-icon{vertical-align:-3px}
.b2b-install>.tt-icon{color:#2b5ea8}
.main-navigation .tt-m-hot a{display:flex;align-items:center;gap:8px}
.contact-info li .ic .tt-icon,.dept-card .ic .tt-icon,.flow-step .fs-ic .tt-icon,.policy-content .info-box .ic .tt-icon{display:block}
/* 15/10: Cơ sở nhận hàng — dạng xem / sửa */
.b2b-bredit.is-view .b2b-brform{display:none}
.b2b-bredit.is-view{padding-bottom:12px!important}
.b2b-brview{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.b2b-brview>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.b2b-brview b{font-size:15px;color:#1d3a19}
.b2b-brview span{font-size:14px;color:#3a4439}
.b2b-brview small{font-size:13px;color:#6b7768}
.b2b-brview .btn{flex:none}
.b2b-bredit:not(.is-view) .b2b-brview{display:none}
/* 15/10: Người dùng con — sửa / tạm khoá */
.b2b-teamact{display:flex;gap:8px;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap}
.b2b-teamedit summary{list-style:none;cursor:pointer}
.b2b-teamedit summary::-webkit-details-marker{display:none}
.b2b-teamedit[open]{flex-basis:100%}
.b2b-teamedit form{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfcfa;text-align:left}
.b2b-teamact .b2b-link-bad{align-self:center}
/* 15/10: Bộ sưu tập — nút Thêm cả bộ */
.b2b-cols__set{display:flex;gap:10px 14px;align-items:center;flex-wrap:wrap;margin:6px 0 18px}
.b2b-cols__set small{color:#6b7768;font-size:13px;flex:1 1 240px}
/* 15/10: Giỏ hàng — voucher dạng nút Dùng */
.b2b-vchips{display:grid;gap:8px;margin:10px 0 4px}
.b2b-vchips__h{font-size:12.5px;font-weight:700;color:#6b7768;text-transform:uppercase;letter-spacing:.04em}
.b2b-vchip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 8px 12px;border:1px dashed #9cc58f;border-radius:10px;background:#f6fbf3;margin:0}
.b2b-vchip span{display:flex;flex-direction:column;min-width:0}
.b2b-vchip b{font-size:14px;color:#22461f}
.b2b-vchip small{font-size:12.5px;color:#6b7768}
.b2b-vchip .btn{flex:none}
/* 15/10: đăng nhập 1 SĐT nhiều nhà hàng → chọn nhà hàng */
.b2b-pick{max-width:520px;margin:0 auto;display:grid;gap:10px}
.b2b-pick__it{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfcfa;cursor:pointer;font:inherit;color:inherit}
.b2b-pick__it:hover,.b2b-pick__it:focus-visible{border-color:var(--green,#3f8e2f);background:#f1f8ec}
.b2b-pick__it b{font-size:15px;color:#1d3a19}
.b2b-pick__it span{font-size:13.5px;color:#3a4439}
.b2b-pick__it small{font-size:12px;color:#6b7768}

/* =====================================================================
   16/10: giao diện sau bản so sánh với Kamereo (inc/b2b/ux4.php)
   ===================================================================== */
/* --- Dòng cam kết dưới nút đặt hàng --- */
.b2b-commit{list-style:none;margin:12px 0 4px;padding:10px 0 0;border-top:1px dashed var(--line);display:grid;gap:7px;font-size:13px;color:var(--muted);line-height:1.4}
.b2b-commit li{display:flex;gap:8px;align-items:flex-start;margin:0}
.b2b-commit .tt-icon{color:var(--green);flex:none;margin-top:1px}
.b2b-commit b{color:var(--ink);font-weight:600}
.cart-summary .b2b-commit,.b2b-sum~.b2b-commit{margin-top:14px}

/* --- Trang sản phẩm: ảnh | thông tin | hộp mua --- */
.single-product .woocommerce-product-gallery__image{background:#f5f8f2;border-radius:18px;overflow:hidden}
.single-product .woocommerce-product-gallery__image img{width:100%!important;max-height:520px;object-fit:contain;mix-blend-mode:multiply;border-radius:0!important}
.tt-buybox{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 18px 14px;box-shadow:0 10px 28px rgba(28,64,28,.07)}
.tt-buybox .price{margin:0 0 4px!important;font-size:30px!important;line-height:1.15}
.tt-buybox .b2b-pbox{margin:10px 0;background:var(--bg-soft)}
.tt-buybox form.cart{display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;gap:10px;margin:12px 0 4px!important;align-items:stretch}
.tt-buybox form.cart .quantity{grid-column:1!important;grid-row:1!important;width:84px!important;float:none!important}
.tt-buybox form.cart .quantity input.qty{width:100%!important}
.tt-buybox form.cart .button{grid-column:2!important;grid-row:1!important;float:none!important}
.tt-buybox form.cart .quantity{margin:0!important}
.tt-buybox form.cart .quantity input.qty{height:48px;text-align:center;font-size:16px}
.tt-buybox form.cart .button{width:100%;height:48px;margin:0!important;justify-content:center}
.tt-buybox .b2b-guestbox,.tt-buybox .tt-lienhe-cta{margin:10px 0 0}
.tt-pinfo .product_title{font-size:clamp(24px,2.2vw,32px);margin:0 0 6px}
.tt-pinfo .woocommerce-product-details__short-description{color:var(--muted);margin:6px 0 10px}
.tt-pinfo .woocommerce-product-details__short-description p{margin:0}
.tt-pinfo .b2b-facts{margin:12px 0 4px}
.tt-pinfo .b2b-facts dl{padding:12px 16px;gap:8px 18px;border-radius:14px}
@media (min-width:1024px){
	.single-product div.product{grid-template-columns:minmax(0,5fr) minmax(0,8fr)!important;gap:32px!important;align-items:start}
	.single-product div.product > .woocommerce-product-gallery{position:sticky!important;top:110px}
	.single-product div.product > .summary{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(300px,340px);grid-template-rows:auto auto 1fr;column-gap:26px;align-items:start}
	.single-product .summary > .tt-pinfo{grid-column:1;grid-row:1;min-width:0}
	.single-product .summary > .tt-buybox{grid-column:2;grid-row:1 / span 3;position:sticky;top:110px}
	.single-product .summary > :not(.tt-pinfo):not(.tt-buybox){grid-column:1;min-width:0}
}
@media (max-width:760px){
	/* điện thoại: ảnh thấp lại, tên + giá + thông tin lên ngay màn hình đầu; nút thêm giỏ đã có ở thanh dính đáy */
	.single-product div.product{gap:6px!important}
	.single-product .woocommerce-product-gallery{margin:0!important}
	.single-product .woocommerce-product-gallery__image img{max-height:180px}
	body.single-product .woocommerce-breadcrumb{margin:0 0 8px!important;font-size:13px}
	body.single-product .shop-layout{padding-top:14px!important}
	.single-product div.product > .summary{display:flex!important;flex-direction:column}
	.single-product .summary > .tt-pinfo,.single-product .summary > .tt-buybox{display:contents}
	.single-product .summary .product_title{order:1;font-size:22px;margin:0 0 2px}
	.single-product .summary .b2b-unitrow--single{order:2;margin:0 0 4px}
	.single-product .summary .price{order:3;font-size:26px!important;margin:2px 0 4px!important}
	.single-product .summary .b2b-facts{order:4;margin:4px 0}
	.single-product .summary .b2b-pbox{order:5;margin:6px 0;font-size:13px}
	.single-product .summary .b2b-badges{order:6}
	.single-product .summary .b2b-pmeta{order:7;margin:4px 0 6px;font-size:13px}
	.single-product .summary .b2b-pmeta .b2b-pfav{padding:4px 10px;font-size:13px}
	.single-product .summary .b2b-guestbox,.single-product .summary .tt-lienhe-cta{order:8}
	.single-product .summary .woocommerce-product-details__short-description{order:9;margin:6px 0}
	.single-product .summary form.cart{order:10}
	.single-product .summary .b2b-commit{order:11}
	.single-product .summary .product_meta{order:12}
	.single-product .summary .tt-quote-cta{order:13}
	body.single-product:has(.b2b-buybar) .summary form.cart{display:none!important}
	.single-product .b2b-facts dl{grid-template-columns:auto 1fr auto 1fr!important;font-size:13px;padding:10px 12px;gap:4px 10px}
}

/* --- Điện thoại: bớt chữ --- */
.b2b-invite__short{display:none}
@media (max-width:760px){
	.b2b-invite{flex-direction:row!important;flex-wrap:wrap;align-items:center!important;gap:8px 10px;padding:10px 12px!important}
	.b2b-invite .b2b-invite__txt{display:none}
	.b2b-invite__short{display:block;flex:1 1 100%;font-size:13.5px;line-height:1.45;color:var(--ink)}
	.b2b-invite__act .btn{padding:7px 12px!important;font-size:13px!important}
	.woocommerce-products-header .term-description{font-size:14px;line-height:1.55;max-height:4.7em;overflow:hidden;position:relative;margin-bottom:2px}
	.woocommerce-products-header .term-description::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.6em;background:linear-gradient(rgba(255,255,255,0),#fff)}
	.woocommerce-products-header .term-description.is-open{max-height:none}
	.woocommerce-products-header .term-description.is-open::after{display:none}
	.woocommerce-products-header .term-description p{margin:0 0 6px}
	.tt-more{background:none;border:0;padding:2px 0;color:var(--green-dark);font:600 13.5px var(--font-body,inherit);cursor:pointer;margin:0 0 10px}
}
@media (max-width:600px){
	body .hero--banner .hero__inner{padding:18px 16px 22px!important;min-height:0!important}
	body .hero--banner .hero__eyebrow{font-size:11.5px;padding:4px 10px}
	body .hero--banner .hero__title{font-size:23px!important;line-height:1.25!important;margin:8px 0 6px!important}
	body .hero--banner .hero__sub{font-size:14px!important;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 12px!important}
	body .hero--banner .hero__cta{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
	body .hero--banner .hero__cta .btn{padding:11px 8px!important;font-size:14px!important;justify-content:center;width:auto!important;margin:0!important;min-width:0}
	body .hero--banner .hero__points{display:flex!important;flex-wrap:wrap;gap:6px;margin:12px 0 0!important;padding:0}
	body .hero--banner .hero__points li{font-size:12px!important;background:rgba(255,255,255,.85);border:1px solid var(--line);border-radius:999px;padding:3px 9px;margin:0!important}
}

body.woocommerce-cart .cart-table{container-type:inline-size}
/* --- Giỏ hàng gọn (như Kamereo): 1 dòng / món, ảnh 52px, giá đơn vị dưới tên, thành tiền trước + sau thuế 1 cột --- */
body.woocommerce-cart .tt-cart-form .cart-row{grid-template-columns:52px minmax(0,1fr) 118px 132px 24px!important;grid-template-areas:"img name qty sub rm" "img price qty sub rm";gap:0 14px!important;padding:10px 16px!important;align-items:center!important}
body.woocommerce-cart .tt-cart-form .cart-row.head{display:grid!important;grid-template-areas:"img name qty sub rm";padding:8px 16px!important;font-size:12px;color:var(--muted);text-transform:none}
body.woocommerce-cart .tt-cart-form .cart-row.head>div:nth-child(1){grid-area:img;visibility:hidden}
body.woocommerce-cart .tt-cart-form .cart-row.head>div:nth-child(2){grid-area:name}
body.woocommerce-cart .tt-cart-form .cart-row.head>div:nth-child(3){display:none}
body.woocommerce-cart .tt-cart-form .cart-row.head>div:nth-child(4){grid-area:qty;text-align:center}
body.woocommerce-cart .tt-cart-form .cart-row.head>div:nth-child(5){grid-area:sub;text-align:right;white-space:nowrap}
body.woocommerce-cart .tt-cart-form .cart-row.head>div:nth-child(6){grid-area:rm}
body.woocommerce-cart .tt-cart-form .cart-row .img{grid-area:img;width:52px!important;align-self:center}
body.woocommerce-cart .tt-cart-form .cart-row .img img{width:52px!important;height:52px!important;max-width:52px!important;border-radius:10px}
body.woocommerce-cart .tt-cart-form .cart-row .pname{grid-area:name;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0;font-size:14px;line-height:1.35;align-self:end}
body.woocommerce-cart .tt-cart-form .cart-row .pname>a{flex:1 1 100%;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.woocommerce-cart .tt-cart-form .cart-row .pname>small{font-size:12px;color:var(--muted)}
body.woocommerce-cart .tt-cart-form .cart-row .pname .row-note-toggle{font-size:12px;padding:1px 8px;margin:0}
body.woocommerce-cart .tt-cart-form .cart-row .price{grid-area:price;font-size:12.5px;color:var(--muted);align-self:start;white-space:nowrap}
body.woocommerce-cart .tt-cart-form .cart-row .price .woocommerce-Price-amount{font-weight:600;color:var(--ink)}
body.woocommerce-cart .tt-cart-form .cart-row .qty-cell{grid-area:qty;justify-self:center}
body.woocommerce-cart .tt-cart-form .cart-row .qty-box button{width:32px!important;height:34px!important}
body.woocommerce-cart .tt-cart-form .cart-row .qty-box input{width:44px!important;height:34px!important}
body.woocommerce-cart .tt-cart-form .cart-row .subtotal{grid-area:sub;text-align:right;font-weight:700;font-size:14.5px;line-height:1.3}
body.woocommerce-cart .tt-cart-form .cart-row .subtotal .row-vat{font-weight:400;font-size:11.5px;white-space:nowrap}
body.woocommerce-cart .tt-cart-form .cart-row .rm{grid-area:rm;justify-self:end;font-size:15px}
body.woocommerce-cart .tt-cart-form .cart-row .row-note-editor{grid-column:1 / -1;margin-top:8px}
@container (max-width:520px){
	body.woocommerce-cart .tt-cart-form .cart-row{grid-template-columns:48px minmax(0,1fr) auto!important;grid-template-areas:"img name name" "img price price" "img qty sub";gap:2px 10px!important;padding:10px 34px 10px 12px!important;position:relative}
	body.woocommerce-cart .tt-cart-form .cart-row .rm{position:absolute;top:8px;right:8px}
	body.woocommerce-cart .tt-cart-form .cart-row .pname .row-note-toggle{white-space:nowrap}
	body.woocommerce-cart .tt-cart-form .cart-row .pname>a{flex:0 1 auto;-webkit-line-clamp:1}
	body.woocommerce-cart .tt-cart-form .cart-row .subtotal{max-width:118px;font-size:14px}
	body.woocommerce-cart .tt-cart-form .cart-row .subtotal .row-vat{font-size:11px!important;line-height:1.3}
	body.woocommerce-cart .tt-cart-form .cart-row .qty-box button{width:28px!important;height:32px!important}
	body.woocommerce-cart .tt-cart-form .cart-row .qty-box input{width:36px!important;height:32px!important}
	body.woocommerce-cart .tt-cart-form .cart-row .subtotal .row-vat{white-space:normal!important}
	body.woocommerce-cart .tt-cart-form .cart-row .subtotal .row-vat br{display:inline!important}
	body.woocommerce-cart .tt-cart-form .cart-row.head{display:none!important}
	body.woocommerce-cart .tt-cart-form .cart-row .img,body.woocommerce-cart .tt-cart-form .cart-row .img img{width:48px!important;height:48px!important;max-width:48px!important;align-self:start}
	body.woocommerce-cart .tt-cart-form .cart-row .pname{align-self:start}
	body.woocommerce-cart .tt-cart-form .cart-row .qty-cell{justify-self:start;margin-top:4px}
	body.woocommerce-cart .tt-cart-form .cart-row .subtotal{align-self:end}
}

/* --- Công nợ: dải 3 số + thẻ trả tiền QR gọn --- */
.b2b-debt2{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
.b2b-debt2__kpis{background:#fff;border:1px solid var(--line);border-radius:16px;gap:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:hidden}
.b2b-debt2__kpis .b2b-kpi2{border:0!important;border-radius:0!important;padding:16px 20px!important;background:transparent}
.b2b-debt2__kpis .b2b-kpi2+.b2b-kpi2{border-left:1px solid var(--line)!important}
.b2b-debt2__kpis .b2b-kpi2.is-main{background:#fff8ec}
.b2b-debt2__qr{max-width:none!important;display:grid!important;grid-template-columns:150px minmax(0,1fr);gap:20px!important;align-items:center!important;padding:16px 20px!important;border-radius:16px!important}
.b2b-debt2__qr img{width:150px!important;height:150px!important}
.b2b-debt2__qr>div{gap:4px!important;min-width:0;font-size:13.5px!important}
.b2b-debt2__qr>div>b{font-size:15px}
.b2b-debt2__qr>div>small{color:var(--muted);font-size:12.5px}
.b2b-debt2 .b2b-copyl{grid-template-columns:96px minmax(0,1fr)!important;gap:8px 12px!important;margin:8px 0 0!important;border-top:1px solid var(--line);padding-top:8px}
.b2b-debt2 .b2b-copyl dd{flex-wrap:nowrap!important;justify-content:space-between;gap:10px!important;min-width:0}
.b2b-debt2 .b2b-copyl dd code{white-space:normal;word-break:break-all;font-size:13.5px!important;background:none!important;padding:0!important;font-weight:600;color:var(--ink)}
.b2b-debt2 .b2b-copyl dd small{display:none}
.b2b-debt2 .b2b-copy{flex:none}
@media (max-width:640px){
	.b2b-debt2__kpis{grid-template-columns:1fr 1fr!important}
	.b2b-debt2__kpis .b2b-kpi2.is-main{grid-column:1 / -1}
	.b2b-debt2__kpis .b2b-kpi2:nth-child(2){border-left:0!important}
	.b2b-debt2__kpis .b2b-kpi2+.b2b-kpi2{border-top:1px solid var(--line)!important}
	.b2b-debt2__kpis .b2b-kpi2{padding:12px 14px!important}
	.b2b-debt2__kpis .b2b-kpi2 b{font-size:17px!important;white-space:nowrap}
	.b2b-debt2__kpis .b2b-kpi2.is-main b{font-size:24px!important}
	.b2b-debt2__qr{grid-template-columns:1fr!important;justify-items:center;text-align:center;gap:10px!important}
	.b2b-debt2__qr img{width:132px!important;height:132px!important}
	.b2b-debt2 .b2b-copyl{text-align:left;width:100%}
}

/* --- Đặt nhanh: thanh công cụ + chip món hay đặt --- */
.b2b-qo__tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.b2b-qo__tool{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 13px;font:500 13.5px var(--font-body,inherit);color:var(--ink);cursor:pointer;max-width:100%}
.b2b-qo__tool:hover{border-color:var(--green);color:var(--green-dark)}
.b2b-qo__tool svg{color:var(--green);flex:none}
.b2b-qo__tool.is-on{background:#fdecec;border-color:#f3b4b4;color:#a12a2a}
.b2b-qo__tool.is-ghost{border-style:dashed;color:var(--muted)}
select.b2b-qo__old{appearance:auto;padding-right:10px;min-width:0}
.b2b-qo__chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 4px;align-items:center}
.b2b-qo__chips small{flex:1 1 100%;color:var(--muted);font-size:12.5px}
.b2b-qo__chips button{border:1px solid #d6ead0;background:var(--green-50,#f1f8ec);border-radius:999px;padding:5px 11px;font:500 13px var(--font-body,inherit);color:var(--ink);cursor:pointer}
.b2b-qo__chips button em{font-style:normal;color:var(--muted);font-size:12px}
.b2b-qo__chips button.is-on{background:var(--green);border-color:var(--green);color:#fff}
.b2b-qo__chips button.is-on em{color:#e9f5e4}
@media (max-width:760px){
	body.woocommerce-cart .entry-title{font-size:24px!important;margin:6px 0 10px!important}
	body.woocommerce-cart .b2b-moq{padding:10px 12px!important;font-size:13px}
	body.woocommerce-cart .b2b-moq__msg,body.woocommerce-cart .b2b-moq__lab{font-size:13px!important}
	body.woocommerce-cart .b2b-moq__top{gap:2px 8px;flex-wrap:wrap}
	body.woocommerce-cart .tt-mo-notice-wrap{margin-bottom:10px}
}
