/* Curated orders (CURATED_ORDERS_ENABLED; curated-orders.js). Member card: inside My Plan's .j2-theme, it uses the
   page's own glass card, list rows and flat bronze button; only the price and total rows are added here. Owner
   sheet: one glass sheet over Member 360, Pearl by day and Smoke by night. Nothing here changes layout outside it. */

/* ---- Member card (My Plan) */
.co-card { gap: 10px; }
.co-card h3 { font-size: 26px; line-height: 1.05; margin: 0; }
.co-card h3 + .j2-muted { margin: -6px 0 0; }
.co-mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.co-mhead .j2-link { min-height: 32px; }
.co-mlist { display: flex; flex-direction: column; }
.co-mline { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border: 0; border-top: 1px solid var(--j2-line); background: none; width: 100%; text-align: left; color: var(--j2-ink); font: inherit; }
.co-mlist > .co-mline:first-child { border-top: 0; }
.co-mgrow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-mgrow b { font-weight: 400; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-mgrow span { font-size: 12.5px; color: var(--j2-ink-3); }
.co-price { margin-left: auto; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.co-price s { color: var(--j2-ink-3); font-size: 13px; margin-right: 6px; text-decoration-thickness: 1px; }
.co-price b { font-weight: 600; color: var(--j2-ink); }
.co-total { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--j2-line); }
.co-total > span:first-child { font: 11px/1.2 var(--j2-label); letter-spacing: .14em; text-transform: uppercase; color: var(--j2-sand-text); }
.co-total .co-price b { font-size: 18px; }
a.co-checkout, a.co-message { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.co-until, .co-more { margin: 0; color: var(--j2-ink-2); }
.co-more { padding: 2px 0 4px; }
.co-pastrow { cursor: pointer; }
.j2-sheet .co-mlist { margin: 6px 0 4px; }
.j2-sheet .co-total { margin-bottom: 12px; }
.j2-sheet a.co-checkout { margin-bottom: 8px; }

/* ---- Owner sheet (Member 360) */
.co-theme {
  --co-glass: rgba(255,252,247,.94); --co-solid: #fbf8f3; --co-hair: rgba(166,136,110,.30); --co-ink: #252525; --co-ink-2: rgba(37,37,37,.66);
  --co-sand: #786450; --co-primary: #7A6247; --co-on-primary: #FAF8F4; --co-field: rgba(255,255,255,.72); --co-line: rgba(37,37,37,.10);
  --co-warn: #a3402b; --co-scrim: rgba(30,24,18,.38);
  --co-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 24px 60px -24px rgba(96,66,38,.40);
}
html[data-theme="night"] .co-theme, html[data-theme="sunset"] .co-theme {
  --co-glass: rgba(48,44,39,.96); --co-solid: #302c27; --co-hair: rgba(200,168,135,.30); --co-ink: #f4efe8; --co-ink-2: rgba(244,239,232,.72);
  --co-sand: #d6b994; --co-primary: #d8bb9a; --co-on-primary: #25211c; --co-field: rgba(255,255,255,.06); --co-line: rgba(231,210,183,.16);
  --co-warn: #e8876f; --co-scrim: rgba(0,0,0,.55);
  --co-shadow: inset 0 1px 0 rgba(255,236,214,.10), 0 24px 60px -24px rgba(0,0,0,.70);
}
.co-scrim { position: fixed; inset: 0; z-index: 2147483000; background: var(--co-scrim); display: flex; align-items: flex-end; justify-content: center; color: var(--co-ink); font-size: 15px; }
.co-sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--co-glass); border: 1px solid var(--co-hair); box-shadow: var(--co-shadow); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6); outline: none; }
@media (min-width: 800px) { .co-scrim { align-items: center; } .co-sheet { border-radius: 26px; padding: 14px 24px 22px; } }
.co-grab { width: 38px; height: 4px; border-radius: 4px; background: var(--co-hair); margin: 0 auto 8px; }
@media (min-width: 800px) { .co-grab { display: none; } }
.co-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.co-head > div { flex: 1; min-width: 0; }
.co-head h3 { margin: 0; font: 400 28px/1 "Bebas Neue", "Russo One", Impact, sans-serif; letter-spacing: .02em; }
.co-eye { font: 11px/1.2 "Russo One", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--co-sand); }
.co-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--co-hair); background: transparent; color: var(--co-ink); font-size: 22px; cursor: pointer; }
.co-link { background: none; border: 0; color: var(--co-sand); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; min-height: 44px; }
.co-in { box-sizing: border-box; min-height: 44px; border-radius: 14px; border: 1px solid var(--co-hair); background: var(--co-field); color: var(--co-ink); font: inherit; font-size: 16px; padding: 8px 12px; }
.co-search { display: block; }
.co-search .co-in { width: 100%; }
.co-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-results { display: flex; flex-direction: column; margin: 6px 0 10px; border: 1px solid var(--co-line); border-radius: 16px; overflow: hidden; }
.co-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--co-line); background: transparent; color: var(--co-ink); font: inherit; text-align: left; cursor: pointer; }
.co-row:last-child { border-bottom: 0; }
.co-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-grow b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.co-grow span { font-size: 13px; color: var(--co-ink-2); }
.co-amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-amt s { color: var(--co-ink-2); font-size: 13px; margin-right: 2px; }
.co-add { font: 12px/1 "Russo One", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--co-sand); }
.co-lines { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.co-line { border: 1px solid var(--co-line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.co-lhead { display: flex; gap: 10px; align-items: flex-start; }
.co-lctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.co-step { display: inline-flex; align-items: center; border: 1px solid var(--co-hair); border-radius: 999px; }
.co-step button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--co-ink); font-size: 20px; cursor: pointer; }
.co-step button:disabled { opacity: .35; cursor: default; }
.co-step output { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.co-disc { display: inline-flex; align-items: center; gap: 6px; }
.co-dtype { width: 100px; }
.co-dval { width: 92px; }
.co-ldisc { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--co-ink-2); }
.co-tiny { font-size: 12px; color: var(--co-ink-2); }
.co-x { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--co-hair); background: transparent; color: var(--co-ink); font: inherit; font-size: 13px; cursor: pointer; margin-left: auto; }
.co-danger { color: var(--co-warn); }
.co-orderdisc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.co-reason { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--co-ink-2); margin: 6px 0; }
.co-reason textarea { resize: vertical; min-height: 64px; }
.co-rx { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 6px 0; border-radius: 14px; border: 1px solid var(--co-hair); font-size: 14px; cursor: pointer; }
.co-rx input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--co-primary); flex: none; }
.co-sum { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--co-line); margin-top: 6px; font-variant-numeric: tabular-nums; }
.co-sum div { display: flex; justify-content: space-between; color: var(--co-ink-2); }
.co-sum .co-grand { color: var(--co-ink); font-size: 18px; }
.co-sum .co-grand b { font-weight: 700; }
.co-note { font-size: 13px; line-height: 1.45; color: var(--co-ink-2); margin: 6px 0; min-height: 1em; }
.co-warn { color: var(--co-warn); }
.co-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.co-btn { min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--co-primary); color: var(--co-on-primary); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
.co-btn:disabled { opacity: .45; cursor: default; }
.co-btn.co-ghost { background: transparent; color: var(--co-ink); border: 1px solid var(--co-hair); }
.co-foot { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); margin: 0 -16px calc(-18px - env(safe-area-inset-bottom, 0px)); padding: 4px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--co-solid); box-shadow: 0 -12px 24px -18px rgba(0,0,0,.25); border-top: 1px solid var(--co-line); }
.co-foot .co-sum { border-top: 0; margin-top: 0; }
@media (min-width: 800px) { .co-foot { bottom: -22px; margin: 0 -24px -22px; padding: 4px 24px 18px; } }
body.co-open { overflow: hidden; }
/* Supply logistics per line (owner, Nov 30): one fixed-height row; the error line keeps its space (rule 3). */
.co-lsup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; min-height: 40px; }
.co-lsup .co-sdl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2, var(--ink)); }
.co-lsup .co-sdays { width: 72px; height: 36px; box-sizing: border-box; }
.co-lsup .co-sdays[aria-invalid="true"] { border-color: var(--red, #B04A3A); }
.co-lsup .co-rem input { accent-color: var(--sand-deep, #7A6247); width: 18px; height: 18px; }
.co-lsup .co-rem { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2, var(--ink)); cursor: pointer; }
.co-lsup .co-serr { flex-basis: 100%; min-height: 16px; font-size: 12px; line-height: 16px; color: var(--red, #B04A3A); }
