/* Shoe Customizer — frontend widget. Scoped under .sc-customizer to avoid theme clashes.
 *
 * 0.5.0 "studio" layout: stage (shoe) + a FIXED-HEIGHT step panel. Only one step pane is shown at
 * a time, so moving through the steps never changes the page height. Below ~760px of container
 * width it stacks: the stage sticks to the top, the footer (price + Next) sticks to the bottom.
 * Container queries, not media queries — the widget may sit full-width or inside a narrow tab.
 */
.sc-customizer {
	--sc-line: #e5e7eb; --sc-ink: #1a1d21; --sc-muted: #6b7280; --sc-dark: #111;
	--sc-soft: #f6f7f9; --sc-accent: #f26b21; --sc-ok: #15803d; --sc-bad: #b91c1c;
	--sc-h: 560px;              /* studio height (desktop) */
	--sc-sticky-top: 0px;       /* raise if the theme has a sticky header on phones */
	--sc-ar: 1.7778;            /* canvas aspect, set from config by the script */
	container-type: inline-size;
	color: var(--sc-ink); white-space: normal; line-height: 1.4; font-size: 14px;
	margin: 8px 0 24px;
}
.sc-customizer * { box-sizing: border-box; }
.sc-customizer [hidden] { display: none !important; }
/* neutralise theme button styling (uppercase, padding, shadows) inside the widget */
.sc-customizer button {
	font: inherit; text-transform: none; letter-spacing: normal; line-height: 1.2;
	min-height: 0; box-shadow: none; margin: 0; color: inherit;
}
.sc-customizer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-customizer .sc-loading,
.sc-customizer .sc-error { padding: 24px; color: var(--sc-muted); font-size: 14px; }
.sc-customizer .sc-error { color: var(--sc-bad); }

/* ---- studio ---- */
.sc-customizer .sc-studio {
	display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px;
	height: var(--sc-h);
}

/* ---- stage ---- */
.sc-customizer .sc-stage {
	position: relative; background: #fff; border: 1px solid var(--sc-line); border-radius: 14px;
	padding: 14px; display: flex; align-items: center; justify-content: center; min-height: 0;
}
.sc-customizer .sc-stage.sc-busy::after {
	content: "Rendering…"; position: absolute; inset: 0; display: flex; align-items: center;
	justify-content: center; color: var(--sc-muted); font-size: 13px; background: #fff; border-radius: 14px;
}
/* fit the 16:9 canvas inside the fixed-height stage without overflowing either axis */
.sc-customizer .sc-canvas-wrap {
	position: relative; width: 100%; aspect-ratio: var(--sc-ar);
	max-width: calc((var(--sc-h) - 30px) * var(--sc-ar));
}
.sc-customizer .sc-canvas { display: block; width: 100%; height: auto; border-radius: 8px; }
/* Editing chrome (zone pulse, print-area outline + logo handle) — layered over the mockup
   canvas, never baked into the exported/cart image. Lets the page scroll unless dragging a logo. */
.sc-customizer .sc-overlay {
	position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; touch-action: manipulation;
}
.sc-customizer[data-step="logo"] .sc-overlay { touch-action: none; cursor: move; }

