/* Migen Deals 1.7.8 · banner sale (inc/banner.php). Mẫu: du-lieu/wp/2026-11-26_banner-sale/preview-banner.html.
   Owner 2026-11-26: nút "Xanh sáng chữ đen (cũ)" #22C55E / #05080F, chữ nút 600; đếm ngược "Ends in" = chip d / h / m / s. */
.mgsb-wrap{container-type:inline-size;margin:24px 0;clear:both}
.mgsb-wrap[hidden],.mgsb [hidden]{display:none!important}
.mgsb,.mgsb *{box-sizing:border-box}
.mgsb{font-family:inherit;line-height:1.4}
.mgsb p{margin:0!important;padding:0}
.mgsb a{text-decoration:none!important;box-shadow:none}
.mgsb a.mgsb-cta{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:11px 22px;border-radius:999px;background:#22C55E;color:#05080F!important;font-weight:600;font-size:15px;line-height:1.2;white-space:nowrap;max-width:100%}
.mgsb a.mgsb-cta:hover{background:#4ADE80;color:#05080F!important}
.mgsb a:focus-visible,.mgsb button:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 5px #0B1628}
.mgsb a.mgsb-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:999px;border:1.5px solid rgba(255,255,255,.75);color:#fff!important;font-weight:600;font-size:14px}
.mgsb a.mgsb-ghost:hover{background:rgba(255,255,255,.1)}
.mgsb a.mgsb-link{color:#4ADE80!important;font-weight:600;text-decoration:underline!important;text-underline-offset:2px;white-space:nowrap}
.mgsb-tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;line-height:1.4}
.mgsb-pill{display:inline-flex;align-items:center;gap:8px;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;line-height:1.4}

/* Chip đếm ngược */
.mgsb-cdc{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;vertical-align:middle;font-variant-numeric:tabular-nums}
.mgsb-cdc-l{font-size:12px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:#CBD5E1;margin-right:2px}
.mgsb-cdc-c{display:inline-flex;align-items:baseline;justify-content:center;gap:2px;min-width:38px;padding:3px 7px;border-radius:7px;font-size:14px;font-weight:600;line-height:1.25;white-space:nowrap;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.26);color:#fff}
.mgsb-cdc-c small{font-size:11px;font-weight:500;color:#CBD5E1}
.mgsb-cdw{margin-top:8px}

/* E · đếm ngược lớn */
.mgsb-cd{display:flex;gap:8px;align-items:center;font-variant-numeric:tabular-nums}
.mgsb-cd span{display:flex;flex-direction:column;align-items:center;min-width:56px;padding:7px 6px;border-radius:10px;background:#fff;color:#05080F;font-weight:800;font-size:22px;line-height:1}
.mgsb-cd small{font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#374151;margin-top:4px}
.mgsb-cd i{font-style:normal;font-weight:800;color:#fff}
.mgsb-e{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:10px;padding:26px 28px;border-radius:18px;background:radial-gradient(120% 140% at 85% 50%,#123524 0%,#0B1628 45%,#05080F 100%);color:#fff;overflow:hidden}
.mgsb-e .mgsb-pill{background:rgba(255,255,255,.12);color:#fff;margin-bottom:10px}
.mgsb-e .mgsb-h{font-size:34px;line-height:1.12;font-weight:900;margin:14px 0 8px!important;color:#fff}
.mgsb-e .mgsb-h b{color:#4ADE80}
.mgsb-e .mgsb-sub{font-size:15px;color:#CBD5E1;margin:0 0 16px!important}
.mgsb-e .mgsb-fine{font-size:12px;color:#94A3B8;margin:12px 0 0!important}
.mgsb-e .mgsb-art{font-size:190px;line-height:.8;font-weight:900;text-align:center;color:transparent;-webkit-text-stroke:3px #4ADE80;text-shadow:0 0 40px rgba(74,222,128,.35);user-select:none}

/* F · sticker */
.mgsb-f{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;border-radius:18px;background:#05080F;color:#fff;overflow:hidden}
.mgsb-f .mgsb-kick{color:#4ADE80;font-weight:700;font-size:15px}
.mgsb-f .mgsb-h{font-size:30px;line-height:1.15;font-weight:900;margin:6px 0 4px!important;color:#fff}
.mgsb-f .mgsb-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.mgsb-f .mgsb-stk{position:relative;flex:0 0 auto;transform:rotate(-8deg);padding:18px 26px;margin:26px 26px 0 0;border:4px solid #22C55E;border-radius:18px;text-align:center;font-weight:900;font-size:34px;line-height:.95;letter-spacing:1px;color:#fff;box-shadow:0 0 0 6px #05080F,0 0 0 8px rgba(34,197,94,.35)}
.mgsb-f .mgsb-stk em{display:block;font-style:normal;color:#4ADE80}
.mgsb-f .mgsb-badge{position:absolute;top:-26px;right:-26px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:78px;height:78px;border-radius:50%;background:#22C55E;color:#05080F;font-size:22px;line-height:1;transform:rotate(14deg)}
.mgsb-f .mgsb-badge small{font-size:12px;font-weight:900}

/* H · giữa trang */
.mgsb-h2{padding:30px 22px;border-radius:18px;text-align:center;color:#fff;background:linear-gradient(135deg,#0B1628 0%,#123524 100%)}
.mgsb-h2 .mgsb-pill{background:#22C55E;color:#05080F}
.mgsb-h2 .mgsb-cdw{display:flex;justify-content:center;margin-top:12px}
.mgsb-h2 .mgsb-cdc{justify-content:center}
.mgsb-h2 .mgsb-h{font-size:36px;line-height:1.1;font-weight:900;margin:14px 0 6px!important;color:#fff}
.mgsb-h2 .mgsb-sub{font-size:16px;color:#CBD5E1;margin:0 auto 16px!important;max-width:560px}

/* A · dải tối */
.mgsb-a{display:flex;align-items:center;gap:18px;padding:18px 22px;border-radius:16px;background:linear-gradient(110deg,#05080F 0%,#0B1628 55%,#123524 100%);color:#fff}
.mgsb-a .mgsb-tag{background:#22C55E;color:#05080F}
.mgsb-a .mgsb-main{flex:1;min-width:0}
.mgsb-a .mgsb-h{font-size:26px;line-height:1.2;font-weight:800;margin:6px 0 4px!important;color:#fff}
.mgsb-a .mgsb-h b{color:#4ADE80}
.mgsb-a .mgsb-sub{font-size:14px;color:#CBD5E1}

/* B · thẻ sáng, số to */
.mgsb-b{display:flex;align-items:stretch;border:1px solid #CFD8E6;border-radius:16px;overflow:hidden;background:#fff;color:#1F2937}
.mgsb-b .mgsb-big{flex:0 0 150px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#0B1628;color:#fff;padding:14px 10px;text-align:center}
.mgsb-b .mgsb-big small{font-size:12px;font-weight:800;letter-spacing:.8px;color:#4ADE80}
.mgsb-b .mgsb-big strong{font-size:44px;line-height:1;font-weight:900;color:#fff}
.mgsb-b .mgsb-main{flex:1;min-width:0;padding:14px 18px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.mgsb-b .mgsb-tag{background:#0B1628;color:#fff;align-self:flex-start}
.mgsb-b .mgsb-h{font-size:20px;font-weight:800;color:#0B1628}
.mgsb-b .mgsb-sub{font-size:14px;color:#374151}
.mgsb-b .mgsb-act{display:flex;align-items:center;padding:14px 18px}
.mgsb-b .mgsb-cdc-l{color:#0B1628}
.mgsb-b .mgsb-cdc-c{background:#0B1628;border-color:#0B1628}

/* C · thanh mỏng */
.mgsb-c{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:9px 14px;border-radius:12px;background:#0B1628;color:#fff;font-size:15px}
.mgsb-c .mgsb-tag{background:#22C55E;color:#05080F}
.mgsb-c b{color:#4ADE80}
.mgsb-c .mgsb-sub{color:#CBD5E1;font-size:14px}
.mgsb-c a.mgsb-link{margin-left:auto}

/* D · nhiều hãng */
.mgsb-d{border-radius:16px;padding:18px;background:linear-gradient(110deg,#05080F 0%,#0B1628 60%,#123524 100%);color:#fff}
.mgsb-d .mgsb-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.mgsb-d .mgsb-tag{background:#22C55E;color:#05080F}
.mgsb-d .mgsb-h{font-size:20px;font-weight:800;color:#fff}
.mgsb-d .mgsb-top a.mgsb-link{margin-left:auto;font-size:15px}
.mgsb-d .mgsb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mgsb-d .mgsb-tile{display:flex;flex-direction:column;gap:2px;padding:12px;min-width:0;overflow-wrap:anywhere;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);color:#fff!important}
.mgsb-d a.mgsb-tile:hover{background:rgba(255,255,255,.13)}
.mgsb-d .mgsb-b1{font-weight:700;font-size:15px}
.mgsb-d .mgsb-b2{font-size:22px;font-weight:600;color:#4ADE80;line-height:1.1}
.mgsb-d .mgsb-b3{font-size:13px;color:#CBD5E1}

/* G · dải đầu trang */
.mgsb-gwrap{margin:0}
.mgsb-g{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;padding:10px 48px;background:#16A34A;color:#05080F;font-weight:700;font-size:16px;text-align:center}
.mgsb-g .mgsb-pill{background:#05080F;color:#fff}
.mgsb-g a.mgsb-cta{min-height:38px;padding:7px 16px;background:#05080F;color:#fff!important;font-size:14px}
.mgsb-g a.mgsb-cta:hover{background:#1F2937;color:#fff!important}
.mgsb-g .mgsb-cdc-l{color:#05080F}
.mgsb-g .mgsb-cdc-c{background:#05080F;border-color:#05080F}
.mgsb-g .mgsb-x{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#05080F;font-size:24px;line-height:1;cursor:pointer}
.mgsb-g .mgsb-x:hover{background:rgba(5,8,15,.12)}

@container (max-width:700px){
 .mgsb-e{grid-template-columns:minmax(0,1fr);padding:20px}
 .mgsb-e .mgsb-art{display:none}
 .mgsb-e .mgsb-h{font-size:26px}
 .mgsb-cd span{min-width:0;flex:1;font-size:19px}
 .mgsb-f{flex-direction:column-reverse;align-items:flex-start;padding:20px}
 .mgsb-f .mgsb-stk{align-self:center;font-size:26px;margin:24px 0 6px}
 .mgsb-f .mgsb-h{font-size:24px}
 .mgsb-f .mgsb-btns{flex-direction:column;width:100%}
 .mgsb-f>div:first-child{width:100%}
 .mgsb-h2 .mgsb-h{font-size:27px}
 .mgsb a.mgsb-cta,.mgsb a.mgsb-ghost{display:flex;width:100%}
 .mgsb-a{flex-direction:column;align-items:flex-start;padding:16px}
 .mgsb-a .mgsb-h{font-size:22px}
 .mgsb-b{flex-direction:column}
 .mgsb-b .mgsb-big{flex:none;flex-direction:row;align-items:baseline;justify-content:center;gap:8px;padding:12px 14px}
 .mgsb-b .mgsb-big strong{font-size:34px}
 .mgsb-b .mgsb-main{padding:14px 16px 8px}
 .mgsb-b .mgsb-act{padding:4px 16px 16px}
 .mgsb-c a.mgsb-link{margin-left:0}
 .mgsb-d .mgsb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mgsb-d .mgsb-top a.mgsb-link{margin-left:0}
 /* dải đầu trang trên điện thoại: tối đa 2 dòng (bỏ pill + chữ "Ends in", nút nhỏ) */
 .mgsb-g{gap:6px 10px;padding:6px 42px 6px 10px;font-size:14px;line-height:1.3}
 .mgsb-g .mgsb-pill,.mgsb-g .mgsb-cdc-l{display:none}
 .mgsb-g .mgsb-cdc{gap:3px}
 .mgsb-g .mgsb-cdc-c{min-width:0;padding:1px 5px;font-size:13px}
 .mgsb-g a.mgsb-cta{display:inline-flex;width:auto;min-height:32px;padding:5px 12px;font-size:13px}
 .mgsb-g .mgsb-x{width:32px;height:32px;right:4px}
}
@container (max-width:420px){
 .mgsb a.mgsb-cta,.mgsb a.mgsb-ghost{white-space:normal;text-align:center;line-height:1.25}
}
@container (max-width:300px){
 .mgsb-cd{gap:4px}.mgsb-cd span{padding:6px 2px;font-size:16px}.mgsb-cd small{font-size:9px;letter-spacing:0}
 .mgsb-e{padding:16px}.mgsb-e .mgsb-h{font-size:22px}
 .mgsb-d .mgsb-grid{grid-template-columns:1fr}
}
@media print{.mgsb-wrap{display:none!important}}
