/* ===== LOT-HOME-NOSCROLL + 7SP (20261104ns1) — BẢN NHÁP, CHƯA LIVE =====
   Mục tiêu: Home vừa 1 màn điện thoại (390×700 / 390×844) không cuộn dọc.
   Scope: chỉ #twm-app.tw-home02 (Home). Load SAU money.css + partner-strip.css.
   Không khóa overflow: nếu người dùng phóng chữ lớn, trang vẫn cuộn được (a11y). */
.tw-home02{--ns-nav:var(--twm-nav-h,64px)}
/* A header gọn */
.tw-home02 .twm-top-in{min-height:52px;padding:4px 14px}
/* main: bỏ khoảng trống đáy cho CTA dính (Home không có) */
.tw-home02 .twm-main{padding:4px 12px calc(var(--ns-nav) + 6px + env(safe-area-inset-bottom))}
.tw-home02 .twm-main>:last-child{scroll-margin-bottom:0}
.tw-home02 .tw5{gap:8px}

/* B hero mỏng: 1 banner ~108px, mô tả ẩn, điều khiển carousel đè trong banner */
.tw-home02 .tw5-hero{position:relative}
.tw-home02 .tw5-slide .tw5-ban,.tw-home02 .tw5-ban.b00{min-height:108px}
.tw-home02 .tw5-ban.b00{padding:10px 10px 10px 14px}
.tw-home02 .tw5-ban.b00 h2{font-size:clamp(17px,4.8vw,20px);margin:0 0 6px}
.tw-home02 .tw5-ban.b00 .d,.tw-home02 .tw5-slide .tw5-ban .d,.tw-home02 .tw5-slide .tw5-ban .ch{display:none}
.tw-home02 .tw5-ban.b00 .h2-x{min-height:40px;font-size:14px;padding:0 10px 0 14px}
.tw-home02 .tw5-slide .tw5-ban:not(.b00){padding-top:8px;padding-bottom:8px}
.tw-home02 .tw5-slide .tw5-ban h2{font-size:15px}
.tw-home02 .tw5-ctl{position:absolute;left:0;right:12%;bottom:2px;margin:0;gap:2px;pointer-events:none;flex-wrap:nowrap;min-height:0}
.tw-home02 .tw5-ctl>*{pointer-events:auto}
.tw-home02 .tw5-ctl .tw5-arw:not(.pp){display:none}
.tw-home02 .tw5-ctl .tw5-arw.pp{min-height:28px;min-width:28px;font-size:11px;opacity:.8}

