/* SLMG kit module: the cart sheet, STRUCTURE AND MOTION ONLY (direction-neutral). Where it sits, how it moves, what scrolls,
   and a reset against the theme's own element styles. Colours, type and spacing are a look's job: directions/<direction>/cartsheet.css
   in a pack (directions/stage/cartsheet.css is the Main Stage's, and the fallback). Everything here is scoped to the sheet's own classes; nothing exists until the
   script builds the sheet, so a page without script is untouched.
   Desktop (wider than 900 px): from the right, top of the window down to the top of the audio player bar.
   Phone (900 px and narrower): from the bottom, sitting on the player bar, as tall as its content up to 40 px under the
   top of the screen. --slmg-cs-pap is the player bar's height, measured by the script (0 when there is no bar). */

.slmg-cs[hidden], .slmg-cs-scrim[hidden] { display: none !important; }
.slmg-cs-scrim { position: fixed; inset: 0; z-index: 9996; opacity: 0; transition: opacity .2s linear; }
.slmg-cs-scrim.is-on { opacity: 1; }
.slmg-cs { position: fixed; z-index: 9997; top: 0; right: 0; bottom: var(--slmg-cs-pap, 56px); width: min(var(--slmg-cs-w, 460px), 100vw);
  display: flex; flex-direction: column; box-sizing: border-box; outline: none; text-align: left;
  transform: translateX(104%); transition: transform .34s var(--slmg-ease, cubic-bezier(.2, .8, .2, 1)); }
.slmg-cs.is-on { transform: none; }
.slmg-cs *, .slmg-cs *::before, .slmg-cs *::after { box-sizing: border-box; }
.slmg-cs__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.slmg-cs__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.slmg-cs__foot { flex: none; }
.slmg-cs__status { flex: none; }
.slmg-cs__foot:empty { display: none; }

/* the theme's element styles (Divi: paragraph and heading padding, list bullets, link colour) do not reach in.
   Written as (.slmg-cs p) at the specificity of the theme's own "p" (one class plus one element), and the element half
   inside :where() so it adds nothing: any look's class rule (.slmg-cs-line { padding: 16px 0 }) outranks this reset. */
.slmg-cs :where(p, h2, h3, ul, li) { margin: 0; padding: 0; list-style: none; }
.slmg-cs :where(h2, h3) { line-height: inherit; }
.slmg-cs img { display: block; max-width: 100%; height: auto; }
.slmg-cs button { font: inherit; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slmg-cs button[aria-disabled="true"], .slmg-cs [aria-busy="true"] button { cursor: progress; }
.slmg-cs input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.slmg-cs input[type="number"]::-webkit-inner-spin-button, .slmg-cs input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* read by screen readers, not shown */
.slmg-cs-sr, .slmg-cs__live { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* the page behind is held still by the kit's layer manager (kit/layer.js), not here */
html.slmg-cs-open .et_pb_scroll_top { display: none !important; }   /* Divi's back-to-top arrow would sit on the sheet */

@media (max-width: 900px) {
  .slmg-cs { top: auto; left: 0; width: auto; max-height: calc(100vh - var(--slmg-cs-pap, 56px) - 40px); max-height: calc(100dvh - var(--slmg-cs-pap, 56px) - 40px);
    transform: translateY(calc(100% + var(--slmg-cs-pap, 56px))); }
}

/* reduced motion: it appears and goes at once */
@media (prefers-reduced-motion: reduce) {
  .slmg-cs, .slmg-cs-scrim { transition: none !important; }
}
