/* Mua chung (trang chính, chi tiết chương trình, tạo nhóm) + gợi ý nhóm ở Xác nhận thông tin + thẻ nhắc ở giỏ hàng/cảm ơn. */
.mc { max-width: 560px; margin: 0 auto; padding-bottom: 12px; }
.mc .tgg-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Banner + 3 lợi ích */
.mc-hero { position: relative; display: flex; align-items: center; min-height: 150px; margin: 0 calc(var(--tgg-gutter) * -1); padding: 18px var(--tgg-gutter) 52px; background: linear-gradient(120deg, #0d4a26, #1a6b3a 60%, #2b8a4a); color: #fff; overflow: hidden; }
.mc-hero .tx { position: relative; z-index: 1; max-width: 66%; }
.mc-hero h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.75rem; white-space: nowrap; font-weight: 800; color: #fff; line-height: 1.1; }
.mc-hero h2 .tgg-i { width: 32px; height: 32px; stroke: #ffd24a; fill: #ffd24a; fill-opacity: .25; }
.mc-hero p { margin: 0; font-size: .92rem; line-height: 1.35; font-weight: 500; }
.mc-hero img { position: absolute; right: -26px; top: 0; height: 100%; width: 52%; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 38%); -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); }
.mc-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 16px; box-shadow: var(--tgg-shadow); margin: -34px 0 14px; padding: 10px 6px; }
.mc-strip > div { display: flex; align-items: center; gap: 6px; padding: 4px 6px; font-size: 11.5px; line-height: 1.25; font-weight: 600; border-left: 1px solid var(--tgg-line); }
.mc-strip > div:first-child { border-left: 0; }
.mc-strip .tgg-i { width: 22px; height: 22px; stroke: var(--tgg-green); }