.sc-customizer .sc-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.sc-customizer .sc-tool {
	width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0; border: 1px solid var(--sc-line); border-radius: 50%; background: rgba(255,255,255,.92);
	color: var(--sc-ink); cursor: pointer;
}
.sc-customizer .sc-tool:hover { background: var(--sc-soft); }
/* ---- camera views (0.11.0) ---- */
.sc-customizer .sc-views { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.sc-customizer .sc-views[hidden] { display: none; }
.sc-customizer .sc-view {
	display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; padding: 4px 4px 3px;
	border: 1px solid var(--sc-line); border-radius: 9px; background: rgba(255,255,255,.94); cursor: pointer;
	font-size: 11px; line-height: 1.2; color: var(--sc-muted);
}
.sc-customizer .sc-view img { width: 100%; height: 40px; object-fit: contain; display: block; }
.sc-customizer .sc-view:hover { background: var(--sc-soft); }
.sc-customizer .sc-view.on { border-color: var(--sc-dark); color: var(--sc-ink); font-weight: 600; box-shadow: 0 0 0 1px var(--sc-dark); }
/* 0.14.0: shared close-ups (tongue tag, insole) — thumbnails only while on offer */
.sc-customizer .sc-view[hidden] { display: none; }
.sc-customizer .sc-view.sc-view-detail img { object-fit: cover; border-radius: 5px; }
.sc-customizer .sc-view-note {
	position: absolute; left: 50%; bottom: 42px; transform: translateX(-50%); max-width: calc(100% - 20px);
	background: rgba(255,255,255,.92); color: var(--sc-muted); font-size: 12px; padding: 4px 10px;
	border: 1px solid var(--sc-line); border-radius: 999px; white-space: nowrap; overflow: hidden;
	text-overflow: ellipsis; pointer-events: none;
}
.sc-customizer .sc-view-note[hidden] { display: none; }
.sc-customizer .sc-stage-hint[hidden] + .sc-view-note { bottom: 10px; }
.sc-customizer .sc-insole-dir { margin-top: 12px; }
.sc-customizer .sc-insole-dir-t { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.sc-customizer .sc-insole-dir .sc-opt-pairnote { margin-left: 0; }
/* 0.14.1: which logo goes on the insole */
.sc-customizer .sc-insole-which-t { font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.sc-customizer .sc-insole-logos { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.sc-customizer .sc-insole-logo {
	display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; min-height: 44px; padding: 5px;
	border: 1px solid var(--sc-line); border-radius: 9px; background: #fff; cursor: pointer; font: inherit; font-size: 11px; color: var(--sc-muted);
}
.sc-customizer .sc-insole-logo img { width: 100%; height: 36px; object-fit: contain; display: block; }
.sc-customizer .sc-insole-logo.on { border-color: var(--sc-dark); color: var(--sc-ink); font-weight: 600; box-shadow: 0 0 0 1px var(--sc-dark); }
.sc-customizer .sc-insole-up {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
	border: 1px dashed var(--sc-line); border-radius: 9px; font-size: 12px; cursor: pointer; color: var(--sc-ink);
}
.sc-customizer .sc-insole-up:hover { background: var(--sc-soft); }
.sc-customizer .sc-insole-dir.sc-logo-busy { opacity: .6; pointer-events: none; }
/* 0.14.6: size / rotate the logo on a close-up */
.sc-customizer .sc-detail-adj .sc-logo-scale { margin-top: 10px; }
.sc-customizer .sc-det-reset {
	margin-top: 8px; padding: 6px 10px; font-size: 12px; color: var(--sc-muted); background: transparent;
	border: 1px solid var(--sc-line, #d8dbe0); border-radius: 6px; cursor: pointer;
}
.sc-customizer .sc-det-reset:hover { background: var(--sc-soft); color: var(--sc-ink); }
.sc-customizer .sc-stage-hint {
	position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 20px);
	background: rgba(17,17,17,.78); color: #fff; font-size: 12px; padding: 5px 11px; border-radius: 999px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}

/* ---- panel ---- */
.sc-customizer .sc-panel {
	display: flex; flex-direction: column; min-height: 0; background: #fff;
	border: 1px solid var(--sc-line); border-radius: 14px; overflow: hidden;
}
.sc-customizer .sc-head { padding: 12px 16px 0; }
.sc-customizer .sc-name { font-weight: 700; font-size: 16px; }

.sc-customizer .sc-steps {
	list-style: none; margin: 0; padding: 10px 12px; display: flex; gap: 4px;
	border-bottom: 1px solid var(--sc-line); overflow-x: auto; scrollbar-width: none;
}
.sc-customizer .sc-steps::-webkit-scrollbar { display: none; }
/* 0.16.1: a long options list squashed the step row (circles cut in half on Mad Alice) */
.sc-customizer .sc-head, .sc-customizer .sc-steps { flex-shrink: 0; }
.sc-customizer .sc-steps li { margin: 0; padding: 0; flex: 0 0 auto; }
.sc-customizer .sc-steps li::before { content: none; }
.sc-customizer .sc-step {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 0;
	background: none; border-radius: 999px; cursor: pointer; color: var(--sc-muted); font-size: 13px;
}
.sc-customizer .sc-step-n {
	width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center;
	justify-content: center; font-size: 11px; font-weight: 700; background: var(--sc-soft); color: var(--sc-muted);
}
.sc-customizer .sc-step:hover { background: var(--sc-soft); }
.sc-customizer .sc-step.on { color: var(--sc-ink); font-weight: 600; }
.sc-customizer .sc-step.on .sc-step-n { background: var(--sc-dark); color: #fff; }
.sc-customizer .sc-step.done .sc-step-n { background: var(--sc-ok); color: #fff; font-size: 0; }
.sc-customizer .sc-step.done .sc-step-n::after { content: "✓"; font-size: 11px; }
.sc-customizer .sc-steps-many .sc-step-l { display: none; }
.sc-customizer .sc-steps-many .sc-step.on .sc-step-l { display: inline; }

.sc-customizer .sc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px; }
.sc-customizer .sc-hint { margin: 0 0 10px; color: var(--sc-muted); font-size: 13px; }

/* ---- colours step ---- */
.sc-customizer .sc-zpills { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-customizer .sc-zpill {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; font-size: 13px;
	border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; cursor: pointer; white-space: nowrap;
}
.sc-customizer .sc-zpill:hover { border-color: #c4c8cf; }
.sc-customizer .sc-zpill.on { border-color: var(--sc-dark); box-shadow: inset 0 0 0 1px var(--sc-dark); font-weight: 600; }
.sc-customizer .sc-zdot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: 0 0 auto; }
/* colour charge: "+A$15" on a zone pill (filled once a colour is applied), and a note under the heading */
.sc-customizer .sc-zfee {
	font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 5px; margin-right: -4px; border-radius: 999px;
	color: var(--sc-accent); border: 1px solid currentColor; background: #fff;
}
.sc-customizer .sc-zfee.on { background: var(--sc-accent); border-color: var(--sc-accent); color: #fff; }
.sc-customizer .sc-zcharge { margin: -4px 0 10px; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-zcharge.on { color: var(--sc-accent); font-weight: 600; }

.sc-customizer .sc-zcur {
	display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; padding-top: 12px;
	border-top: 1px solid var(--sc-line);
}
.sc-customizer .sc-zcur-t { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; align-items: baseline; }
.sc-customizer .sc-zcur-name { font-weight: 700; }
.sc-customizer .sc-zcur-val { color: var(--sc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-customizer .sc-zcount { color: var(--sc-muted); font-size: 12px; }
.sc-customizer .sc-znav {
	width: 28px; height: 28px; padding: 0; border: 1px solid var(--sc-line); border-radius: 50%;
	background: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}
.sc-customizer .sc-znav:hover { background: var(--sc-soft); }

.sc-customizer .sc-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-customizer .sc-chip {
	width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d8dbe0; cursor: pointer; padding: 0;
}
.sc-customizer .sc-white,
.sc-customizer .sc-chip.sc-white {
	background: linear-gradient(45deg,#eee 25%,transparent 25%,transparent 75%,#eee 75%),
	            linear-gradient(45deg,#eee 25%,#fff 25%,#fff 75%,#eee 75%);
	background-size: 10px 10px; background-position: 0 0, 5px 5px;
}
.sc-customizer .sc-chip.on { border-color: #fff; box-shadow: 0 0 0 2px var(--sc-dark); }

/* ---- brand colours (0.8.0): logo colours + hex box; hidden on palette-only zones (laces) ---- */
.sc-customizer .sc-lace-note { margin: 12px 0 0; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-brand { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sc-line); }
.sc-customizer .sc-brand-t { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.sc-customizer .sc-brand-sw { margin-bottom: 10px; }
.sc-customizer .sc-hexrow { display: flex; gap: 8px; align-items: center; }
/* 0.8.1: the native colour input is invisible on top of a face: a colour wheel until a colour is
   chosen, then that colour. Placeholder text is explicitly grey (the theme makes it black). */
.sc-customizer .sc-hexpick-wrap {
	position: relative; flex: 0 0 auto; width: 40px; height: 36px; margin: 0; padding: 3px;
	border: 1px solid var(--sc-line); border-radius: 8px; background: #fff; cursor: pointer;
}
.sc-customizer .sc-hexpick-face {
	display: block; width: 100%; height: 100%; border-radius: 5px;
	background: conic-gradient(#f43f5e, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #f43f5e);
}
.sc-customizer .sc-hexpick {
	position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
	padding: 0; border: 0; margin: 0;
}
.sc-customizer .sc-hex {
	flex: 1 1 auto; min-width: 0; height: 36px; padding: 6px 10px; font-size: 14px; text-transform: uppercase;
	border: 1px solid var(--sc-line); border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace;
	color: var(--sc-ink); background: #fff;
}
.sc-customizer .sc-hex::placeholder { color: #9ca3af; opacity: 1; text-transform: none; font-family: inherit; }
.sc-customizer .sc-hexapply {
	flex: 0 0 auto; height: 36px; padding: 0 14px; border: 1px solid var(--sc-dark); background: #fff;
	border-radius: 8px; font-weight: 600; cursor: pointer;
}
.sc-customizer .sc-hexapply:hover { background: var(--sc-soft); }
.sc-customizer .sc-brand-for { display: block; margin: 0 0 6px; font-size: 13px; color: var(--sc-ink); }
.sc-customizer .sc-brand-help { margin: 8px 0 0; font-size: 12px; color: var(--sc-muted); line-height: 1.5; }
.sc-customizer .sc-brand-logo {
	display: inline; border: 0; background: none; padding: 0; font: inherit; font-weight: 600;
	color: var(--sc-ink); text-decoration: underline; cursor: pointer;
}
.sc-customizer .sc-brand-note { margin: 4px 0 0; font-size: 12px; color: var(--sc-muted); font-style: italic; }

/* ---- extras step (paid option groups) ---- */
.sc-customizer .sc-optgroup-f { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--sc-line); }
.sc-customizer .sc-optgroup-f:last-child { border-bottom: 0; margin-bottom: 0; }
.sc-customizer .sc-optgroup-t { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.sc-customizer .sc-req { color: var(--sc-bad); }
.sc-customizer .sc-opt-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-customizer .sc-opt-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-customizer .sc-opt-btn {
	font-size: 13px; padding: 7px 11px; border: 1px solid var(--sc-line); background: #fff;
	border-radius: 8px; cursor: pointer;
}
.sc-customizer .sc-opt-btn.on { border-color: var(--sc-dark); background: var(--sc-dark); color: #fff; }
.sc-customizer .sc-opt-select,
.sc-customizer .sc-opt-text {
	width: 100%; font-size: 14px; padding: 8px 10px; border: 1px solid var(--sc-line); border-radius: 8px;
}
.sc-customizer .sc-opt-textnote { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--sc-muted); }

/* ---- logo step ---- */
.sc-customizer .sc-logo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-customizer .sc-logo-btn {
	display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; padding: 9px 14px;
	border: 1px solid var(--sc-dark); background: var(--sc-dark); color: #fff; border-radius: 9px;
	cursor: pointer; margin: 0;
}
.sc-customizer .sc-logo-btn:hover { background: #000; }
.sc-customizer .sc-logo-btn.sc-off { background: #9ca3af; border-color: #9ca3af; cursor: not-allowed; }
.sc-customizer .sc-logo-count { font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-logo-fee { margin-top: 8px; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-logo-fee.on { color: var(--sc-accent); font-weight: 600; }
.sc-customizer .sc-logo-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-customizer .sc-logo-item { display: flex; align-items: center; gap: 6px; }
.sc-customizer .sc-logo-pick {
	flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; text-align: left;
	border: 1px solid var(--sc-line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 13px; color: inherit;
}
.sc-customizer .sc-logo-item.on .sc-logo-pick { border-color: var(--sc-dark); box-shadow: inset 0 0 0 1px var(--sc-dark); }
.sc-customizer .sc-logo-pick img {
	width: 44px; height: 32px; object-fit: contain; flex: 0 0 auto; border-radius: 5px;
	background: repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 50%/10px 10px;
}
.sc-customizer .sc-logo-pick span { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.sc-customizer .sc-logo-pick small { font-weight: 400; color: var(--sc-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-customizer .sc-logo-remove {
	flex: 0 0 auto; width: 34px; height: 34px; font-size: 18px; line-height: 1; padding: 0;
	border: 1px solid #fecaca; background: #fef2f2; color: var(--sc-bad); border-radius: 9px; cursor: pointer;
}
.sc-customizer .sc-logo-scale { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--sc-muted); }
.sc-customizer .sc-logo-scale input { flex: 1; accent-color: var(--sc-dark); }
.sc-customizer .sc-logo-scale > span { flex: 0 0 48px; }
.sc-customizer .sc-logo-rot { margin-top: 10px; }
.sc-customizer .sc-logo-rot-0 {
	flex: 0 0 auto; min-width: 44px; height: 32px; padding: 0 8px; font: inherit; font-size: 12px;
	border: 1px solid var(--sc-line, #e5e7eb); background: #fff; color: var(--sc-dark); border-radius: 8px; cursor: pointer;
}
.sc-customizer .sc-logo-note { margin-top: 12px; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-logo.sc-logo-busy { opacity: .55; pointer-events: none; }
.sc-customizer .sc-logo-cols { margin-top: 14px; padding: 10px 12px; background: var(--sc-soft); border-radius: 9px; }
.sc-customizer .sc-logo-cols-t { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.sc-customizer .sc-logo-cols-sw { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.sc-customizer .sc-logo-col { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.sc-customizer .sc-logo-col i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.sc-customizer .sc-logo-cols-use {
	border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--sc-ink);
	text-decoration: underline; cursor: pointer;
}

/* ---- sizes step ---- */
.sc-customizer .sc-size-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sc-customizer .sc-size-cell { display: flex; flex-direction: column; gap: 3px; align-items: center; margin: 0; }
.sc-customizer .sc-size-lab { font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-size-q {
	width: 100%; text-align: center; font-size: 15px; padding: 7px 4px;
	border: 1px solid var(--sc-line); border-radius: 8px;
}
.sc-customizer .sc-size-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.sc-customizer .sc-size-total { font-weight: 600; }
.sc-customizer .sc-size-moq { color: var(--sc-muted); }
.sc-customizer .sc-size-moq.sc-under { color: var(--sc-bad); }

/* ---- volume tiers + one per pair (0.9.0) ---- */
.sc-customizer .sc-tiers { margin-top: 14px; padding: 10px 12px; background: var(--sc-soft); border-radius: 10px; font-size: 13px; }
.sc-customizer .sc-tiers-t { font-weight: 600; margin-bottom: 6px; }
.sc-customizer .sc-tiers-t span { font-weight: 400; color: var(--sc-muted); font-size: 12px; }
.sc-customizer .sc-tiers ul { list-style: none; margin: 0; padding: 0; }
.sc-customizer .sc-tiers li { display: flex; justify-content: space-between; padding: 3px 8px; margin: 0 -8px; border-radius: 6px; color: var(--sc-muted); }
.sc-customizer .sc-tiers li b { font-weight: 600; color: var(--sc-ink); }
.sc-customizer .sc-tiers li.on { background: #fff; color: var(--sc-ink); font-weight: 600; }
.sc-customizer .sc-tiers li.on b { color: var(--sc-accent); }
.sc-customizer .sc-tiers-next { margin: 6px 0 0; color: var(--sc-accent); font-weight: 600; font-size: 12px; }
.sc-customizer .sc-tiers-help { margin: 6px 0 0; color: var(--sc-muted); font-size: 12px; line-height: 1.45; }
.sc-customizer .sc-opt-pair { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; margin: 0; }
.sc-customizer .sc-opt-pair input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--sc-accent); }
.sc-customizer .sc-opt-pair b { color: var(--sc-accent); font-weight: 600; white-space: nowrap; }
.sc-customizer .sc-opt-pairnote { margin: 6px 0 0 26px; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-names { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sc-line); }
.sc-customizer .sc-names-t { font-weight: 600; font-size: 14px; }
.sc-customizer .sc-names-help { margin: 4px 0 10px; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-names-list { display: grid; gap: 6px; }
.sc-customizer .sc-name-row { display: grid; grid-template-columns: minmax(70px, auto) 1fr; align-items: center; gap: 8px; margin: 0; }
.sc-customizer .sc-name-size { font-size: 12px; color: var(--sc-muted); white-space: nowrap; }
.sc-customizer .sc-name-in {
	width: 100%; font-size: 14px; padding: 7px 10px; border: 1px solid var(--sc-line); border-radius: 8px; color: var(--sc-ink); background: #fff;
}
.sc-customizer .sc-name-in::placeholder { color: #9ca3af; opacity: 1; }
.sc-customizer .sc-names-empty { margin: 0; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-names-count { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--sc-ok); }
.sc-customizer .sc-names-count.sc-under { color: var(--sc-bad); }
.sc-customizer .sc-rv-names { margin-top: 4px; font-size: 12px; line-height: 1.5; }
.sc-customizer .sc-rv-names i { color: var(--sc-muted); font-style: normal; }

/* ---- review step ---- */
.sc-customizer .sc-rv-row { padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--sc-line); }
.sc-customizer .sc-rv-row:last-child { border-bottom: 0; }
.sc-customizer .sc-rv-k { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 6px; }
.sc-customizer .sc-rv-edit {
	border: 0; background: none; padding: 2px 4px; font-size: 12px; color: var(--sc-muted);
	text-decoration: underline; cursor: pointer;
}
.sc-customizer .sc-rv-v { font-size: 13px; color: #374151; }
.sc-customizer .sc-rv-col { display: inline-flex; align-items: center; gap: 5px; margin: 0 10px 4px 0; }
.sc-customizer .sc-rv-col i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.sc-customizer .sc-rv-fees { margin-top: 2px; font-size: 12px; color: var(--sc-accent); font-weight: 600; }
.sc-customizer .sc-rv-lg { display: inline-flex; align-items: center; margin: 0 10px 4px 0; }
.sc-customizer .sc-rv-logo { height: 34px; width: auto; vertical-align: middle; border: 1px solid var(--sc-line); border-radius: 4px; background: #fff; margin-right: 4px; }
.sc-customizer .sc-rv-warn { color: var(--sc-bad); }

/* ---- share (0.8.0) ---- */
.sc-customizer .sc-sharebox { margin-top: 4px; padding: 12px; border: 1px dashed #c4c8cf; border-radius: 10px; }
.sc-customizer .sc-share-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-weight: 600;
	border: 1px solid var(--sc-dark); background: #fff; border-radius: 9px; cursor: pointer;
}
.sc-customizer .sc-share-btn:hover { background: var(--sc-soft); }
.sc-customizer .sc-share-help { margin: 8px 0 0; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-share-url {
	width: 100%; margin-top: 10px; padding: 7px 9px; font-size: 12px; border: 1px solid var(--sc-line);
	border-radius: 8px; background: var(--sc-soft); color: var(--sc-ink);
}
.sc-customizer .sc-share-status { margin: 6px 0 0; font-size: 12px; color: var(--sc-ok); font-weight: 600; }

/* ---- quote request (0.10.0) ---- */
.sc-customizer .sc-quotebox.sc-q-top { margin: 0 0 14px; border-color: #fbd5bd; background: #fff7f2; }
.sc-customizer .sc-q-del { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.sc-customizer .sc-q-del legend { float: left; width: 100%; padding: 0; margin: 0; font-size: 12px; color: var(--sc-ink); }
.sc-customizer .sc-q-del legend b { color: var(--sc-bad); font-weight: 600; }
.sc-customizer .sc-q-opt {
	display: flex; align-items: flex-start; gap: 8px; padding: 10px; cursor: pointer;
	border: 1px solid #c4c8cf; border-radius: 9px; background: #fff; font-size: 13px; line-height: 1.35;
}
.sc-customizer .sc-q-opt:has(input:checked) { border-color: var(--sc-dark); box-shadow: 0 0 0 1px var(--sc-dark); }
.sc-customizer .sc-q-opt input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.sc-customizer .sc-q-opt strong { display: block; color: var(--sc-ink); }
.sc-customizer .sc-q-opt small { display: block; margin-top: 2px; font-size: 11px; color: var(--sc-muted); }
.sc-customizer .sc-quotebox { margin-top: 12px; padding: 12px; border: 1px solid var(--sc-line); border-radius: 10px; background: var(--sc-soft); }
.sc-customizer .sc-q-title { margin: 0; font-weight: 700; font-size: 14px; color: var(--sc-ink); }
.sc-customizer .sc-q-help { margin: 4px 0 10px; font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-q-open,
.sc-customizer .sc-q-send {
	display: inline-flex; align-items: center; padding: 9px 14px; font-weight: 600; cursor: pointer;
	border: 1px solid var(--sc-dark); background: var(--sc-dark); color: #fff; border-radius: 9px;
}
.sc-customizer .sc-q-open:hover,
.sc-customizer .sc-q-send:hover { opacity: .9; }
.sc-customizer .sc-q-send[disabled] { opacity: .6; cursor: wait; }
.sc-customizer .sc-q-cancel { padding: 9px 12px; border: 0; background: none; color: var(--sc-muted); cursor: pointer; text-decoration: underline; }
.sc-customizer .sc-q-form { display: grid; gap: 10px; }
.sc-customizer .sc-q-form[hidden],
.sc-customizer .sc-q-form [hidden] { display: none; }
.sc-customizer .sc-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-customizer .sc-q-grid3 { grid-template-columns: 2fr 1fr 1fr; margin-top: 10px; }
.sc-customizer .sc-q-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sc-ink); margin: 0; }
.sc-customizer .sc-q-f b { color: var(--sc-bad); font-weight: 600; }
.sc-customizer .sc-q-f small { color: var(--sc-muted); font-size: 11px; }
.sc-customizer .sc-q-f input,
.sc-customizer .sc-q-f select,
.sc-customizer .sc-q-f textarea {
	width: 100%; padding: 8px 10px; font-size: 14px; border: 1px solid #c4c8cf; border-radius: 8px;
	background: #fff; color: var(--sc-ink); box-sizing: border-box; font-family: inherit;
}
.sc-customizer .sc-q-f input[type="file"] { padding: 6px; font-size: 12px; }
.sc-customizer .sc-q-f input::placeholder { color: #9ca3af; }
.sc-customizer .sc-q-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.sc-customizer .sc-q-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.sc-customizer .sc-q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sc-customizer .sc-q-err { margin: 0; padding: 8px 10px; background: #fef2f2; color: var(--sc-bad); border: 1px solid #fecaca; border-radius: 8px; font-size: 13px; }
.sc-customizer .sc-q-actions { display: flex; align-items: center; gap: 8px; }
.sc-customizer .sc-q-done p { margin: 8px 0 0; font-size: 13px; color: var(--sc-ink); }
.sc-customizer .sc-q-sum { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.sc-customizer .sc-q-sum td { padding: 4px 0; border-bottom: 1px solid var(--sc-line); }
.sc-customizer .sc-q-sum td:last-child { text-align: right; }
.sc-customizer .sc-q-sum .sc-q-tot td { font-weight: 700; border-bottom: 0; }
@media (max-width: 560px) {
	.sc-customizer .sc-q-grid,
	.sc-customizer .sc-q-grid3,
	.sc-customizer .sc-q-del { grid-template-columns: 1fr; }
}

/* ---- message + footer ---- */
.sc-customizer .sc-note {
	margin: 0 16px 10px; padding: 9px 12px; background: #fef2f2; color: var(--sc-bad);
	border: 1px solid #fecaca; border-radius: 8px; font-size: 13px;
}
.sc-customizer .sc-note.sc-note-info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.sc-customizer .sc-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 16px; border-top: 1px solid var(--sc-line); background: #fff;
}
.sc-customizer .sc-total { display: flex; flex-direction: column; min-width: 0; }
.sc-customizer .sc-price { font-weight: 800; font-size: 18px; }
.sc-customizer .sc-price-sub { font-size: 12px; color: var(--sc-muted); }
.sc-customizer .sc-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.sc-customizer .sc-back,
.sc-customizer .sc-next,
.sc-customizer .sc-add {
	padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.sc-customizer .sc-back { border: 1px solid var(--sc-line); background: #fff; }
.sc-customizer .sc-back:hover { background: var(--sc-soft); }
.sc-customizer .sc-next,
.sc-customizer .sc-add { border: 1px solid var(--sc-dark); background: var(--sc-dark); color: #fff; }
.sc-customizer .sc-next:hover,
.sc-customizer .sc-add:hover { background: #000; }
.sc-customizer .sc-add:disabled { opacity: .6; cursor: default; }

.sc-customizer .sc-json {
	margin: 12px 0 0; padding: 12px; background: #0f172a; color: #cbd5e1; border-radius: 8px;
	font-size: 11px; line-height: 1.4; overflow: auto; max-height: 220px; white-space: pre;
}

/* ---- stacked (narrow container: phones, narrow tabs) ---- */
@container (max-width: 760px) {
	.sc-customizer .sc-studio { display: block; height: auto; }
	.sc-customizer .sc-stage {
		position: sticky; top: var(--sc-sticky-top); z-index: 3; padding: 8px;
		border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.06);
	}
	.sc-customizer .sc-canvas-wrap { max-width: none; }
	.sc-customizer .sc-tools { top: 6px; right: 6px; }
	.sc-customizer .sc-views { top: 6px; left: 6px; gap: 4px; }
	.sc-customizer .sc-view { width: 58px; min-height: 44px; font-size: 10px; }
	.sc-customizer .sc-view img { height: 28px; }
	.sc-customizer .sc-tool { width: 30px; height: 30px; }
	.sc-customizer .sc-stage-hint { bottom: 6px; font-size: 11px; }
	.sc-customizer .sc-view-note { bottom: 34px; font-size: 11px; }
	.sc-customizer .sc-stage-hint[hidden] + .sc-view-note { bottom: 6px; }
	.sc-customizer .sc-panel { margin-top: 10px; overflow: visible; }
	.sc-customizer .sc-body { min-height: 230px; overflow: visible; }
	.sc-customizer .sc-zpills {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px;
	}
	.sc-customizer .sc-zpills::-webkit-scrollbar { display: none; }
	.sc-customizer .sc-chip { width: 34px; height: 34px; }
	.sc-customizer .sc-foot {
		position: sticky; bottom: 0; z-index: 3; border-radius: 0 0 14px 14px;
		box-shadow: 0 -4px 14px rgba(0,0,0,.06);
	}
	.sc-customizer .sc-step-l { display: none; }
	.sc-customizer .sc-step.on .sc-step-l { display: inline; }
}

/* ---- touch screens (0.8.0): ~44px tap targets. After the stacked rules so it wins there too ---- */
@media (pointer: coarse) {
	.sc-customizer .sc-chip { width: 44px; height: 44px; }
	.sc-customizer .sc-sw { gap: 10px; }
	.sc-customizer .sc-zpill { min-height: 44px; padding: 8px 12px 8px 8px; font-size: 14px; }
	.sc-customizer .sc-zdot { width: 18px; height: 18px; }
	.sc-customizer .sc-znav { width: 44px; height: 44px; font-size: 18px; }
	.sc-customizer .sc-tool { width: 40px; height: 40px; }
	.sc-customizer .sc-step { min-height: 40px; }
	.sc-customizer .sc-rv-edit { padding: 10px 8px; margin: -10px -8px; }
	.sc-customizer .sc-hexpick-wrap { width: 48px; height: 44px; }
	.sc-customizer .sc-hex,
	.sc-customizer .sc-hexapply { height: 44px; font-size: 16px; } /* 16px: no iOS zoom on focus */
	.sc-customizer .sc-opt-btn { min-height: 44px; }
	.sc-customizer .sc-opt-text,
	.sc-customizer .sc-opt-select,
	.sc-customizer .sc-size-q,
	.sc-customizer .sc-name-in { min-height: 44px; font-size: 16px; }
	.sc-customizer .sc-opt-pair { min-height: 44px; }
	.sc-customizer .sc-opt-pair input { width: 22px; height: 22px; }
	.sc-customizer .sc-logo-remove { width: 44px; height: 44px; }
	.sc-customizer .sc-logo-pick { min-height: 44px; }
	.sc-customizer .sc-share-btn,
	.sc-customizer .sc-q-open,
	.sc-customizer .sc-q-send,
	.sc-customizer .sc-q-f input,
	.sc-customizer .sc-q-f select,
	.sc-customizer .sc-back,
	.sc-customizer .sc-next,
	.sc-customizer .sc-add { min-height: 44px; }
	.sc-customizer .sc-q-f input,
	.sc-customizer .sc-q-f select,
	.sc-customizer .sc-q-f textarea { font-size: 16px; }
}

/* ---- product page placement (0.5.0): customizer replaces the gallery + price ---- */
body.sc-product div.product .summary,
body.sc-product div.product .entry-summary {
	width: 100% !important; max-width: 100% !important; float: none !important;
	flex: 1 1 100% !important; grid-column: 1 / -1; margin-left: 0; margin-right: 0;
}
/* Neve wraps the page in .wrapper { overflow:hidden }, which makes it the sticky container and
   stops the phone stage/footer pinning to the viewport. clip crops the same but isn't a scroll
   container; browsers without clip keep hidden (no sticky, still usable). */
body.sc-product .wrapper { overflow: hidden; overflow: clip; }
/* 0.15.4: belt and braces — no gallery or placeholder beside the customizer, whatever theme draws it */
body.sc-product div.product .woocommerce-product-gallery,
body.sc-product div.product > .images,
body.sc-product div.product .product-details-wrapper > .images,
body.sc-product div.product #commercegurus-pdp-gallery-wrapper,
body.sc-product div.product .cg-pdp-gallery,
body.sc-product div.product .woocommerce-product-gallery__image--placeholder { display: none !important; }

/* 0.15.0 — Mad Alice: bling, words, one-pair orders */
.sc-customizer .sc-opt-fin { display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.sc-customizer .sc-fin-dot {
	flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
	background-size: cover; background-position: center;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.15);
}
.sc-customizer .sc-opt-btn.on .sc-fin-dot { box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(0,0,0,0.3); }
.sc-customizer .sc-opt-none { color: var(--sc-muted, #6b7280); }
.sc-customizer .sc-opt-none.on { color: #fff; }
.sc-customizer .sc-opt-font span { line-height: 1.1; }
.sc-customizer .sc-bling-note,
.sc-customizer .sc-words-note { margin: 0 0 12px; font-size: 12px; line-height: 1.45; color: var(--sc-muted, #6b7280); }
.sc-customizer .sc-bling-note { padding: 8px 10px; border-radius: 8px; background: var(--sc-soft); color: inherit; }
.sc-customizer .sc-words-side { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; flex-wrap: wrap; }
.sc-customizer .sc-words-side > span { font-size: 12px; font-weight: 600; margin-right: 2px; }
.sc-customizer .sc-size-moq1 { font-size: 12px; color: var(--sc-muted, #6b7280); }
@keyframes sc-flash { 0% { box-shadow: 0 0 0 0 rgba(242,107,33,0.55); } 100% { box-shadow: 0 0 0 10px rgba(242,107,33,0); } }
.sc-customizer .sc-optgroup-f.sc-flash { animation: sc-flash 0.9s ease-out 2; border-radius: 8px; }
/* 0.15.2 — words: size / rotate / reset */
.sc-customizer .sc-words-ctl { margin: 0 0 14px; }
.sc-customizer .sc-words-ctl .sc-logo-scale { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.sc-customizer .sc-words-ctl .sc-logo-scale span { width: 48px; font-size: 12px; font-weight: 600; }
.sc-customizer .sc-words-ctl input[type="range"] { flex: 1; accent-color: var(--sc-dark); }
.sc-customizer .sc-words-rot0,
.sc-customizer .sc-words-reset { font-size: 12px; padding: 4px 10px; border: 1px solid var(--sc-line); border-radius: 6px; background: #fff; cursor: pointer; }
/* 0.15.3: the word box for the shoe on show, and "same as the other shoe" */
.sc-customizer .sc-optgroup-f[data-words-side] .sc-opt-text { transition: border-color .15s, box-shadow .15s; }
.sc-customizer .sc-optgroup-f.sc-words-on .sc-optgroup-t::after { content: " · showing"; font-weight: 400; color: var(--sc-muted, #6b7280); font-size: 12px; }
.sc-customizer .sc-optgroup-f.sc-words-on .sc-opt-text { border-color: #111; box-shadow: 0 0 0 1px #111; }
.sc-customizer .sc-words-copy { display: block; margin-top: 8px; padding: 6px 10px; border: 1px dashed #9ca3af; border-radius: 6px; background: #fff; color: #111; font-size: 13px; cursor: pointer; text-align: left; max-width: 100%; }
.sc-customizer .sc-words-copy:hover { border-color: #111; background: #f9fafb; }
.sc-customizer .sc-words-copy[hidden] { display: none; }

/* 0.16.3: accordion option groups (Mad Alice wedding: Bling + Extras) */
.sc-customizer .sc-acc { padding-bottom: 0; }
.sc-customizer .sc-acc-h {
	display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 0 12px; margin: 0; border: 0;
	background: none; cursor: pointer; text-align: left; color: inherit; font: inherit;
}
.sc-customizer .sc-acc-h .sc-optgroup-t { margin: 0; flex: 0 0 auto; }
.sc-customizer .sc-acc-sum { flex: 1 1 auto; min-width: 0; text-align: right; font-size: 12px; color: var(--sc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-customizer .sc-acc-sum.on { color: var(--sc-ink); font-weight: 600; }
.sc-customizer .sc-acc-chev { flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 2px; transition: transform .15s; opacity: .6; }
.sc-customizer .sc-acc.sc-open .sc-acc-chev { transform: rotate(-135deg); margin-top: 4px; }
.sc-customizer .sc-acc:not(.sc-open) > .sc-optgroup-b { display: none; }
.sc-customizer .sc-acc.sc-open { padding-bottom: 14px; }
.sc-customizer .sc-acc.sc-open .sc-acc-sum { visibility: hidden; }

/* 0.16.10: note under the laces (Mad Alice) */
.sc-customizer .sc-acc-note { flex: 1 0 100%; margin: 10px 0 0; font-size: 12.5px; color: var(--sc-muted); }
.sc-customizer .sc-acc-note a { color: var(--sc-ink); text-decoration: underline; }
.sc-customizer .sc-acc-note-out { margin: 2px 0 14px; padding: 10px 12px; background: var(--sc-soft); border-radius: 10px; }
