/* NNKT v1.86 Smart Contextual Popup & Popout — self-hosted, native-safe. */
.hub-smart-popup[hidden], .hub-smart-popup [hidden] {display:none!important}
.hub-smart-popup{position:fixed;inset:0;z-index:1050;pointer-events:none;font-family:'Bai Jamjuree',system-ui,sans-serif;color:var(--ink,#16392e)}
.hub-smart-popup__shade{position:absolute;inset:0;background:rgba(12,28,26,.38);backdrop-filter:blur(3px);pointer-events:auto}
.hub-smart-popup__box{position:absolute;pointer-events:auto;isolation:isolate;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:calc(100vw - 20px);width:340px;padding:20px;background:var(--surface-solid,#fff);color:var(--ink,#193e32);border:1px solid color-mix(in srgb,currentColor 12%,transparent);border-radius:20px;box-shadow:0 16px 45px rgba(2,34,27,.15);max-height:min(75vh,620px);overflow:auto;overscroll-behavior:contain}
.hub-smart-popup__eyebrow{margin:0;font-size:11px;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#627d71);font-weight:700}
.hub-smart-popup__box h2{font:700 clamp(17px,4.5vw,20px)/1.35 'Bai Jamjuree',sans-serif;margin:0;padding-right:25px;overflow-wrap:anywhere}
.hub-smart-popup__box p:not(.hub-smart-popup__eyebrow){font-size:14px;line-height:1.6;margin:0;color:var(--muted,#506a60);overflow-wrap:anywhere}
.hub-smart-popup__image{display:block;max-width:100%;max-height:155px;object-fit:cover;aspect-ratio:16/8;border-radius:12px;margin-top:4px}
.hub-smart-popup__close{position:absolute;right:10px;top:10px;border:0;background:transparent;color:inherit;opacity:.7;cursor:pointer;border-radius:9px;font-size:23px;width:34px;height:34px;line-height:1;display:grid;place-items:center}
.hub-smart-popup__close:hover,.hub-smart-popup__close:focus-visible{background:rgba(120,135,130,.13);opacity:1}
.hub-smart-popup__cta{display:inline-flex;justify-content:center;align-items:center;border-radius:11px;background:#116b54;color:white!important;text-decoration:none!important;font-size:13px;font-weight:700;line-height:1.4;min-height:42px;padding:8px 16px;box-sizing:border-box}
.hub-smart-popup__cta:hover{background:#0b503f;color:white}
.hub-smart-popup--toast .hub-smart-popup__box,.hub-smart-popup--popout .hub-smart-popup__box{right:max(14px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));animation:hub-popup-appear .2s ease-out}
.hub-smart-popup--toast .hub-smart-popup__box{width:320px;padding:16px 18px}
.hub-smart-popup--popout .hub-smart-popup__teaser{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));pointer-events:auto;display:flex;align-items:center;border-radius:30px;max-width:calc(100vw - 30px);background:var(--surface-solid,#fff);box-shadow:0 7px 22px rgba(5,39,30,.14)}
.hub-smart-popup--popout .hub-smart-popup__trigger{pointer-events:auto;border:1px solid rgba(14,116,85,.18);background:var(--surface-solid,#fff);color:var(--ink,#123c31);display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:30px;box-shadow:none;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;max-width:calc(100vw - 30px)}
.hub-smart-popup__teaser-close{min-width:32px;height:40px;border:none;background:transparent;color:inherit;font:600 18px/1 Arial;cursor:pointer;border-radius:50%;opacity:.75}
.hub-smart-popup__teaser-close:focus-visible,.hub-smart-popup__teaser-close:hover{opacity:1;background:rgba(100,128,114,.13)}
.hub-smart-popup--popout .hub-smart-popup__trigger span:first-child{display:grid;place-items:center;background:#e7f5ed;color:#116b54;width:30px;height:30px;border-radius:50%}
.hub-smart-popup--sheet .hub-smart-popup__box{bottom:0;left:50%;transform:translateX(-50%);border-radius:22px 22px 0 0;width:min(480px,100%);max-width:100%;padding:24px 22px calc(22px + env(safe-area-inset-bottom));max-height:80dvh}
.hub-smart-popup--modal .hub-smart-popup__box{top:50%;left:50%;transform:translate(-50%,-50%);width:min(430px,calc(100% - 30px));max-height:80dvh}
body.hub-popup-modal-open{overflow:hidden}
@keyframes hub-popup-appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){.hub-smart-popup--toast .hub-smart-popup__box,.hub-smart-popup--popout .hub-smart-popup__box{bottom:calc(76px + env(safe-area-inset-bottom));right:10px;width:min(330px,calc(100vw - 20px))}.hub-smart-popup--popout .hub-smart-popup__teaser{bottom:calc(76px + env(safe-area-inset-bottom));right:10px}.hub-smart-popup__box{padding:16px}.hub-smart-popup--sheet .hub-smart-popup__box{width:100%;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.hub-smart-popup *{animation:none!important;transition:none!important}}
@media(prefers-contrast:more){.hub-smart-popup__box{border:2px solid currentColor}}
