/* Unified ProfilePro - Stage 2: Storefront (Offerings) inside the new web shell.
   The unified .app-sidebar replaces Storefront's own sidebar (a slide-in drawer on phones). */
.wmu-pills{display:none;}
/* Unified ProfilePro: Storefront (Offerings) uses the unified shell on web AND phones.
   Its own sidebar/drawer, logo and app switcher are replaced by the unified sidebar. */
body.storefront-app.app-body{background:#fff;}
body.storefront-app .wm-sidebar{display:none !important;}
body.storefront-app .wm-main{margin-left:0 !important;}
body.storefront-app .wm-switcher-anchor,
body.storefront-app #wmSidebarToggle{display:none !important;}
body.storefront-app .wm-topbar{top:0;}
body.storefront-app .wm-mobile-brand img,
body.storefront-app .wm-mobile-brand > span{display:none !important;}
.wmu-pills{display:flex;align-items:center;gap:8px;padding:18px clamp(20px,3vw,42px) 0;max-width:1480px;margin:0 auto;}
.wmu-pills[hidden]{display:none;}
.wmu-pills-scroll{display:flex;gap:8px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;}
.wmu-pills-scroll::-webkit-scrollbar{display:none;}
.wmu-pill{flex:none;display:inline-flex;align-items:center;height:36px;padding:0 16px;border-radius:999px;border:1px solid #e3e6e8;background:#fff;color:#111;font:500 13px 'Cabinet Grotesk',sans-serif;cursor:pointer;white-space:nowrap;}
.wmu-pill:hover{background:#f3f4f5;}
.wmu-pill.is-active{background:#F0F9F6;border-color:#0F766D;color:#0F766D;}
.wmu-pill:focus-visible{outline:2px solid #111;outline-offset:2px;}
body.storefront-app .wm-content{padding-top:20px;}
@media (max-width:720px){
  .wmu-pills{padding:12px 14px 0;}
  body.storefront-app .wm-content{padding-top:14px;}
}

/* Universal "+" create/add button (replaces the per-page Create / New / Add buttons) */
.wmu-add-wrap{position:relative;flex:none;}
.wmu-add{width:40px;height:40px;border-radius:999px;border:0;background:#0F766D;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
.wmu-add:hover{background:#0b5f58;}
.wmu-add:focus-visible{outline:2px solid #111;outline-offset:2px;}
.wmu-add-menu{position:absolute;right:0;top:48px;z-index:60;min-width:260px;max-width:min(320px,86vw);background:#fff;border:1px solid #e4e7ec;border-radius:14px;box-shadow:0 14px 36px rgba(16,24,40,.16);padding:6px;}
.wmu-add-menu[hidden]{display:none;}
.wmu-add-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:11px 12px;border:0;background:transparent;border-radius:10px;text-align:left;cursor:pointer;font-family:'Cabinet Grotesk',sans-serif;}
.wmu-add-item:hover{background:#f3f4f5;}
.wmu-add-item b{font-weight:600;font-size:13px;color:#111;}
.wmu-add-item small{font-size:11px;color:#667085;}
/* The old inline header buttons are now reached through the "+" (they stay in the page so the "+" can trigger them) */
body.storefront-app .wm-page-title [data-action="create"],
body.storefront-app .wm-page-title [data-cpn="new"],
body.storefront-app .wm-page-title [data-aff="new"],
body.storefront-app .wm-page-title [data-emc="new"],
body.storefront-app .wm-page-title [data-es="new"],
body.storefront-app .wm-page-title [data-ef="new"],
body.storefront-app .wm-page-title [data-em]{display:none !important;}
/* Table pages: search / filter / date / export sit directly on the page, no extra outer card border */
body.storefront-app .wm-pur-search,
body.storefront-app .wm-pur-tools{border:0;background:transparent;box-shadow:none;padding-left:0;padding-right:0;border-radius:0;}
/* Keep the ProfilePro drawer header clean on Offerings phones. */
body.storefront-app .uni-drawer-close{display:none!important;}

/* Stage 32: no profile icon in the Offerings header (profile + Log Out live in the ProfilePro sidebar) */
.wm-popover-anchor:has(> #wmProfileToggle),#wmProfileToggle{display:none !important;}

/* Round: no notification bell in Offerings / Campaigns headers */
.wm-popover-anchor:has(> #wmNotificationsToggle),#wmNotificationsToggle,#wmNotificationsMenu{display:none !important;}

/* Desktop Offerings content uses the full space beside the app rail. */
@media(min-width:721px){
  body.storefront-app .wm-content{width:100%;max-width:none;padding:24px clamp(28px,2.5vw,52px) 60px;}
  body.storefront-app .wm-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;}
  body.storefront-app .wm-cover{height:150px;}
  body.storefront-app .wm-card-body{padding:16px;gap:9px;}
  body.storefront-app .wm-creator{font-size:11px;}
  body.storefront-app .wm-type{font-size:10px;}
  body.storefront-app .wm-card h3{font-size:15px;line-height:1.4;min-height:0;}
  body.storefront-app .wm-card-desc{font-size:12px;line-height:1.55;min-height:0;}
  body.storefront-app .wm-price-row{font-size:13px;}
  body.storefront-app .wm-card-actions .wm-btn{min-height:40px;font-size:11px;}
  body.storefront-app .wm-grid-compact .wm-cover{height:150px;}
}

/* Round: Campaigns / Purchases phone alignment.
   - page title block (title + subtitle) sits on the content edge; the + stays at the right of it
   - search / filter / export row lines up with the banner and table edges (no extra inset) */
@media(max-width:760px){
  body.storefront-app .wm-pur-page > .wm-page-title{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:12px;}
  body.storefront-app .wm-pur-page > .wm-page-title > div:first-child{flex:1 1 auto;min-width:0;text-align:left;}
  body.storefront-app .wm-pur-page > .wm-page-title > .wmu-add-wrap{margin-left:auto;flex:none;}
  body.storefront-app .wm-pur-search{padding:10px 0 !important;}
}
/* Phone header names the Campaigns pages */
.wmu-head-title{display:none;font-size:18px;font-weight:700;letter-spacing:-.3px;color:var(--wm-ink,#1b212d);line-height:1;margin-left:12px;white-space:nowrap;}
@media(max-width:760px){body.storefront-app .wm-mobile-brand .wmu-head-title:not(:empty){display:block;}}

/* Header title (web + phone) and header "+" (web) */
.wmu-top-title{margin:0 auto 0 0;font:700 19px 'Cabinet Grotesk',Arial,sans-serif;color:#0e1a27;letter-spacing:-.01em;white-space:nowrap;}
@media(max-width:720px){body.storefront-app .wm-topbar{justify-content:flex-start;}.wmu-top-title{font-size:17px;margin:0 auto 0 8px;}}
@media(min-width:721px){
  body.storefront-app .wm-topbar{gap:14px;}
  body.storefront-app .wm-topbar .wm-global-search{margin-right:2px;}
  body.storefront-app .wm-topbar .wmu-add-wrap{margin-left:2px;}
}
/* no yellow glow around the selected filter chip (All courses, Cohorts...) */
html body .wm-chip.is-active,html body .wm-chip:focus,html body .wm-chip:focus-visible{box-shadow:none !important;outline:0;}

/* Create an offering (course, cohort, workshop...): on web the full-screen form starts beside the menu bar,
   on the same left line as every other Storefront page, instead of opening behind it. */
@media(min-width:721px){
  body.storefront-app .wm-modal-backdrop.wm-create-fullscreen{left:var(--app-sidebar-current,248px);transition:left .22s ease;}
  body.storefront-app .wm-create-fullscreen .wm-modal{padding-left:clamp(28px,2.5vw,52px);padding-right:clamp(28px,2.5vw,52px);}
  body.storefront-app .wm-create-fullscreen #wmModalBody{margin-left:0;margin-right:auto;}
}

/* Stage 3: selected storefront tab has no green stroke (soft fill + green text only) */
html body .wmu-pill.is-active{border-color:transparent !important;}
.wmu-pill-link{padding:0 12px;}
/* Stage 3: All offerings header on phones - title, plus icon on the right, Affiliate products button under the text */
@media (max-width:720px){
  .wm-page-title:has(.wm-aff-products-btn){display:grid;grid-template-columns:1fr auto;align-items:start;gap:10px;}
  .wm-page-title:has(.wm-aff-products-btn) > div:first-child{grid-column:1;grid-row:1;min-width:0;}
  .wm-page-title:has(.wm-aff-products-btn) .wmu-add-wrap{grid-column:2;grid-row:1;margin:0;}
  .wm-page-title:has(.wm-aff-products-btn) .wm-aff-products-btn{grid-column:1 / -1;grid-row:2;justify-self:start;}
}
