/* ROUND 320 - plans with the Texture Studio visualiser: normal plan hero first, visualiser on Customize.
   See inc/round320.php. The plugin's own stylesheet is not edited; its rules carry an id-level weight
   (":not(#hts-x)"), so the selectors here repeat that to sit above them. */

.sh-r320-stage{position:relative}

/* ---- first view: the visualiser keeps its real size (the plugin measures itself while it waits) but is out of
        sight and out of reach, lying over the hero's place ---- */
.sh-r320-stage:not(.is-r320-viz) > .hts-viz:not(#hts-x){position:absolute;top:0;left:0;right:0;visibility:hidden;pointer-events:none}
.sh-r320-stage:not(.is-r320-viz) > .hts-viz:not(#hts-x) *{visibility:hidden!important;pointer-events:none!important}

/* ---- after Customize: the hero goes, the visualiser takes its place ---- */
.sh-r320-stage.is-r320-viz > .pd__hero{display:none!important}
.sh-r320-stage.is-r320-viz > .hts-viz:not(#hts-x){animation:sh-r320-in .45s ease both}
@keyframes sh-r320-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion: reduce){ .sh-r320-stage.is-r320-viz > .hts-viz:not(#hts-x){animation:none} }

/* ---- the Customize button on the hero: the plugin's own button, in the same place, so pressing it does not
        seem to move anything ---- */
.sh-r320-customise{position:absolute;z-index:6;top:max(12px,calc(var(--r320-top,120px) + var(--r320-gap,0px)));right:24px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:0;padding:11px 20px;border:1px solid transparent;border-radius:999px;background:#fff;color:#424040;box-shadow:0 12px 24px rgba(0,0,0,.18);font-family:var(--sans,Montserrat,"Helvetica Neue",Arial,sans-serif);font-size:12px;font-weight:600;line-height:16px;letter-spacing:.133em;text-transform:uppercase;white-space:nowrap;cursor:pointer;-webkit-appearance:none;appearance:none;transition:box-shadow .2s ease}
.sh-r320-customise:hover{box-shadow:0 2px 8px rgba(0,0,0,.18)}
.sh-r320-customise:focus-visible{outline:2px solid #424040;outline-offset:2px}
.sh-r320-customise svg{flex:none}
.sh-r320-customise[hidden]{display:none}

/* ---- item 4: the plugin's Customize button and its options panel start directly under the header.
        --r320-top is the header's bottom edge measured from the top of the visualiser (r320.js). The 100px margin
        printed in single-plan.php is cancelled: with the plugin's own allowance for the header it put the button
        about 165px under Contact for visitors. Not on the narrow layout, where the panel sits under the picture. ---- */
.sh-r320-stage > .hts-viz:not(#hts-x):not(.is-narrow) .hts-viz__customize,
.sh-r320-stage > .hts-viz:not(#hts-x):not(.is-narrow) .hts-viz__panel{top:calc(var(--r320-top,120px) + var(--r320-gap,0px))!important;margin-top:0!important}

/* ---- phones and narrow tablets, when the visualiser is switched on for mobile in Texture Studio (the plugin's
        stacked layout: picture, then the options panel under it).
        The picture starts under the site's fixed header, not behind it (--r320-nav, set by r320.js). The 100px
        margin printed in single-plan.php is cancelled here too: it opened a gap between the picture and the panel,
        which the plugin tucks 28px up over the picture's bottom edge. ---- */
.sh-r320-stage.is-r320-viz > .hts-viz:not(#hts-x).is-narrow{margin-top:var(--r320-nav,0px)}
.sh-r320-stage > .hts-viz:not(#hts-x).is-narrow .hts-viz__panel{margin-top:-28px!important}

/* ---- ROUND 320c (AJ, 4 Dec 2026): below 1024px the site header is a solid bar, not the see-through desktop
        header, so a button starting exactly at its bottom edge looked stuck to it. From 769px to 1023px the banner
        runs up behind that bar, so the button (and the plugin's own button and panel) get 12px of clear space under
        it. On phones the banner already starts under the bar and the button keeps its 12px inset. ---- */
@media (max-width:1023px){ .sh-r320-stage{--r320-gap:12px} }
