/* Shishana theme: only what WordPress needs on top of the live shishana.co.uk styles (uploads/shs-live/all-*.css) */

/* Shishana Elementor widgets sit edge to edge; spacing comes from the live section CSS */
.e-con>.elementor-widget[class*="elementor-widget-shs-"],.e-con>.e-con-inner>.elementor-widget[class*="elementor-widget-shs-"]{margin:0!important;width:100%}

/* SNV trade application form (wholesale page): every field a full-width block, as on shishana.co.uk */
.snvx-f input:not([type=checkbox]):not([type=radio]),.snvx-f select,.snvx-f textarea{display:block!important;width:100%;box-sizing:border-box;vertical-align:top;margin:0 0 12px!important}

/* no smooth-scroll library on this site */
html{scroll-behavior:auto}

/* Elementor header/footer templates: their wrappers take no space, so the live layout (sticky header, fixed bars) works exactly as on shishana.co.uk */
.shs-el-chrome :is(.elementor,.elementor-section-wrap,.e-con,.e-con-inner,.elementor-element.elementor-widget-shs-html,.elementor-widget-shs-html>.elementor-widget-container){display:contents!important}

/* mobile + iPad header: location pin beside favourites; delivery row and quick links under the search are removed */
.header-trigger--pc{display:none}
@media (max-width:1023px){
  .header-trigger--pc{display:flex;position:absolute;top:0;bottom:0;right:102px;z-index:4;align-items:center}
  /* every header icon the size of the basket (24px), evenly spaced */
  .header-trigger--pc .shs-pc__icon{width:24px!important;height:24px!important}
  .header-trigger--fav .shs-fav__icon{width:32px!important;height:32px!important}
  .shs-app-bar__row--delivery,.shs-app-bar__row--chips{display:none!important}
}
.shs-pc-link{position:relative;display:inline-flex;align-items:center;justify-content:center;color:inherit;width:24px;height:24px}
.shs-pc-link__dot{position:absolute;top:-2px;right:-3px;width:7px;height:7px;border-radius:50%;background:#FFE255;display:none}
.header-trigger--pc[data-pc-set] .shs-pc-link__dot{display:block}

/* the live header sections stick to the page (as on shishana.co.uk): the WordPress wrapper must not create a box around them */
.shs-live-header,.shs-live-footer{display:contents}

/* phones: menu button far left, the pin just right of it (iPad keeps it beside favourites) */
@media (max-width:749px){
  .header-trigger--pc{right:auto;left:62px}
}

/* header icons the same visual size: the heart's drawing is smaller inside its box than the basket's, so its box is larger; one line weight for all */
@media (min-width:1024px){.header-trigger--fav .shs-fav__icon{width:29px!important;height:29px!important}}
.header-trigger--fav .shs-fav__icon *,.shs-pc__icon *{vector-effect:non-scaling-stroke;stroke-width:1.25px}

/* ---------- Phones and iPad (up to 1023px): header and search, ONE coordinated move (0.9.10) ----------
   Before: two separate movements. The live script (shishana-enhance.js) swapped the logo for the black header's search field as
   a scroll-linked sequence over about 56px of scroll, while this file slid the white search band away on a class switch at 56px
   with its own .28s timing. They started and ended at different moments, which left a white strip and icons moving on their own.
   Now: one class, html.shs-swap (set by the scroll script in functions.php, with a dead zone), drives everything, with one
   duration (--shs-swap-d, 220ms) and one easing (--shs-swap-e):
     white band      stays pinned under the black bar, whole, until the switch; then slides up behind the bar and fades
     black header    logo and heart fade out with a 6px lift; the search field fades in with a 6px rise; the postcode pin fades
   Only transform, opacity and visibility change, so nothing reflows and the page never jumps: the band keeps its place in the
   page at all times (it is sticky, not removed), and the switch back happens before that place could come into view.
   The live script's scroll-linked values for this swap (--shs-ly on the logo and heart, --shs-sy on the field, the shs-seq and
   shs-compact states of the field) are overridden here on purpose; that is what the !important rules below are for. Its native
   slide of the black bar from full height to 57px over the first pixels of scroll (--shs-p, --shs-ls) is untouched.
   Transitions only run once html.shs-anim is set (two frames after load), so a page opened part-way down does not play the move.
   Desktop (1024px and up) is not touched by anything in this block.
   Test switch: every rule here is scoped to html:not(.shs-swap-off). Adding the class shs-swap-off to <html> (browser console)
   turns this whole block off, leaving the live script's own scroll-linked swap and the band scrolling away with the page. */
@media (max-width:1023px){
  html:not(.shs-swap-off){--shs-swap-d:220ms;--shs-swap-e:cubic-bezier(.2,.7,.2,1)}

  /* white search band: pinned whole under the compact black bar, then away in one move */
  html:not(.shs-swap-off) .shopify-section:has(> .shs-app-bar),
  html:not(.shs-swap-off) .shs-app-bar-section,
  html:not(.shs-swap-off) .shs-app-bar-section:has(.shs-app-bar--sticky){position:sticky!important;top:57px!important;z-index:19;transform:translate3d(0,0,0);visibility:visible;backface-visibility:hidden}
  html:not(.shs-swap-off) .shs-app-bar{opacity:1}
  html.shs-swap:not(.shs-swap-off) .shopify-section:has(> .shs-app-bar),
  html.shs-swap:not(.shs-swap-off) .shs-app-bar-section{transform:translate3d(0,-100%,0)!important;visibility:hidden;pointer-events:none}
  html.shs-swap:not(.shs-swap-off) .shs-app-bar{opacity:0!important}

  /* black header: logo and heart out, search field in, pin out. Same clock as the band. */
  html:not(.shs-swap-off) .header .header__logo-wrapper,
  html:not(.shs-swap-off) .header .header-trigger--fav .shs-fav-link{opacity:1!important;transform:translate3d(0,0,0)!important;visibility:visible}
  html.shs-swap:not(.shs-swap-off) .header .header__logo-wrapper,
  html.shs-swap:not(.shs-swap-off) .header .header-trigger--fav .shs-fav-link{opacity:0!important;transform:translate3d(0,-6px,0)!important;visibility:hidden}
  html:not(.shs-swap-off) .header .header__logo,
  html:not(.shs-swap-off) .header .header-trigger--fav{pointer-events:auto!important}
  html.shs-swap:not(.shs-swap-off) .header .header__logo,
  html.shs-swap:not(.shs-swap-off) .header .header-trigger--fav{pointer-events:none!important}
  html:not(.shs-swap-off) .shs-hsearch{visibility:hidden!important;pointer-events:none!important}
  html:not(.shs-swap-off) .shs-hsearch > *{opacity:0;transform:translate3d(0,6px,0)!important}
  html.shs-swap:not(.shs-swap-off) .shs-hsearch{visibility:visible!important;pointer-events:auto!important}
  html.shs-swap:not(.shs-swap-off) .shs-hsearch > *{opacity:1;transform:translate3d(0,0,0)!important}
  html:not(.shs-swap-off) .header-trigger--pc{opacity:1;visibility:visible}
  html.shs-swap:not(.shs-swap-off) .header-trigger--pc{opacity:0!important;visibility:hidden!important;pointer-events:none}

  /* one duration, one easing. visibility flips at the end when hiding and at the start when showing, so hidden fields
     cannot be reached by keyboard or screen reader and still fade both ways. */
  html.shs-anim:not(.shs-swap-off) .shopify-section:has(> .shs-app-bar),
  html.shs-anim:not(.shs-swap-off) .shs-app-bar-section{transition:transform var(--shs-swap-d) var(--shs-swap-e),visibility 0s linear 0s}
  html.shs-anim.shs-swap:not(.shs-swap-off) .shopify-section:has(> .shs-app-bar),
  html.shs-anim.shs-swap:not(.shs-swap-off) .shs-app-bar-section{transition:transform var(--shs-swap-d) var(--shs-swap-e),visibility 0s linear var(--shs-swap-d)}
  html.shs-anim:not(.shs-swap-off) .shs-app-bar{transition:opacity var(--shs-swap-d) var(--shs-swap-e)}
  html.shs-anim:not(.shs-swap-off) .header .header__logo-wrapper,
  html.shs-anim:not(.shs-swap-off) .header .header-trigger--fav .shs-fav-link,
  html.shs-anim:not(.shs-swap-off) .header-trigger--pc{transition:opacity var(--shs-swap-d) var(--shs-swap-e),transform var(--shs-swap-d) var(--shs-swap-e),visibility 0s linear 0s!important}
  html.shs-anim.shs-swap:not(.shs-swap-off) .header .header__logo-wrapper,
  html.shs-anim.shs-swap:not(.shs-swap-off) .header .header-trigger--fav .shs-fav-link,
  html.shs-anim.shs-swap:not(.shs-swap-off) .header-trigger--pc{transition:opacity var(--shs-swap-d) var(--shs-swap-e),transform var(--shs-swap-d) var(--shs-swap-e),visibility 0s linear var(--shs-swap-d)!important}
  html.shs-anim:not(.shs-swap-off) .shs-hsearch{transition:visibility 0s linear var(--shs-swap-d)}
  html.shs-anim.shs-swap:not(.shs-swap-off) .shs-hsearch{transition:visibility 0s linear 0s}
  html.shs-anim:not(.shs-swap-off) .shs-hsearch > *{transition:opacity var(--shs-swap-d) var(--shs-swap-e),transform var(--shs-swap-d) var(--shs-swap-e)}
}
/* reduced motion: the same states, switched at once */
@media (max-width:1023px) and (prefers-reduced-motion:reduce){
  html:not(.shs-swap-off){--shs-swap-d:0s}
  html:not(.shs-swap-off) .header .header__logo-wrapper,html:not(.shs-swap-off) .header .header-trigger--fav .shs-fav-link,html:not(.shs-swap-off) .shs-hsearch > *{transform:none!important}
}

/* phones + iPad: the white search band has the same 12px space on every side of the search field */
@media (max-width:1023px){
  .shs-app-bar .shs-app-bar__inner{padding:12px!important}
  .shs-app-bar .shs-app-bar__row--search,.shs-app-bar .shs-search{height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
  .shs-app-bar .shs-search__input{margin:0!important}
}

/* hero: the still image shows at once; the video fades in only once it is actually playing (no black frame) */
.shs-hero__video{opacity:0;transition:opacity .5s ease}
.shs-hero--video-on .shs-hero__video{opacity:1}

/* owner 21 Nov: no blinking vertical caret (the "|" line) in the typewriter search or anywhere else */
.shs-tw__c,.shs-f__sep{display:none !important}

/* home "How same-day shisha delivery works": approved delivery copy below the steps */
.shs-steps__extra{max-width:760px;margin:40px auto 0;text-align:left;color:var(--shs-ink-2,#4a4a4a);font-size:15px;line-height:1.65}
.shs-steps__extra p{margin:0 0 14px}
.shs-steps__extra h3{font-family:inherit;font-size:13px;letter-spacing:.14em;text-transform:uppercase;font-weight:400;color:var(--shs-ink,#111);margin:28px 0 12px}
.shs-steps__extra a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.shs-steps__extra strong{color:var(--shs-ink,#111);font-weight:500}
.shs-steps__extra .shs-steps__extra-title{font-size:22px;letter-spacing:.02em;text-transform:none;margin:0 0 14px;font-weight:400;color:var(--shs-ink,#111)}
.wkb-h{display:block;font-family:"Tenor Sans",sans-serif;font-size:13.6px;font-weight:600;letter-spacing:1px;text-transform:uppercase;line-height:30.0002px;margin:0 0 15px;color:#111}
/* postcode checker: quiet "browse without a postcode" link */
.shs-dq__skip{display:block;margin:18px 0 0;padding:0;background:none;border:0;font-family:inherit;font-size:13px;letter-spacing:.04em;color:#6b6b6b;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.shs-dq__skip:hover{color:#111}

/* Hero banner (owner 21 Nov): the still image under the video was drawn at its natural 16:9 height (Elementor's
   ".elementor img{height:auto}" beat the hero rule), so a dark band showed under it until the video faded in. */
.shs-hero .shs-hero__media .shs-hero__img{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover}
