/* Create / edit an offering as a full page that slides in from the right.
   Back button top-left, one collapsible section open at a time, white all the way down,
   leave sheet (Save to draft / Cancel) slides up. Only active while #wmModal has .wm-create-fullscreen. */

/* ---- the page itself (beats app-shell.css's phone bottom-sheet rules) ---- */
html body #wmModal.wm-create-fullscreen:not([hidden]){
  display:block!important;padding:0!important;background:#fff!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
  animation:wmCpIn .3s cubic-bezier(.22,.8,.3,1);
}
html body #wmModal.wm-create-fullscreen.is-leaving{animation:wmCpOut .22s ease-in forwards}
@keyframes wmCpIn{from{transform:translateX(100%)}to{transform:none}}
@keyframes wmCpOut{from{transform:none}to{transform:translateX(100%)}}
html body #wmModal.wm-create-fullscreen .wm-modal{
  width:100%!important;max-width:none!important;min-height:100vh;min-height:100dvh;margin:0!important;
  border-radius:0!important;box-shadow:none!important;background:#fff!important;
  padding:0 0 calc(24px + env(safe-area-inset-bottom))!important;animation:none!important;
}
#wmModal.wm-create-fullscreen .wm-modal-close{display:none!important}
#wmModal.wm-create-fullscreen #wmModalBody{width:100%;max-width:880px;padding:18px 16px 0;box-sizing:border-box;margin-left:auto;margin-right:auto}
@media(min-width:721px){
  html body.storefront-app #wmModal.wm-create-fullscreen .wm-modal{padding-left:0!important;padding-right:0!important}
  body.storefront-app #wmModal.wm-create-fullscreen #wmModalBody{margin-left:0;margin-right:auto;padding:22px clamp(28px,2.5vw,52px) 0}
}
/* the header already says what this is */
#wmModal.wm-create-fullscreen #wmModalTitle{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#wmModal.wm-create-fullscreen .wm-modal-intro{margin:0 0 16px;font-size:12.5px;color:var(--wm-muted,#6b7a86)}

/* ---- header bar ---- */
.wm-cp-bar{display:none}
#wmModal.wm-create-fullscreen .wm-cp-bar{
  display:flex;align-items:center;gap:6px;position:sticky;top:0;z-index:20;height:56px;padding:0 12px;
  background:#fff;border-bottom:1px solid var(--wm-line,#e6ebe8);box-sizing:border-box;
}
.wm-cp-back{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#111;cursor:pointer;flex:none;-webkit-tap-highlight-color:transparent}
.wm-cp-back:hover,.wm-cp-back:active{background:#f1f3f2}
.wm-cp-back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wm-cp-title{margin:0;font-size:16px;font-weight:700;letter-spacing:-.2px;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- collapsible sections ---- */
#wmModal.wm-create-fullscreen .wm-create-cards{counter-reset:wmcp;gap:12px}
.wm-create-card.wm-cp-acc{padding:0;background:#fff;border:1px solid var(--wm-line,#e6ebe8);border-radius:14px;box-shadow:none;scroll-margin-top:68px}
.wm-create-card.wm-cp-acc>header{
  display:flex;align-items:center;gap:12px;margin:0;padding:15px 16px;border:0;cursor:pointer;
  -webkit-tap-highlight-color:transparent;user-select:none;position:relative;
}
.wm-create-card.wm-cp-acc>header:before{
  counter-increment:wmcp;content:counter(wmcp);flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  background:#f1f3f2;color:#111;font-size:12px;font-weight:700;
}
.wm-create-card.wm-cp-acc.is-open>header:before{background:#111;color:#fff}
.wm-create-card.wm-cp-acc>header .wm-cp-head{flex:1;min-width:0}
.wm-create-card.wm-cp-acc>header h2{margin:0;font-size:14.5px;letter-spacing:-.15px}
.wm-create-card.wm-cp-acc>header p{margin:2px 0 0;font-size:11.5px;color:var(--wm-muted,#6b7a86);line-height:1.4}
.wm-cp-chev{flex:none;width:20px;height:20px;transition:transform .2s;color:#555}
.wm-cp-chev svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block}
.wm-cp-acc.is-open>header .wm-cp-chev{transform:rotate(180deg)}
.wm-cp-body{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .24s ease,visibility 0s .24s}
.wm-cp-acc.is-open>.wm-cp-body{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .24s ease,visibility 0s}
.wm-cp-inner{min-height:0;min-width:0;overflow:hidden}
.wm-cp-acc.is-open>.wm-cp-body>.wm-cp-inner{overflow:visible;padding:2px 16px 18px}
.wm-cp-next{display:inline-flex;align-items:center;gap:6px;margin-top:16px;padding:10px 16px;border:1px solid #111;border-radius:10px;background:#fff;color:#111;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.wm-cp-next:active{background:#f1f3f2}
@media(max-width:760px){.wm-cp-acc.is-open>.wm-cp-body>.wm-cp-inner{padding:2px 14px 16px}}

/* ---- Publish at the very end ---- */
#wmModal.wm-create-fullscreen .wm-modal-actions{
  position:static!important;display:flex!important;flex-direction:column;align-items:stretch;gap:10px;
  margin:18px 0 0!important;padding:8px 0 28px!important;background:none!important;border:0!important;border-radius:0;
}
#wmModal.wm-create-fullscreen .wm-modal-actions [data-action="close-modal"]{display:none!important}
#wmModal.wm-create-fullscreen .wm-modal-actions .wm-btn{width:100%;justify-content:center;min-height:46px}
#wmModal.wm-create-fullscreen .wm-modal-actions button[type="submit"]:not([data-submit-mode]){order:1}
#wmModal.wm-create-fullscreen .wm-modal-actions [data-submit-mode="draft"]{order:2}

/* ---- leave sheet ---- */
.wm-cp-sheet{position:fixed;inset:0;z-index:100010;display:flex;align-items:flex-end;justify-content:center}
.wm-cp-sheet[hidden]{display:none}
.wm-cp-scrim{position:absolute;inset:0;background:rgba(12,16,22,.5);animation:wmCpFade .2s ease-out}
.wm-cp-panel{
  position:relative;width:100%;max-width:480px;background:#fff;border-radius:20px 20px 0 0;
  padding:8px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(15,20,25,.22);animation:wmCpUp .26s ease-out;
}
.wm-cp-panel:before{content:"";display:block;width:40px;height:5px;border-radius:5px;background:#000;margin:6px auto 14px}
.wm-cp-panel h2{margin:0 0 4px;font-size:16px;color:#111}
.wm-cp-panel p{margin:0 0 16px;font-size:13px;line-height:1.5;color:#5b6773}
.wm-cp-panel button{display:block;width:100%;min-height:48px;margin-top:9px;border-radius:12px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.wm-cp-primary{border:0;background:#111;color:#fff}
.wm-cp-danger{border:1px solid #f0c4c4;background:#fff;color:#c62828}
.wm-cp-keep{border:0;background:transparent;color:#444}
@keyframes wmCpUp{from{transform:translateY(100%)}to{transform:none}}
@keyframes wmCpFade{from{opacity:0}to{opacity:1}}
@media(min-width:721px){.wm-cp-sheet{align-items:center}.wm-cp-panel{border-radius:18px;padding-bottom:18px}.wm-cp-panel:before{display:none}.wm-cp-panel{animation:wmCpFade .2s ease-out}}
@media(prefers-reduced-motion:reduce){html body #wmModal.wm-create-fullscreen:not([hidden]),.wm-cp-panel{animation:none}.wm-cp-body{transition:none}}