/* Nút Nhóm gần bạn / Tạo nhóm mới */
.mc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.mc-act { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: 12px; background: #eef1ec; color: var(--tgg-green-dark); font-weight: 700; font-size: 1rem; font-family: inherit; cursor: pointer; }
.mc-act.on { background: var(--tgg-green); color: #fff; }
.mc-act:not(.on) .tgg-i { stroke: var(--tgg-green); }
.mc-loc { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; font-size: 14px; }
.mc-loc .tgg-i { width: 20px; height: 20px; stroke: var(--tgg-green); fill: var(--tgg-green); fill-opacity: .15; }
.mc-loc > span { flex: 1; min-width: 0; }
.mc-loc b { font-weight: 600; }
.mc-loc a { color: var(--tgg-green); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.mc-tabs .tgg-tab { font-size: 1rem; }

/* Thẻ nhóm */
.mc-card { position: relative; background: #fff; border: 1px solid var(--tgg-line); border-radius: 16px; box-shadow: var(--tgg-shadow); padding: 12px; margin: 0 0 14px; }
.mc-ribbon { position: absolute; left: -6px; top: -8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: var(--tgg-orange); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 6px 6px 6px 0; }
.mc-ribbon .tgg-i { width: 14px; height: 14px; stroke: #ffd24a; fill: #ffd24a; }
.mc-card-top { display: flex; gap: 12px; }
.mc-card-top img, .mc-card-top .ph { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; background: var(--tgg-cream-2); }
.mc-card-top img { display: block; }
.mc-card-top .ph { display: grid; place-items: center; }
.mc-card-top .ph .tgg-i { stroke: var(--tgg-green); width: 36px; height: 36px; }
.mc-card-top .info { flex: 1; min-width: 0; }
.mc-card-top .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mc-card-top h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; font-weight: 800; }
.mc-chip { white-space: nowrap; background: #e1f3e3; color: #1d7a36; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.mc-chip.warn { background: #ffe9cf; color: #a35400; }
.mc-card-top .ln { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; }
.mc-card-top .ln .tgg-i { width: 18px; height: 18px; stroke: var(--tgg-green); }
.mc-card-top .ln.blue { color: #0b5cad; font-weight: 800; font-size: 1.02rem; }
.mc-card-top .ln.blue .tgg-i { stroke: #0b5cad; }

/* Thanh bậc ưu đãi */
.mc-tiers { margin: 12px 4px 2px; padding-top: 6px; }
.mc-tiers.has { padding-top: 22px; }
.mc-track { position: relative; height: 22px; }
.mc-track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-radius: 4px; background: #e2e5e0; }
.mc-track > i { position: absolute; left: 0; top: 9px; height: 5px; border-radius: 4px; background: #38a64f; }
.mc-track > b { position: absolute; top: 0; transform: translateX(-50%); min-width: 38px; text-align: center; font-size: 12.5px; font-weight: 700; background: #eceee9; color: #444; border-radius: 99px; padding: 1px 6px; }
.mc-track > b.on { background: #38a64f; color: #fff; }
.mc-track .dot { position: absolute; top: 5px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #38a64f; border: 3px solid #fff; box-shadow: 0 0 0 2px #38a64f; z-index: 2; }
.mc-track .bub { position: absolute; top: -22px; transform: translateX(-50%); background: #2f9a47; color: #fff; font-size: 12.5px; font-weight: 800; border-radius: 99px; padding: 1px 10px; z-index: 3; }
.mc-track .bub::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-top-color: #2f9a47; border-bottom: 0; }
.mc-subs { position: relative; height: 18px; margin-top: 2px; }
.mc-subs small { position: absolute; transform: translateX(-50%); font-size: 11.5px; color: var(--tgg-muted); white-space: nowrap; }
.mc-count { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.mc-count .tgg-i { width: 20px; height: 20px; stroke: #e5391d; }
.mc-count i { width: 1px; height: 16px; background: var(--tgg-line); margin: 0 4px; }
.mc-count b.red { color: var(--tgg-red); }
.mc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; padding: 8px 10px; background: #fdecec; border-radius: 12px; }
.mc-foot .left { flex: 1 1 130px; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; }
.mc-foot .left .tgg-i { stroke: var(--tgg-red); width: 22px; height: 22px; }
.mc-foot .left b { color: var(--tgg-red); font-weight: 800; }
.mc-foot .left small { color: var(--tgg-muted); font-size: 12px; }
.mc-foot .left.warn b { color: #c42d14; }
.mc-join { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; flex: 0 0 auto; border: 0; border-radius: 10px; background: var(--tgg-red); color: #fff; font-weight: 700; font-size: 14.5px; font-family: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; }
.mc-join:hover { background: var(--tgg-red-dark); color: #fff; }
.mc-join .tgg-i { width: 18px; height: 18px; stroke: #fff; }
.mc-foot2 { display: flex; gap: 10px; margin-top: 10px; }
.mc-foot2 > * { flex: 1; }
.mc-btn-o { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--tgg-green); border-radius: 10px; background: #fff; color: var(--tgg-green); font-weight: 700; font-size: 14.5px; font-family: inherit; cursor: pointer; }
.mc-mine > b { display: block; margin: 4px 0 8px; }

/* Chưa có nhóm + liên kết */
.mc-none { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff8e3; border: 1.5px solid #f3d98c; border-radius: 16px; padding: 12px; margin: 4px 0 12px; }
.mc-none > .tgg-i { width: 46px; height: 46px; stroke: var(--tgg-green); }
.mc-none div { flex: 1; min-width: 150px; }
.mc-none h3 { margin: 0 0 4px; font-size: 1.05rem; }
.mc-none p { margin: 0; font-size: 12.5px; line-height: 1.35; }
.mc-none .mc-btn-o { border-color: var(--tgg-green); }
.mc-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; margin: 0 0 8px; border: 1.5px solid #ead9a5; border-radius: 12px; background: #fff; color: var(--tgg-green-dark); text-decoration: none; font-weight: 700; }
.mc-row.on { border-color: var(--tgg-orange); }
.mc-row b { flex: 1; font-weight: 700; }
.mc-row .tgg-i { stroke: var(--tgg-green); }
.mc-ctv { display: flex; gap: 12px; background: #fff3d6; border: 1.5px solid #f0c667; border-radius: 16px; padding: 14px; margin: 0 0 14px; }
.mc-ctv > .tgg-i { stroke: #b87400; width: 30px; height: 30px; }
.mc-ctv h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mc-ctv p { margin: 0 0 10px; font-size: 14px; }

/* Chi tiết chương trình */
.mc-prog { padding-top: 4px; }
.mc-hero2 { position: relative; display: flex; align-items: center; gap: 12px; overflow: hidden; background: linear-gradient(100deg, #dff1dc, #eef8ea); border-radius: 16px; padding: 16px; margin: 0 0 14px; min-height: 96px; }
.mc-hero2 .ico { width: 52px; height: 52px; display: grid; place-items: center; }
.mc-hero2 .ico .tgg-i { width: 48px; height: 48px; stroke: #2f9a47; fill: #2f9a47; fill-opacity: .2; }
.mc-hero2 h2 { margin: 0; font-size: 1.9rem; font-weight: 800; color: #1a6b3a; line-height: 1.1; }
.mc-hero2 p { margin: 2px 0 0; color: #1a6b3a; font-weight: 700; }
.mc-hero2 img { position: absolute; right: -10px; top: 0; height: 100%; width: 28%; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 40%); -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); }
.mc-sec { background: #fff; border: 1px solid var(--tgg-line); border-radius: 14px; box-shadow: var(--tgg-shadow); padding: 12px 14px; margin: 0 0 12px; }
.mc-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.1rem; font-weight: 800; }
.mc-sec h3 .tgg-i { stroke: var(--tgg-green); width: 24px; height: 24px; }
.mc-sec h3 small { font-weight: 500; color: var(--tgg-muted); font-size: 12.5px; }
.mc-ben { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: 13px; font-weight: 600; }
.mc-ben > div { display: flex; flex-direction: column; align-items: center; gap: 6px; border-left: 1px solid var(--tgg-line); padding: 2px 4px; }
.mc-ben > div:first-child { border-left: 0; }
.mc-ben .ic { width: 46px; height: 46px; border-radius: 50%; background: #fff3e6; display: grid; place-items: center; }
.mc-ben .ic .tgg-i { stroke: var(--tgg-orange); width: 26px; height: 26px; }
.mc-rules { list-style: none; margin: 0; padding: 0; }
.mc-rules li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 14.5px; line-height: 1.4; }
.mc-rules .tgg-i { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: #2f9a47; stroke: #fff; stroke-width: 3; margin-top: 1px; }
.mc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.mc-steps li { position: relative; background: #f3f6f1; border-radius: 14px; padding: 12px 6px 10px; font-size: 13px; }
.mc-steps .n { position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--tgg-green); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.mc-steps .ic { display: block; margin: 6px auto 4px; }
.mc-steps .ic .tgg-i { width: 34px; height: 34px; stroke: var(--tgg-green); }
.mc-steps b, .mc-steps small { display: block; }
.mc-steps small { color: var(--tgg-muted); }
.mc-tierlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; text-align: center; }
.mc-tierlist > div { background: #f3f6f1; border-radius: 12px; padding: 8px 4px; }
.mc-tierlist b { display: block; color: var(--tgg-red); font-size: .95rem; }
.mc-tierlist small { display: block; color: var(--tgg-muted); font-size: 12px; }
.mc-note { background: #f5f8f3; }
.mc-note ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.mc-note li { margin: 3px 0; }

/* Gợi ý nhóm ở Xác nhận thông tin */
.tgg-goffer { border-left: 4px solid var(--tgg-orange); }
.tgg-goffer[hidden] { display: none; }
.tgg-goffer h3 { margin: 0 0 4px; font-size: 1.02rem; }
.tgg-goffer h4 { margin: 12px 0 6px; font-size: .95rem; }
.tgg-goffer-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: #fff; border: 1.5px solid var(--tgg-line); border-radius: 12px; padding: 10px; margin: 0 0 8px; }
.tgg-goffer-card.on { border-color: var(--tgg-green); background: #f1f8ef; }
.tgg-goffer-card .tx { flex: 1 1 100%; min-width: 0; font-size: 13px; }
.tgg-goffer-card .tx b { display: block; font-size: .95rem; }
.tgg-goffer-card .tx span { display: block; color: var(--tgg-muted); }
.tgg-goffer-card .tx b.red { display: inline; color: var(--tgg-red); }
.tgg-goffer-card .tgg-btn { flex: 1 1 100%; min-height: 40px; padding: 0 12px; font-size: 14px; }
.tgg-goffer-new { display: block; }
.tgg-goffer-new .tgg-check { display: flex; gap: 10px; align-items: flex-start; }
.tgg-goffer-new .tgg-check small { display: block; color: var(--tgg-muted); }
.tgg-goffer-new input[type=text] { width: 100%; margin-top: 6px; }
.tgg-gsum, .tgg-gthanks { border-left: 4px solid var(--tgg-green); }
.tgg-gsum h3, .tgg-gthanks h3 { margin: 0 0 6px; font-size: 1.02rem; }
.tgg-gsum p, .tgg-gthanks p { margin: 0 0 8px; font-size: 14px; }

/* Thẻ nhắc Mua chung ở giỏ hàng */
.tgg-mc-promo { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px; border-radius: 14px; background: linear-gradient(100deg, #e4f3e1, #f3faf0); border: 1.5px solid #bfe0b8; color: var(--tgg-green-dark); text-decoration: none; }
.tgg-mc-promo .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--tgg-green); display: grid; place-items: center; flex: none; }
.tgg-mc-promo .ic svg { stroke: #fff; width: 24px; height: 24px; }
.tgg-mc-promo .tx { flex: 1; font-size: 13px; }
.tgg-mc-promo .tx b { display: block; font-size: .98rem; }
.tgg-mc-promo .tx small { color: var(--tgg-text); }
.tgg-mc-promo > svg { stroke: var(--tgg-green); width: 22px; height: 22px; flex: none; }

@media (min-width: 900px) { .mc-hero { margin: 0; border-radius: 16px; } }

/* Danh sách nhóm luôn hiển thị (nhóm đang mở gần-xa + nhóm đã từng mua chung) */
.mc-listhead { margin: 14px 0 8px; font-size: 1.05rem; }
.mc-subhead { margin: 18px 0 8px; font-size: .95rem; color: var(--tgg-muted); font-weight: 700; }
.mc-far { flex: 0 0 auto; font-size: 12.5px; color: var(--tgg-muted); font-weight: 600; text-align: right; }
.mc-card.past { opacity: .85; }
.mc-mine .tgg-hint { margin: 8px 0 0; }
/* Xác nhận thông tin: vị trí đã chọn ở trang Mua chung */
.tgg-gsel { border-left: 4px solid var(--tgg-green); }
.tgg-gsel h3 { margin: 0 0 6px; font-size: 1.02rem; }
.tgg-gsel p { margin: 0 0 6px; font-size: 14px; }
.tgg-poslock { margin: 0 0 8px; font-size: 14px; }
.tgg-poslock a { font-weight: 700; color: var(--tgg-red); margin-left: 6px; }
/* Máy tính: trang Mua chung rộng 2 cột (trái chọn vị trí + bản đồ, phải danh sách nhóm); các bước còn lại giữ cột vừa phải */
@media (min-width: 1000px) {
	#tgg-group-app .mc:has(.mc-cols) { max-width: 1100px; }
	#tgg-group-app .mc:has(.mc-cols) .mc-hero { margin: 0; }
	.mc-cols .mc-actions { margin-top: 0; }
	.mc-cols .mc-act { white-space: nowrap; }
	.mc-right #gp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
	.mc-right #gp-list > * { margin: 0; }
}