/* Alo Landing Suite: thanh banner quảng cáo / khuyến mại (includes/promos.php). Dùng cả ngoài site và xem trước ở admin. */
.lp-promo{position:relative;z-index:61;overflow:hidden;font-family:inherit;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr)}
.lp-promo>.lp-promo__slide,.lp-promo>.lp-promo__fb{grid-area:1/1;min-width:0}
.lp-promo .lp-promo__slide.is-off{visibility:hidden;pointer-events:none}
.lp-promo[hidden],.lp-promo .lp-promo__slide[hidden],.lp-promo .lp-promo__fb[hidden]{display:none}
.lp-promo .lp-promo__slide{--pb-bg:#a3161f;--pb-fg:#fff;--pb-cta-bg:#fff;--pb-cta-fg:#7a0f17;--pb-acc:#ffd9a0;position:relative;background:var(--pb-bg);color:var(--pb-fg);min-height:42px;display:flex;align-items:center}
.lp-promo .lp-promo__slide.is-in{animation:lp-promo-in .55s cubic-bezier(.2,.8,.2,1)}
@keyframes lp-promo-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* chủ đề màu */
.lp-promo .lp-promo--red{--pb-bg:linear-gradient(90deg,#5a0d13,#a3161f 50%,#5a0d13);--pb-fg:#fff;--pb-cta-bg:#fff;--pb-cta-fg:#8c121b;--pb-acc:#ffd9a0}
.lp-promo .lp-promo--gold{--pb-bg:linear-gradient(90deg,#9a7038,#ecd09b 50%,#9a7038);--pb-fg:#231a0c;--pb-cta-bg:#7a0f17;--pb-cta-fg:#fff;--pb-acc:#7a0f17}
.lp-promo .lp-promo--dark{--pb-bg:linear-gradient(90deg,#141518,#25272d 50%,#141518);--pb-fg:#f2efe9;--pb-cta-bg:linear-gradient(180deg,#ecd09b,#c9a063);--pb-cta-fg:#231a0c;--pb-acc:#ecd09b}
.lp-promo .lp-promo--light{--pb-bg:#f6efe2;--pb-fg:#2a2420;--pb-cta-bg:#a3161f;--pb-cta-fg:#fff;--pb-acc:#a3161f;box-shadow:inset 0 -1px 0 rgba(0,0,0,.08)}
.lp-promo .lp-promo--custom{--pb-cta-bg:var(--pb-fg);--pb-cta-fg:var(--pb-bg);--pb-acc:var(--pb-fg)}

/* thanh tĩnh */
.lp-promo .lp-promo__in{display:flex;align-items:center;justify-content:center;gap:10px 16px;flex-wrap:wrap;width:100%;max-width:1200px;margin:0 auto;padding:7px 52px;box-sizing:border-box;text-align:center}
.lp-promo .lp-promo__img{width:34px;height:34px;border-radius:8px;object-fit:cover;flex:none;box-shadow:0 0 0 2px rgba(255,255,255,.25)}
.lp-promo .lp-promo__body{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 16px;min-width:0}
.lp-promo .lp-promo__txt{margin:0;font-size:.92rem;line-height:1.4;color:inherit;letter-spacing:.01em}
.lp-promo .lp-promo__txt strong{font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-right:4px}
.lp-promo .lp-promo__txt span{opacity:.9}
.lp-promo .lp-promo__txt a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.lp-promo .lp-promo__cta{display:inline-flex;align-items:center;gap:6px;padding:6px 15px;border-radius:999px;background:var(--pb-cta-bg);color:var(--pb-cta-fg);font-weight:700;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;white-space:nowrap;transition:transform .2s,box-shadow .2s;box-shadow:0 4px 14px -6px rgba(0,0,0,.45)}
.lp-promo .lp-promo__cta::after{content:"→";transition:transform .2s}
.lp-promo .lp-promo__cta:hover{transform:translateY(-1px);box-shadow:0 8px 18px -8px rgba(0,0,0,.55)}
.lp-promo .lp-promo__cta:hover::after{transform:translateX(3px)}
.lp-promo .lp-promo__cd{font-variant-numeric:tabular-nums;font-weight:700;font-size:.8rem;letter-spacing:.04em;color:var(--pb-acc);white-space:nowrap}
.lp-promo .lp-promo__cd:empty{display:none}
.lp-promo .lp-promo__cd b{display:inline-block;min-width:1.6em;padding:2px 4px;margin:0 1px;border-radius:5px;background:rgba(0,0,0,.22);color:var(--pb-fg);text-align:center}
.lp-promo .lp-promo--gold .lp-promo__cd b,.lp-promo .lp-promo--light .lp-promo__cd b{background:rgba(255,255,255,.55)}

/* chữ chạy */
.lp-promo .lp-promo__run{display:block;width:100%;overflow:hidden;white-space:nowrap;color:inherit;text-decoration:none;padding:9px 0}
.lp-promo .lp-promo__track{display:flex;gap:48px;width:max-content;animation:lp-promo-marq var(--pb-speed,40s) linear infinite}
.lp-promo .lp-promo__run:hover .lp-promo__track{animation-play-state:paused}
.lp-promo .lp-promo__track span{font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.lp-promo .lp-promo__track span::before{content:"✦";margin-right:14px;color:var(--pb-acc)}
@keyframes lp-promo-marq{to{transform:translateX(-50%)}}

/* nút đóng + chấm luân phiên */
.lp-promo .lp-promo__dots{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;gap:5px;z-index:2}
.lp-promo .lp-promo__dots button{width:7px;height:7px;padding:0;border:0;border-radius:99px;background:currentColor;opacity:.35;cursor:pointer;transition:width .3s,opacity .3s}
.lp-promo .lp-promo__dots button.is-on{width:18px;opacity:.95}
.lp-promo .lp-promo__bar{position:absolute;left:0;bottom:0;height:2px;background:currentColor;opacity:.35;width:0}
.lp-promo .lp-promo__bar.is-run{animation:lp-promo-bar linear forwards}
@keyframes lp-promo-bar{to{width:100%}}
.lp-promo:hover .lp-promo__bar{animation-play-state:paused}

@container (max-width:640px){
	.lp-promo .lp-promo__in{flex-wrap:nowrap;justify-content:flex-start;gap:10px;padding:6px 14px;text-align:left}
	.lp-promo.has-dots .lp-promo__in{padding-left:28px}
	.lp-promo .lp-promo__body{flex:1;justify-content:flex-start;gap:2px 8px}
	.lp-promo .lp-promo__txt{font-size:.8rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	.lp-promo .lp-promo__txt strong{letter-spacing:.03em}
	.lp-promo .lp-promo__img{width:28px;height:28px;border-radius:6px}
	.lp-promo .lp-promo__cd{font-size:.7rem}
	.lp-promo .lp-promo__cd b{padding:1px 3px}
	.lp-promo .lp-promo__cta{padding:6px 11px;font-size:.7rem;flex:none}
	.lp-promo .lp-promo__cta::after{display:none}
		.lp-promo .lp-promo__dots{left:9px;flex-direction:column;gap:4px}
	.lp-promo .lp-promo__dots button{width:6px;height:6px}
	.lp-promo .lp-promo__dots button.is-on{width:6px;height:14px}
}
@container (max-width:380px){
	.lp-promo .lp-promo__img{display:none}
}
@media (prefers-reduced-motion:reduce){
	.lp-promo .lp-promo__slide.is-in{animation:none}
	.lp-promo .lp-promo__track{animation-duration:calc(var(--pb-speed,40s) * 3)}
}

/* Giữ cố định khi cuộn (chỉ máy tính, JS bật .is-sticky + html.alo-promo-sticky và đo --alo-promo-h) */
.lp-promo.is-sticky{position:sticky;top:0;box-shadow:0 6px 18px -12px rgba(0,0,0,.6)}
body.admin-bar .lp-promo.is-sticky{top:32px}
html.alo-promo-sticky .lp-header{top:var(--alo-promo-h,0px)}
html.alo-promo-sticky body.admin-bar .lp-header{top:calc(32px + var(--alo-promo-h,0px))}
html.alo-promo-sticky{scroll-padding-top:calc(84px + var(--alo-promo-h,0px))}/* điện thoại (tùy chọn "máy tính + điện thoại"): thanh admin WP cao 46px, ≤600px thì không dính */
@media (max-width:782px){
	body.admin-bar .lp-promo.is-sticky{top:46px}
	html.alo-promo-sticky body.admin-bar .lp-header{top:calc(46px + var(--alo-promo-h,0px))}
	html.alo-promo-sticky .lp-nav.is-open{max-height:calc(100dvh - 68px - var(--alo-promo-h,0px));overflow-y:auto}
}
@media (max-width:600px){
	body.admin-bar .lp-promo.is-sticky{top:0}
	html.alo-promo-sticky body.admin-bar .lp-header{top:var(--alo-promo-h,0px)}
}