/* WOW Body web editor. Uses the tokens and buttons from landing.css. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--subtle); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.form-error { margin: 0; color: #B3261E; font-size: 14px; font-weight: 600; }
.form-note { margin: 0; color: var(--green); font-size: 14px; font-weight: 600; }

/* Top bar */
.ed-top { border-bottom: 2px solid var(--border-light); padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand--small img { width: 36px; height: 36px; }
.brand--small span { font-size: 19px; }
.ed-steps { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ed-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 100px; }
.ed-steps .dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--border-light); color: var(--text); }
.ed-steps li.is-active { font-weight: 700; color: var(--ink); background: var(--primary-soft); }
.ed-steps li.is-active .dot, .ed-steps li.is-done .dot { background: var(--primary); color: #FFFFFF; }
.ed-account { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.credits-pill { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 100px; }
.account-email { font-size: 14px; font-weight: 600; color: var(--text); padding: 10px 4px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { background: none; border: 0; color: var(--text); font-weight: 600; font-size: 14px; padding: 10px 6px; min-height: 44px; }
.link-btn:hover { color: var(--primary); }
.link-btn--primary { color: var(--primary); }
.btn-small { font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; min-height: 44px; }
.btn-small--outline { background: #FFFFFF; border: 2px solid var(--primary); color: var(--primary); }
.btn-small--outline:hover { background: var(--primary-soft); }

/* Buttons extra */
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn--block { display: block; width: 100%; }
.btn--big { font-size: 17px; padding: 16px; min-height: 52px; }
.btn--outline { background: #FFFFFF; border: 2px solid var(--primary) !important; color: var(--primary); font-size: 15px; padding: 13px; min-height: 48px; }
.btn--outline:hover { background: var(--primary-soft); }
.btn--disabled, .btn--disabled:hover { background: var(--border); color: var(--muted); box-shadow: none; cursor: default; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* Layout */
.ed-layout { max-width: 1360px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; }
.ed-canvas { flex: 999 1 520px; min-width: 0; background: var(--bg-soft); border-radius: 24px; min-height: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 18px; }
.ed-panel { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { border: 2px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }

/* Upload */
.upload { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.dropzone-big { border: 2px dashed #C9C6F5; background: #FFFFFF; border-radius: 24px; padding: 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; cursor: pointer; }
.dropzone-big.is-over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone-big:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.dropzone-big h1 { font-size: 26px; font-weight: 800; color: var(--ink); }
.dropzone-big-icon { width: 68px; height: 68px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.upload-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tip-chip { background: #FFFFFF; border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.tip-chip .tick { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.tip-chip--warn { background: #FFF8EE; }
.tip-chip--warn .tick { background: #FFE9CC; color: #8A4B00; }

/* Photo */
.photo-view { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.photo-frame { position: relative; width: 100%; max-width: 480px; border-radius: 20px; overflow: hidden; background: var(--border); box-shadow: 0 0 30px rgba(76,75,94,0.12); }
.photo-frame > img { display: block; width: 100%; height: auto; }
.after-layer { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.after-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #FFFFFF; box-shadow: 0 0 6px rgba(38,16,61,0.4); pointer-events: none; }
.tag { position: absolute; bottom: 14px; color: #FFFFFF; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.tag--before { left: 14px; background: rgba(38,16,61,0.75); }
.tag--after { right: 14px; background: var(--primary); }
.face-lock { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.92); color: var(--green); font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 100px; }
.processing { position: absolute; inset: 0; background: rgba(38,16,61,0.62); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #FFFFFF; padding: 24px; text-align: center; }
.processing-title { font-size: 20px; font-weight: 800; animation: wbpulse 1.4s ease-in-out infinite; }
.processing-note { font-size: 14px; color: #E6DFF5; }
.progress { width: 80%; height: 8px; background: rgba(255,255,255,0.25); border-radius: 100px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--pink); border-radius: 100px; animation: wbprogress 30s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes wbprogress { from { width: 4%; } to { width: 96%; } }
@keyframes wbpulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.compare { width: 100%; max-width: 480px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.compare input { flex: 1; min-height: 44px; accent-color: var(--primary); }

/* Panel */
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.panel h2 { font-size: 20px; font-weight: 800; color: var(--ink); }
.segmented--small { width: 180px; }
.segmented--small button { padding: 10px; min-height: 44px; font-size: 14px; }
.tabs { display: flex; gap: 24px; border-bottom: 2px solid var(--border-light); }
.tabs button { background: none; border: 0; padding: 10px 0 12px; margin-bottom: -2px; min-height: 44px; font-size: 16px; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.tab-note { font-weight: 500; font-size: 13px; color: var(--muted); }
.styles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.style-card { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; border-radius: 14px; text-align: left; background: #FFFFFF; border: 2px solid var(--border); font-family: inherit; }
.style-card[aria-pressed="true"] { background: var(--primary-soft); border: 3px solid var(--primary); padding: 7px 7px 11px; }
.style-thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--border); }
.style-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Badge uses the WOW Body app's font: SF Pro Text Semibold (built into Apple devices; Inter elsewhere). */
.popular { position: absolute; top: 8px; left: 8px; background: var(--pink); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1px; padding: 4px 8px; border-radius: 100px; }
.style-name { font-weight: 800; font-size: 15px; color: var(--ink); }
.style-desc { font-size: 12px; line-height: 1.35; color: var(--muted); }
.parts-list { display: flex; flex-direction: column; gap: 8px; }
.part-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 14px; min-height: 64px; background: #FFFFFF; border: 2px solid var(--border); font-family: inherit; text-align: left; }
.part-row[aria-pressed="true"] { background: var(--primary-soft); border: 3px solid var(--primary); padding: 7px 13px 7px 7px; }
.part-row img { width: 48px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.part-row--soon { border-style: dashed; background: var(--bg-soft); cursor: default; }
.part-row--soon .part-text strong { color: var(--muted); }
.soon-thumb { width: 48px; height: 56px; border-radius: 8px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); }
.soon-pill { flex: 0 0 auto; background: #FFFFFF; color: var(--primary-dark); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 100px; border: 1px solid var(--border); }
.part-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.part-text strong { font-weight: 700; font-size: 15px; color: var(--ink); }
.part-text span { font-size: 13px; color: var(--muted); }
.radio { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; border: 2px solid #A3A2B9; }
[aria-pressed="true"] > .radio, [aria-checked="true"] > .radio { border: 6px solid var(--primary); }
.hint-row { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.hint-row strong { color: var(--ink); }
.apply-block { display: flex; flex-direction: column; gap: 10px; }
.result-head { display: flex; align-items: center; gap: 10px; }
.result-head h2 { font-size: 21px; }
.done-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--check); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
#result-panel { gap: 14px; }

/* Checkout */
.modal-backdrop { position: fixed; inset: 0; background: rgba(38,16,61,0.55); display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px; overflow-y: auto; z-index: 50; }
.modal { background: #FFFFFF; border-radius: 24px; width: 100%; max-width: 500px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(38,16,61,0.3); position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; background: var(--border-light); border-radius: 50%; color: var(--text); display: flex; align-items: center; justify-content: center; }
.modal-title { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--ink); padding-right: 48px; }
.signin { background: var(--bg-soft); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.signin label { font-weight: 700; font-size: 14px; color: var(--ink); }
.signin input { font-family: inherit; font-size: 16px; padding: 13px 14px; border: 2px solid var(--border); border-radius: 10px; background: #FFFFFF; color: var(--ink); min-height: 48px; width: 100%; }
.signin input:focus { outline: none; border-color: var(--primary); }
#signin-code { letter-spacing: 6px; font-size: 22px; font-weight: 700; text-align: center; }
.signed-in-note { background: var(--green-bg); color: var(--green); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.packs { display: flex; flex-direction: column; gap: 10px; }
.pack { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; min-height: 64px; background: #FFFFFF; border: 2px solid var(--border); font-family: inherit; text-align: left; }
.pack[aria-checked="true"] { background: #F7F5FF; border: 3px solid var(--primary); padding: 13px 15px; }
.pack-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pack-text strong { font-weight: 800; font-size: 17px; color: var(--ink); }
.pack-text span { font-size: 13px; color: var(--subtle); }
.pack .save { font-size: 12px; padding: 4px 9px; }
.pack-price { font-weight: 800; font-size: 18px; color: var(--ink); }
.pay-soon { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(38,16,61,0.3); }

@media (max-width: 600px) {
  .ed-top { padding: 12px 16px; }
  .ed-steps { order: 3; width: 100%; margin: 0; justify-content: center; }
  .ed-steps li { padding: 6px 8px; font-size: 13px; }
  .ed-layout { padding: 16px; gap: 16px; }
  .ed-canvas { min-height: 0; padding: 20px 12px; }
  .panel { padding: 18px; }
  .upload-tips { grid-template-columns: 1fr; }
  .dropzone-big { padding: 28px 16px; }
  .modal { padding: 22px 18px; }
  .modal-backdrop { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .processing-title { animation: none; }
  .progress-bar { animation-duration: 1ms; }
}

.save-hint { margin: -4px 0 0; }
.report-form { background: var(--bg-soft); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.report-form label { font-weight: 700; font-size: 14px; color: var(--ink); }
.report-form textarea { font-family: inherit; font-size: 15px; padding: 10px 12px; border: 2px solid var(--border); border-radius: 10px; resize: vertical; background: #FFFFFF; color: var(--ink); }
.report-form textarea:focus { outline: none; border-color: var(--primary); }