/* C tỷ giá 1 hàng */
.tw-home02 .tw5-rate{padding:8px 10px;gap:8px;border-radius:16px}
.tw-home02 .h2-ri{width:34px;height:34px}
.tw-home02 .h2-ri svg{width:22px;height:auto}
.tw-home02 .tw5-rate h2{font-size:11.5px}
.tw-home02 .tw5-rate .pair{margin:0;font-size:13px}
.tw-home02 .tw5-rate .pair b{font-size:16px}
.tw-home02 .tw5-rate .pair strong{font-size:13px}
.tw-home02 .tw5-rate .src{font-size:11px;display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tw-home02 .tw5-rate .y3-retry{min-height:32px;padding:0 10px;margin:0;font-size:12px}
.tw-home02 .tw5-send{min-height:44px;font-size:16px;border-radius:14px}

/* D dịch vụ 2×3 thấp (icon + nhãn) */
.tw-home02 .tw5-svc{margin-top:0}
.tw-home02 .tw5-svc ul{gap:6px}
.tw-home02 .tw5-svc a{min-height:58px;flex-direction:row;justify-content:flex-start;gap:6px;padding:6px 6px;border-radius:14px;font-size:12.5px;text-align:left}
.tw-home02 .tw5-svc .ic{width:34px;height:34px;border-radius:11px;flex:none}
.tw-home02 .tw5-svc .ic svg{width:24px;height:24px}
.tw-home02 .tw5-svc .lb{line-height:1.15}

/* E «Mua sắm tại TW PAY» + badge «Sản phẩm TW PAY (7)» + 1 hàng mini-card cuộn ngang */
.tw-home02 .h2-prod{padding:4px 0 6px;border-radius:16px}
.tw-home02 .h2-prod .tw5-hd{padding:0 6px 0 12px}
.tw-home02 .h2-prod .tw5-hd h2{font-size:15px;font-weight:900}
.tw-home02 .h2-prod .tw5-hd a{min-height:36px;font-size:13px}
.tw-home02 .h2-badge{display:inline-flex;align-items:center;gap:5px;margin:0 0 2px 12px;padding:2px 10px 2px 8px;border-radius:999px;background:#f1edff;color:var(--home02-violet,#5b2bd9);font-size:12px;font-weight:800}
.tw-home02 .h2-badge svg{width:14px;height:14px}
.tw-home02 .h2-row{gap:8px;padding:4px 12px 4px}
.tw-home02 .h2-row>li{flex:0 0 92px}
.tw-home02 .h2-pc{padding:5px;border-radius:12px}
.tw-home02 .h2-pc .im{border-radius:9px;aspect-ratio:auto;height:58px}
.tw-home02 .h2-pc .nm{-webkit-line-clamp:1;min-height:0;margin:4px 0 2px;font-size:11.5px}
.tw-home02 .h2-pc .pr{font-size:12px}
.tw-home02 .h2-pc .cart{display:none}

/* F đối tác: 1 hàng logo chip (giống target-logo-strip-user.png) */
.tw-home02 .twp-partners{margin:0;padding:6px 8px 6px 12px;border-radius:16px;display:flex;align-items:center;gap:8px}
.tw-home02 .twp-partners__head{margin:0;flex:none}
.tw-home02 .twp-partners__title{font-size:13px;white-space:nowrap}
.tw-home02 .twp-partners__sub,.tw-home02 .twp-partners__badge,.tw-home02 .twp-partners__note,
.tw-home02 .twp-partners__name,.tw-home02 .twp-partners__cat{display:none}
.tw-home02 .twp-partners__list{flex:1;min-width:0;gap:6px;padding:2px}
.tw-home02 .twp-partners__item{flex:0 0 auto}
.tw-home02 .twp-partners__link{padding:0;border-radius:10px;min-height:44px;justify-content:center}
.tw-home02 .twp-partners__logo{width:72px;height:40px}

/* G hàng ngôn ngữ + liên hệ: bỏ khỏi Home (đã có VI ▾ ở header; liên hệ ở Hỗ trợ) */
.tw-home02 .tw5-e{display:none}

/* ---- vòng 2: siết theo đo 390×700 ---- */
.tw-home02 .tw5-slide .tw5-ban{height:104px;min-height:0;overflow:hidden;box-sizing:border-box}
.tw-home02 .tw5-slide .tw5-ban .k{margin-bottom:0;font-size:10.5px}
.tw-home02 .tw5-slide .tw5-ban:not(.b00) h2{font-size:14px;margin-bottom:4px}
.tw-home02 .tw5-slide .tw5-ban:not(.b00) .vis{max-height:84px}
.tw-home02 .tw5-ctl{left:auto;right:13%;bottom:4px}
.tw-home02 .tw5-dots button{min-width:20px;min-height:20px}
/* tỷ giá: tiêu đề chỉ cho trình đọc màn hình; thông báo + Thử lại cùng 1 dòng */
.tw-home02 .tw5-rate .rb{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:2px;min-width:0}
.tw-home02 .tw5-rate .rb h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tw-home02 .tw5-rate .pair{flex-basis:100%}
.tw-home02 .tw5-rate .src{flex:1 1 0;min-width:0}
.tw-home02 .tw5-rate .y3-retry{flex:none;min-height:30px;padding:0 8px;font-size:11.5px}
/* SP: header + badge sát nhau */
.tw-home02 .h2-prod .tw5-hd{min-height:32px}
.tw-home02 .h2-prod .tw5-hd a{min-height:32px}
.tw-home02 .h2-badge{margin-bottom:0}
.tw-home02 .h2-pc .im{height:50px}
.tw-home02 .h2-row{padding-top:3px;padding-bottom:2px}

/* Safari có thanh công cụ (~660–690px): hero 86px, ô dịch vụ 52px */
@media (max-height:690px) and (max-width:767px){
 .tw-home02 .tw5-slide .tw5-ban{height:86px}
 .tw-home02 .tw5-ban.b00 h2{font-size:16px;margin-bottom:4px}
 .tw-home02 .tw5-ban.b00 .h2-x{min-height:36px;font-size:13px}
 .tw-home02 .tw5-svc a{min-height:52px}
}
/* Màn thấp: ẩn hero (giữ tỷ giá + CTA lên đầu) */
@media (max-height:640px) and (max-width:767px){
 .tw-home02 .tw5-a{display:none}
}
/* Màn rất thấp: bỏ badge SP */
@media (max-height:560px) and (max-width:767px){.tw-home02 .h2-badge{display:none}}
/* Desktop giữ bố cục cũ của partner strip */
@media (min-width:768px){
 .tw-home02 .twp-partners{display:block;padding:16px 20px}
 .tw-home02 .twp-partners__head{margin-bottom:10px}
 .tw-home02 .tw5-e{display:block}
}
