/* Synergy Research prof2: shared cart sheet + checkout page, v1. Right-side sheet, max 440px, full height on phones.
   Department colours: Skin care gold #ad8a38, Alkaline Water aqua #1a8fb8, Research peptides dark grey #2b2f36 (v2, 2026-09-15: peptides grey, checkout buttons black #141618). */
.ljc-scrim{position:fixed;inset:0;background:rgba(15,15,15,.46);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:100300;opacity:0;transition:opacity .22s ease}
.ljc-scrim.on{opacity:1}
.ljc-scrim[hidden],.ljc-sheet[hidden]{display:none}
.ljc-sheet{position:fixed;top:0;right:0;bottom:0;width:min(440px,100vw);max-width:440px;background:#fff;color:#1a1a1a;z-index:100310;display:flex;flex-direction:column;box-shadow:-24px 0 60px rgba(0,0,0,.28);transform:translateX(104%);transition:transform .26s cubic-bezier(.2,.8,.2,1);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Poppins,Inter,Arial,sans-serif;font-size:15px;line-height:1.45;padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box}
.ljc-sheet *,.ljc-sheet *::before,.ljc-sheet *::after{box-sizing:border-box}
.ljc-sheet.on{transform:translateX(0)}
.ljc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid #ebe7e0;flex:0 0 auto}
.ljc-title{font-size:18px;font-weight:700;letter-spacing:-.01em}
.ljc-title .ljc-n{font-weight:500;color:#7a736a;font-size:15px;margin-left:4px}
.ljc-close{width:40px;height:40px;border:1px solid #e4dfd6;border-radius:4px;background:#fff;color:#1a1a1a;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.ljc-close:hover{background:#f5f2ec}
.ljc-body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:6px 20px 12px;-webkit-overflow-scrolling:touch}
.ljc-foot{flex:0 0 auto;border-top:1px solid #ebe7e0;padding:14px 20px 18px;background:#fff}
/* groups */
.ljc-group{padding:14px 0 6px;border-bottom:1px solid #ebe7e0}
.ljc-group:last-child{border-bottom:0}
.ljc-gh{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.ljc-gh h3{margin:0;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ljc-ink,#1a1a1a)}
.ljc-dot{width:12px;height:12px;border-radius:50%;background:var(--ljc-c,#999);flex:0 0 auto;box-shadow:0 0 0 3px color-mix(in srgb,var(--ljc-c,#999) 22%,transparent)}
.ljc-gn{margin-left:auto;font-size:12px;color:#7a736a}
.ljc-ruo{font-size:12px;color:#4b5058;background:#f0f1f3;border-left:3px solid var(--ljc-c,#2b2f36);padding:7px 10px;margin:0 0 8px;line-height:1.45}
.ljc-row{display:flex;gap:12px;padding:12px 0;border-top:1px solid #f1eee8}
.ljc-img{width:64px;height:64px;flex:0 0 auto;border-radius:4px;background:#f5f2ec;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #ebe7e0}
.ljc-img img{width:100%;height:100%;object-fit:contain;display:block}
.ljc-info{flex:1 1 auto;min-width:0}
.ljc-nm{font-weight:600;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.ljc-var{font-size:13px;color:#7a736a;margin-top:2px}
.ljc-ctl{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.ljc-qty{display:inline-flex;align-items:center;border:1px solid #e4dfd6;border-radius:4px;overflow:hidden;background:#fff}
.ljc-qty button{width:34px;height:34px;border:0;background:#fff;color:#1a1a1a;font-size:17px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.ljc-qty button:hover{background:#f5f2ec}
.ljc-qty span{min-width:30px;text-align:center;font-weight:600;font-size:14px}
.ljc-q{font-size:13px;color:#7a736a}
.ljc-rm{border:0;background:transparent;color:#7a736a;font-size:13px;cursor:pointer;padding:6px 4px;text-decoration:underline;text-underline-offset:2px}
.ljc-rm:hover{color:#b3261e}
.ljc-line{margin-left:auto;font-weight:700;font-size:15px;white-space:nowrap}
.ljc-sub{display:flex;justify-content:space-between;font-size:13px;color:#5f584f;padding:8px 0 6px;border-top:1px dashed #e4dfd6;margin-top:2px}
.ljc-sub span:last-child{font-weight:600;color:#1a1a1a}
.ljc-tot{display:flex;justify-content:space-between;font-size:18px;font-weight:700;padding:2px 0 8px}
.ljc-fine{font-size:12px;color:#7a736a;line-height:1.5;margin:0 0 12px}
.ljc-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ljc-btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border-radius:4px;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;border:1px solid #141618;background:#141618;color:#fff;font-family:inherit;line-height:1.2;text-align:center}
.ljc-btn--primary:hover{background:#2b2f36;border-color:#2b2f36}
.ljc-btn--ghost{background:#fff;color:#1a1a1a;border-color:#d9d3c8}
.ljc-btn--ghost:hover{background:#f5f2ec}
.ljc-empty{padding:40px 8px 20px;text-align:center;color:#5f584f;font-size:15px}
.ljc-emptylinks{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}
.ljc-emptylinks a{border:1px solid #d9d3c8;border-radius:4px;padding:9px 14px;color:#1a1a1a;text-decoration:none;font-size:14px;font-weight:500}
.ljc-emptylinks a:hover{background:#f5f2ec}
@media(max-width:640px){
  .ljc-sheet{width:100vw;max-width:100vw}
  .ljc-body{padding:4px 16px 12px}
  .ljc-head,.ljc-foot{padding-left:16px;padding-right:16px}
  .ljc-btns{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){ .ljc-sheet,.ljc-scrim{transition:none} }

/* ---------------- checkout page ---------------- */
.ckout{max-width:1100px;margin:0 auto;padding:clamp(24px,4vw,48px) clamp(18px,4vw,40px) 64px;display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(24px,4vw,48px);align-items:start;font-size:16px}
.ckout *,.ckout *::before,.ckout *::after{box-sizing:border-box}
.ckout h1{font-size:clamp(30px,4vw,44px);font-weight:700;letter-spacing:-.03em;margin:0 0 6px}
.ckout .ck-lead{color:#5f584f;margin:0 0 22px;max-width:56ch;line-height:1.55}
.ck-panel{background:#fff;border:1px solid #ebe7e0;border-radius:8px;padding:clamp(18px,3vw,28px)}
.ck-panel h2{font-size:18px;font-weight:700;margin:0 0 14px}
.ck-summary{position:sticky;top:84px}
.ck-summary .ljc-group{padding-top:10px}
.ck-field{margin-bottom:14px;min-width:0}
.ck-field label{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5f584f;margin:0 0 6px}
.ck-field input,.ck-field select,.ck-field textarea{width:100%;font-size:16px;padding:12px 14px;border:1px solid #d9d3c8;border-radius:4px;background:#fff;color:#1a1a1a;font-family:inherit;min-height:48px}
.ck-field input:focus,.ck-field select:focus,.ck-field textarea:focus{outline:2px solid #141618;outline-offset:1px;border-color:#141618}
.ck-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ck-lbl{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5f584f;margin:20px 0 8px}
.ck-opt{display:flex;align-items:flex-start;gap:12px;border:1px solid #d9d3c8;border-radius:4px;padding:14px 16px;margin-bottom:10px;cursor:pointer;background:#fff}
.ck-opt.on{border-color:#141618;box-shadow:inset 0 0 0 1px #141618}
.ck-opt input{margin:4px 0 0;width:18px;height:18px;flex:0 0 auto;accent-color:#141618}
.ck-opt .nm{font-weight:600;font-size:15px}
.ck-opt .sub{font-size:13px;color:#7a736a;margin-top:2px;line-height:1.45}
.ck-opt .pr{margin-left:auto;font-weight:600;white-space:nowrap;font-size:14px}
.ck-agree{display:flex;gap:12px;align-items:flex-start;font-size:14px;color:#3b4650;line-height:1.5;margin:18px 0 6px;background:#f0f1f3;border-left:3px solid #2b2f36;padding:12px 14px;border-radius:4px}
.ck-agree input{margin-top:3px;width:18px;height:18px;flex:0 0 auto;accent-color:#141618}
.ck-agree a{color:inherit;text-decoration:underline}
.ck-agree[hidden]{display:none}
.ck-err{color:#b3261e;font-size:14px;min-height:20px;margin:8px 0 0}
.ck-place{width:100%;min-height:52px;margin-top:14px;font-size:16px;background:#141618;border-color:#141618;color:#fff}
.ck-fine{font-size:12px;color:#7a736a;line-height:1.55;margin:12px 0 0}
.ck-done{text-align:center;padding:30px 10px}
.ck-done .ok{width:56px;height:56px;border-radius:50%;background:#141618;color:#fff;font-size:28px;display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.ck-done h2{font-size:24px;margin:0 0 8px}
.ck-done p{color:#5f584f;margin:0 0 14px;line-height:1.55}
.ck-done .ref{display:inline-block;font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;font-size:14px;background:#f5f2ec;border:1px solid #e4dfd6;border-radius:4px;padding:8px 14px;letter-spacing:.06em}
.ck-back{display:inline-flex;align-items:center;gap:6px;color:#1a1a1a;text-decoration:none;font-size:14px;font-weight:500;margin-bottom:14px;border-bottom:1px solid transparent}
.ck-back:hover{border-bottom-color:#1a1a1a}
@media(max-width:860px){
  .ckout{grid-template-columns:1fr}
  .ck-summary{position:static;order:-1}
}
@media(max-width:560px){ .ck-2col{grid-template-columns:1fr} }

/* v3: cart is a floating rounded panel (checkout aesthetics: Inter, 8px panels, ink buttons), fades/scales in from the corner instead of sliding */
.ljc-sheet{top:auto;bottom:24px;right:24px;left:auto;height:min(78vh,720px);max-height:calc(100vh - 48px);width:min(420px,calc(100vw - 48px));max-width:420px;border-radius:14px;overflow:hidden;border:1px solid #ebe7e0;box-shadow:0 24px 64px rgba(0,0,0,.24),0 2px 8px rgba(0,0,0,.08);transform:translateY(16px) scale(.96);opacity:0;transform-origin:bottom right;transition:opacity .22s ease,transform .26s cubic-bezier(.2,.8,.2,1);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.ljc-sheet.on{transform:translateY(0) scale(1);opacity:1}
.ljc-scrim{background:rgba(15,15,15,.32)}
.ljc-head{padding:18px 20px 14px}
.ljc-title{font-size:18px;font-weight:700;letter-spacing:-.02em}
.ljc-close{border-radius:4px}
.ljc-foot{border-radius:0 0 14px 14px}
@media(max-width:640px){
  .ljc-sheet{right:12px;left:12px;bottom:12px;width:auto;max-width:none;height:auto;max-height:calc(100vh - 24px - env(safe-area-inset-top));border-radius:14px}
}

/* v4: phones: the floating cart must fit the visible viewport (dynamic vh for mobile browser bars), never run off the top */
@media(max-width:640px){
  .ljc-sheet{top:auto !important;bottom:12px !important;height:auto !important;max-height:min(calc(100vh - 24px),calc(100dvh - 24px)) !important;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) !important;bottom:calc(12px + env(safe-area-inset-bottom,0px)) !important}
  .ljc-body{min-height:0;flex:1 1 auto}
  .ljc-head,.ljc-foot{flex:0 0 auto}
  .ljc-foot{padding:12px 16px 14px}
  .ljc-fine{margin-bottom:10px}
  .ljc-btn{min-height:44px;padding:10px 14px}
}
.ljc-btns--one{grid-template-columns:1fr}
