/* Presentation only. Popup content, dates, device selection and cookies stay native. */
#hd_pop{position:fixed!important;left:20px!important;right:20px!important;top:108px!important;width:auto!important;max-height:calc(100dvh - 130px);overflow:auto;z-index:100100;display:flex;justify-content:center;align-items:flex-start;gap:20px;flex-wrap:wrap;padding:8px;pointer-events:none;box-sizing:border-box;background:transparent}
#hd_pop>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
#hd_pop .hd_pops{position:relative!important;top:auto!important;left:auto!important;max-width:100%;min-width:0;pointer-events:auto;background:#fff;color:#252a36;border:1px solid #d9dfeb;border-radius:14px;overflow:hidden;box-shadow:0 16px 50px #0003;box-sizing:border-box}
#hd_pop .hd_pops_con{max-width:100%;height:auto!important;max-height:calc(100dvh - 250px);overflow:auto;box-sizing:border-box;font-size:17px;line-height:1.8}
#hd_pop .hd_pops_con img,#hd_pop .hd_pops_con video,#hd_pop .hd_pops_con iframe{max-width:100%;height:auto}
#hd_pop .hd_pops_con p{margin:0}
#hd_pop .hd_pops_footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:#f1f3f8;border-top:1px solid #d9dfeb;padding:12px 16px;box-sizing:border-box}
#hd_pop .hd_pops_footer button{border:0;background:none;min-height:42px;font:inherit;font-size:15px;color:#3d4657;cursor:pointer;padding:6px}
#hd_pop .hd_pops_footer .hd_pops_close{font-weight:600}
#hd_pop .hd_pops_con a{cursor:pointer}
#hd_pop .shmx-native-pages{pointer-events:auto;width:100%;display:flex;justify-content:center;align-items:center;gap:20px;padding:6px}
#hd_pop .shmx-native-pages button{min-width:44px;min-height:44px;border:1px solid #ccd3e2;background:#fff;color:#30394a;border-radius:8px;cursor:pointer;font:inherit;font-size:23px}
#hd_pop .shmx-native-pages span{padding:6px 12px;background:#fff;color:#30394a;border-radius:6px;font-size:16px}
#hd_pop [hidden]{display:none!important}
#hd_pop button:focus-visible{outline:3px solid #d73548;outline-offset:2px}
@media(max-width:760px){#hd_pop{left:10px!important;right:10px!important;top:88px!important;max-height:calc(100dvh - 108px);display:block;padding:5px;overflow:auto}#hd_pop .hd_pops{width:100%!important;max-width:460px;margin:0 auto}#hd_pop .hd_pops_con{width:100%!important;max-height:calc(100dvh - 260px);overflow:auto}#hd_pop .hd_pops_footer{padding:10px 12px;gap:6px}#hd_pop .hd_pops_footer button{font-size:14px}#hd_pop .shmx-native-pages{margin-top:12px;box-sizing:border-box}}
@media(prefers-reduced-motion:no-preference){#hd_pop .hd_pops{animation:shmx-native-show .3s ease both}@keyframes shmx-native-show{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}}
#hd_pop[hidden]{display:none!important}

/* Desktop-only move handle. Content links and dismissal remain independent. */
#hd_pop .shmx-native-placeholder{flex:0 0 auto;max-width:100%;visibility:hidden;pointer-events:none;box-sizing:border-box}
#hd_pop .shmx-native-drag{display:block;width:100%;min-height:36px;margin:0;padding:8px 14px;border:0;border-bottom:1px solid #e2e6ed;background:#f8f9fc;color:#6d7583;font:inherit;font-size:13px;font-weight:500;line-height:1.5;text-align:center;cursor:grab;touch-action:none;user-select:none}
#hd_pop .shmx-native-drag::before{content:'⠿';display:inline-block;margin-right:8px;font-size:17px;vertical-align:middle}
#hd_pop .shmx-native-drag.is-dragging{cursor:grabbing;background:#eef1f7}
@media(min-width:761px){#hd_pop .hd_pops_con{max-height:calc(100dvh - 290px)}}
@media(max-width:760px){#hd_pop .shmx-native-drag,#hd_pop .shmx-native-placeholder{display:none!important}}
/* Fit the complete popup proportionally, including its native close controls. */
#hd_pop{display:grid!important;gap:16px;align-content:start;justify-items:center;overflow:visible!important;max-height:none!important;padding:8px}
#hd_pop .shmx-popup-slot{position:relative;min-width:0;max-width:100%;pointer-events:none;box-sizing:border-box;align-self:start;justify-self:center}
#hd_pop .shmx-popup-slot>.hd_pops{position:absolute!important;left:0!important;top:0!important;width:var(--shmx-popup-natural-width,450px)!important;max-width:none!important;min-width:0;margin:0!important;transform:scale(var(--shmx-popup-scale,1))!important;transform-origin:top left;animation:none!important;pointer-events:auto;box-sizing:border-box}
#hd_pop .shmx-popup-slot .hd_pops_con{width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;box-sizing:border-box;overflow-wrap:anywhere}
#hd_pop .hd_pops_con img{display:block;max-width:100%!important;height:auto!important;object-fit:contain}
#hd_pop .hd_pops_con :is(video,iframe,table){max-width:100%!important}
#hd_pop .shmx-native-pages{grid-column:1/-1;width:100%;margin:0;box-sizing:border-box}
#hd_pop .shmx-native-placeholder{justify-self:center;align-self:start}

/* Size tracks to the fitted popup, avoiding empty equal-width columns. */
#hd_pop{justify-content:center!important;column-gap:16px!important;row-gap:16px!important}
