.hsam-slot { box-sizing:border-box; display:block; clear:both; width:100%; max-width:100%; min-width:0; min-height:var(--hsam-height,0px); margin:24px auto; text-align:center; }
.hsam-slot__creative { width:var(--hsam-width,100%); max-width:100%; min-height:var(--hsam-height,0px); margin-inline:auto; overflow-x:auto; overflow-y:hidden; }
.hsam-slot__creative iframe { border:0; max-width:100%; }
.hsam-slot__creative img { max-width:100%; height:auto; }
.hsam-slot--stable { height:var(--hsam-height); overflow:hidden; contain:layout style; }
.hsam-slot--stable .hsam-slot__creative { height:100%; overflow:hidden; }
.hsam-slot--header, .hsam-slot--footer { width:min(calc(100% - 40px),1400px); }
.hsam-slot--grid-row { grid-column:1 / -1; flex-basis:100%; align-self:center; list-style:none; margin:12px 0; }
.hsam-slot[data-hsam-slot^="popunder"], .hsam-slot--video_slider:not(.hsam-slot--preview) { position:absolute; width:0; height:0; min-height:0; margin:0; overflow:visible; }
.hsam-slot[data-hsam-slot^="popunder"] .hsam-slot__creative, .hsam-slot--video_slider:not(.hsam-slot--preview) .hsam-slot__creative { width:0; height:0; min-height:0; overflow:visible; }
.hsam-slot--sidebar { margin-top:18px; }
@media(max-width:767px) { .hsam-slot { margin-block:16px; } .hsam-slot--header,.hsam-slot--footer { width:calc(100% - 24px); } }
.hsam-preview-box { display:flex; flex-direction:column; justify-content:center; gap:8px; box-sizing:border-box; width:var(--hsam-width,100%); max-width:100%; min-height:max(90px,var(--hsam-height,90px)); margin:auto; padding:20px; border:1px dashed #5fa8ff; border-radius:12px; background:#101c2c; color:#eff6ff; font:14px/1.5 system-ui,sans-serif; }
.hsam-preview-box strong { color:#85bcff; font-size:17px; }.hsam-preview-box small { color:#a9b9ce; }
.hsam-diagnostics { position:fixed; bottom:20px; left:20px; z-index:2147483646; width:350px; max-width:calc(100vw - 40px); max-height:65vh; overflow:auto; box-sizing:border-box; padding:18px; border:1px solid #344861; border-radius:14px; box-shadow:0 12px 60px #0008; background:#101722; color:#edf3ff; font:12px/1.6 system-ui,sans-serif; text-align:left; }
.hsam-diagnostics strong { color:#85bcff; }.hsam-diagnostics p { margin:8px 0; font-size:12px; }.hsam-diagnostics ul { list-style:none; padding:0; margin:12px 0; }.hsam-diagnostics li { display:flex; justify-content:space-between; gap:16px; padding:5px 0; border-bottom:1px solid #283245; }.hsam-diagnostics li span:last-child { text-align:right; color:#b9c8dd; }.hsam-diagnostics a,.hsam-diagnostics button { display:inline-block; margin:8px 12px 0 0; color:#9fcaff; background:transparent; border:0; padding:0; text-decoration:underline; font:inherit; cursor:pointer; }
.hsam-diagnostics [hidden] { display:none!important; }
/* Explicit banner groups: the rail scrolls without widening the page or scaling creatives. */
.hsam-banner-rail { box-sizing:border-box; width:100%; max-width:100%; min-width:0; overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; }
.hsam-banner-row { display:flex; flex-wrap:nowrap; align-items:flex-start; gap:12px; width:max-content; margin-inline:auto; }
.hsam-slot--row .hsam-banner-row > .hsam-slot__creative { flex:0 0 var(--hsam-width,300px); width:var(--hsam-width,300px); max-width:none; margin:0; }
.hsam-slot--row.hsam-slot--stable { height:calc(var(--hsam-height) + 18px); }
.hsam-slot--row.hsam-slot--stable .hsam-banner-rail { height:100%; }
.hsam-slot--row.hsam-slot--stable .hsam-slot__creative { height:var(--hsam-height); }
.site-branding:has(> .hsam-slot--row) { flex-wrap:wrap; }
.hsam-player-anchor { position:relative; }
.hsam-player-overlay { position:absolute; inset:0; z-index:401; display:flex; align-items:center; justify-content:center; box-sizing:border-box; max-width:100%; pointer-events:none; }
.hsam-player-overlay__zones { display:flex; gap:12px; align-items:center; max-width:100%; overflow-x:auto; overflow-y:hidden; pointer-events:auto; }
.hsam-player-zone { flex:0 0 auto; min-width:0; max-width:100%; }
.hsam-slot--preplay { width:var(--hsam-width); max-width:100%; margin:0; clear:none; }
.hsam-player-overlay__close { position:absolute; top:8px; right:8px; z-index:2; pointer-events:auto; padding:8px 12px; border:1px solid #fff8; border-radius:5px; background:#171a20; color:#fff; font:600 13px/1.3 system-ui,sans-serif; cursor:pointer; }
.hsam-player-overlay__close:focus-visible,.hsam-banner-rail:focus-visible { outline:2px solid #5fa8ff; outline-offset:2px; }

/* Provider owns the slider placement and close control. */
.hsam-slot--video_slider.hsam-slot--preview { position:fixed; right:12px; bottom:env(safe-area-inset-bottom, 0px); width:min(var(--hsam-width), calc(100% - 24px)); z-index:2147483645; pointer-events:none; }
@media(max-width:767px) { .hsam-slot--video_slider.hsam-slot--preview { position:relative; right:auto; bottom:auto; z-index:auto; } }
