/* KPRU CapGuide Popup Center 1.0.12 — fully namespaced, no dependencies */
#cgp-root{position:fixed;inset:0;z-index:2147482500;display:none;font-family:system-ui,-apple-system,'Segoe UI','Noto Sans Thai',sans-serif;color:#1e293b}
#cgp-root.cgp-open{display:block}
#cgp-root *{box-sizing:border-box}
#cgp-root .cgp-backdrop{position:absolute;inset:0;background:rgba(8,15,32,.76);backdrop-filter:blur(5px)}
#cgp-root .cgp-dialog{position:relative;margin:auto;display:flex;flex-direction:column;max-height:min(88dvh,940px);width:min(calc(100vw - 28px),var(--cgp-width,640px));max-width:100%;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 38px 120px rgba(0,0,0,.52);animation:cgp-rise .18s ease-out}
#cgp-root .cgp-panel-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:14px;pointer-events:none}
#cgp-root .cgp-dialog{pointer-events:auto}
#cgp-root .cgp-bar{background:linear-gradient(120deg,#111b39,#30205a);color:#fff;padding:11px 15px;display:flex;align-items:center;gap:10px;justify-content:space-between;flex-shrink:0}
#cgp-root .cgp-bar strong{font-size:13px;letter-spacing:.01em}
#cgp-root .cgp-counter{color:#d8d4eb;font-size:12px;margin-left:auto}
#cgp-root button{font-family:inherit;cursor:pointer}
#cgp-root .cgp-close{border:1px solid rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.12);border-radius:9px;height:32px;width:34px;font-size:23px;line-height:1}
#cgp-root .cgp-close:hover{background:rgba(255,255,255,.25)}
#cgp-root button:focus-visible,#cgp-root a:focus-visible{outline:3px solid #facc15;outline-offset:2px}
#cgp-root .cgp-content{overflow:auto;min-height:0;overscroll-behavior:contain}
#cgp-root .cgp-image{max-width:100%;width:100%;height:auto;display:block;object-fit:contain}
#cgp-root .cgp-image-container{width:100%;background:#f1f5f9}
/* Banner links: full image remains visible; only linked banners gain pointer/keyboard focus. */
#cgp-root .cgp-image-link{display:block;width:100%;cursor:pointer;text-decoration:none}
#cgp-root .cgp-image-link .cgp-image{display:block;width:100%;height:auto}
#cgp-root .cgp-text{padding:20px 24px;line-height:1.7;overflow-wrap:anywhere}
#cgp-root .cgp-title{font-size:clamp(18px,3vw,23px);font-weight:850;margin:0 0 12px;color:#182044}
#cgp-root .cgp-rich{font-size:14px;color:#334155;line-height:1.7}
#cgp-root .cgp-rich h2{font-size:19px}.cgp-rich h3{font-size:16px}
#cgp-root .cgp-rich a{color:#5b21b6;text-decoration:underline}
#cgp-root .cgp-cta{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;padding:10px 18px;border-radius:10px;background:linear-gradient(110deg,#6d28d9,#4338ca);color:#fff!important;font-size:14px;text-decoration:none;font-weight:700;max-width:100%}
#cgp-root .cgp-bottom{flex-shrink:0;background:#fff;padding:10px 15px;border-top:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;gap:8px}
#cgp-root .cgp-nav{background:#f1f5f9;border:1px solid #cbd5e1;color:#312e81;border-radius:9px;padding:8px 13px;font-size:13px;font-weight:750}
#cgp-root .cgp-nav:disabled{opacity:.35;cursor:not-allowed}
#cgp-root .cgp-dots{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}
#cgp-root .cgp-dot{width:9px;height:9px;border-radius:9px;background:#cbd5e1;border:0;padding:0}
#cgp-root .cgp-dot[aria-current="true"]{width:21px;background:#7c3aed}
@keyframes cgp-rise{from{opacity:0;transform:translateY(15px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:550px){#cgp-root .cgp-panel-wrap{padding:8px}#cgp-root .cgp-dialog{width:min(calc(100vw - 16px),var(--cgp-width,640px));max-height:90dvh;border-radius:14px}#cgp-root .cgp-text{padding:15px 16px}#cgp-root .cgp-nav{padding:7px 9px;font-size:12px}}
@media(prefers-reduced-motion:reduce){#cgp-root .cgp-dialog{animation:none}}

/* V1.0.10 — hide all carousel controls if one eligible announcement is available. */
#cgp-root .cgp-bottom[hidden]{display:none!important}
#cgp-root .cgp-counter[hidden]{display:none!important}
/* CTA placement is saved separately for each announcement. */
#cgp-root .cgp-cta-holder{display:flex;justify-content:flex-start;align-items:center;padding-top:0}
#cgp-root .cgp-cta-holder.cgp-align-center{justify-content:center}
#cgp-root .cgp-cta-holder.cgp-align-right{justify-content:flex-end}
#cgp-root .cgp-cta-holder .cgp-cta{text-align:center;overflow-wrap:anywhere}

/* V1.0.12 — one compact row: previous | link CTA + dots | next.
   Keeping the CTA outside .cgp-content avoids wasted vertical image space. */
#cgp-root .cgp-bottom{
 display:grid;
 grid-template-columns:max-content minmax(0,1fr) max-content;
 align-items:center;
 gap:10px;
 padding:9px 15px;
}
#cgp-root .cgp-footer-center{
 min-width:0;
 width:100%;
 display:flex;
 align-items:center;
 justify-content:center;
 gap:12px;
}
#cgp-root .cgp-footer-center .cgp-cta-holder{
 min-width:0;
 flex:1 1 auto;
 display:flex;
 align-items:center;
 padding:0;
}
#cgp-root .cgp-footer-center .cgp-cta-holder[hidden]{display:none!important}
#cgp-root .cgp-footer-center .cgp-cta-holder.cgp-align-left{justify-content:flex-start}
#cgp-root .cgp-footer-center .cgp-cta-holder.cgp-align-center{justify-content:center}
#cgp-root .cgp-footer-center .cgp-cta-holder.cgp-align-right{justify-content:flex-end}
#cgp-root .cgp-footer-center .cgp-cta{
 display:block;
 width:max-content;
 min-width:0;
 max-width:100%;
 margin:0;
 padding:9px 15px;
 line-height:1.35;
 text-align:center;
 overflow:hidden;
 white-space:nowrap;
 text-overflow:ellipsis;
}
#cgp-root .cgp-footer-center .cgp-dots{flex:0 0 auto}
#cgp-root .cgp-nav[hidden],#cgp-root .cgp-dots[hidden]{display:none!important}
#cgp-root .cgp-bottom.cgp-single{grid-template-columns:minmax(0,1fr)}
#cgp-root .cgp-bottom.cgp-single .cgp-footer-center{justify-content:stretch}
@media(max-width:550px){
 #cgp-root .cgp-bottom{padding:8px 10px;gap:6px}
 #cgp-root .cgp-footer-center .cgp-cta{font-size:12px;padding:8px 9px}
 #cgp-root .cgp-bottom.cgp-has-cta .cgp-dots{display:none}
}
@media(max-width:365px){
 #cgp-root .cgp-nav{padding:7px 6px;font-size:11px}
 #cgp-root .cgp-bottom{gap:4px}
}
