/* 2.4.21 redesign A (customer die-cut designer only; the staff tool does not load this file).
   Split layout: sticky preview on the left, one rounded options card on the right,
   price + Add to cart in the card. Stacks on mobile with the pinned price bar. */
@font-face { font-family: "XCS Montserrat"; src: url("../fonts/Montserrat-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
.xcs-refresh { --xcs-ink: #16181d; --xcs-muted: #6b7280; --xcs-line: #e7e9ee; --xcs-accent: #d9141d; --xcs-accent-dk: #b00f17; --xcs-accent-bg: #fdecec; font-family: "XCS Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--xcs-ink); }
.xcs-refresh button, .xcs-refresh input, .xcs-refresh select { font-family: inherit; }
.xcs-refresh .xcs-stk-layout { gap: 32px; }
.xcs-refresh .xcs-stk-stage { border-radius: 20px; border: 0; min-height: 360px; }
/* Cut-line key, top left of the stage (black/white dashes = on-screen cut line). */
.xcs-refresh .xcs-stk-cutkey { position: absolute; top: 14px; left: 16px; z-index: 3; margin: 0; display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #16181d; pointer-events: none; }
.xcs-refresh .xcs-stk-cutkey .xcs-stk-swatch.cut { width: 24px; }
/* Background picker floats on the stage bottom. */
body .xcs.xcs-refresh .xcs-stk-stage .xcs-stk-bgpick { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; align-self: auto; min-height: 40px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); width: auto !important; }
.xcs-refresh .xcs-stk-stage.sio-on .xcs-stk-bgpick, .xcs-refresh .xcs-stk-stage.sio-on .xcs-stk-cutkey { display: none !important; }
/* Options card */
.xcs-refresh .xcs-stk-options { background: #fff; border: 1px solid var(--xcs-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06); padding: 28px !important; display: flex; flex-direction: column; gap: 18px; }
.xcs-refresh .xcs-stk-options .xcs-stk-row { margin-top: 0 !important; }
.xcs-refresh .xcs-stk-head h2 { font-size: 26px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.xcs-refresh .xcs-stk-logo { display: block; max-height: 36px; max-width: 160px; margin: 0 0 12px; }
.xcs-refresh .xcs-stk-sub { margin: 0; color: var(--xcs-muted); font-size: 13px; }
.xcs-refresh .xcs-stk-row > label, .xcs-refresh .xcs-stk-row > .xcs-stk-toggle > label { font-size: 13px; font-weight: 700; }
.xcs-refresh .xcs-stk-row > label span { color: var(--xcs-muted); font-weight: 600; }
/* Upload drop zone: the real file input covers the zone (click or drop). */
.xcs-refresh .xcs-stk-file { position: relative; border: 2px dashed #d5d9e0; border-radius: 16px; padding: 20px; text-align: center; background: #fafbfc; gap: 4px !important; transition: border-color .15s, background .15s; }
.xcs-refresh .xcs-stk-file:hover, .xcs-refresh .xcs-stk-file:focus-within { border-color: var(--xcs-accent); background: var(--xcs-accent-bg); }
.xcs-refresh .xcs-stk-file:focus-within { outline: 2px solid var(--xcs-accent); outline-offset: 2px; }
.xcs-refresh .xcs-stk-file label { display: flex; flex-direction: column; gap: 4px; font-weight: 400; }
.xcs-refresh .xcs-stk-file label b { font-size: 15px; font-weight: 700; }
.xcs-refresh .xcs-stk-file label span, .xcs-refresh .xcs-stk-help { font-size: 12px; color: var(--xcs-muted); margin: 0; }
.xcs-refresh .xcs-stk-file input[type="file"]#xcs-stk-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; }
.xcs-refresh .xcs-stk-name { position: relative; z-index: 1; margin: 6px 0 0; font-size: 13px; color: var(--xcs-ink); }
.xcs-refresh .xcs-stk-name:empty { display: none; }
/* Chips, slider, swatches */
.xcs-refresh .xcs-stk-chips button { min-height: 40px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--xcs-ink); }
.xcs-refresh .xcs-stk-chips button.is-on { background: var(--xcs-accent-bg); border-color: var(--xcs-accent); color: var(--xcs-accent); }
.xcs-refresh .xcs-stk-row input[type="range"] { accent-color: var(--xcs-accent); min-height: 32px; }
.xcs-refresh .xcs-stk-colors button { width: 32px; height: 32px; min-width: 32px; }
.xcs-refresh .xcs-stk-colors button.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--xcs-accent); }
.xcs-refresh button:focus-visible { outline: 2px solid var(--xcs-accent); outline-offset: 2px; }
/* Price + Add to cart footer: always visible in the card. */
.xcs-refresh .xcs-stk-foot { border-top: 1px solid var(--xcs-line); padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.xcs-refresh .xcs-stk-foot p { margin: 0; }
.xcs-refresh .xcs-stk-foot-l { font-size: 12px; color: var(--xcs-muted); }
.xcs-refresh .xcs-stk-form-price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 !important; }
.xcs-refresh .xcs-stk-tier { font-size: 12px; margin: 0 !important; }
.xcs-refresh .xcs-stk-cta { min-height: 48px; padding: 14px 30px; border-radius: 14px; font-size: 15px; font-weight: 700; background: var(--xcs-accent); color: #fff; border: 0; cursor: pointer; }
.xcs-refresh .xcs-stk-cta:disabled { opacity: .55; cursor: not-allowed; }
.xcs-refresh .xcs-stk-legend { display: none; }
/* "See it on" */
.xcs-refresh .xcs-seeon { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; font-size: 12px; }
.xcs-refresh .xcs-seeon .sio-l { font-weight: 700; margin-right: 4px; }
body .xcs.xcs-refresh .xcs-seeon button { font: 600 12px/1 "XCS Montserrat", Arial, sans-serif; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--xcs-line); background: #fff; color: var(--xcs-ink); cursor: pointer; }
body .xcs.xcs-refresh .xcs-seeon button.is-on { border-color: var(--xcs-accent); background: var(--xcs-accent-bg); color: var(--xcs-accent); }
.xcs-refresh .sio-scene { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: linear-gradient(#eef0f3, #dde1e6); overflow: hidden; }
.xcs-refresh .sio-scene[hidden] { display: none; }
.xcs-refresh .sio-obj { position: relative; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18)); margin-bottom: 34px; }
.xcs-refresh .sio-obj svg { display: block; }
.xcs-refresh .sio-obj.sio-photo { filter: none; margin-bottom: 30px; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.xcs-refresh .sio-bg { display: block; width: 100%; height: 100%; max-width: none; user-select: none; pointer-events: none; }
.xcs-refresh .sio-area { position: absolute; }
.xcs-refresh .sio-photo .sio-stk { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.16)); }
.xcs-refresh .sio-photo .sio-stk.sio-glass { opacity: 0.94; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.xcs-refresh .sio-stk { position: absolute; transform: translate(-50%, -50%); cursor: grab; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); touch-action: none; user-select: none; max-width: none; }
.xcs-refresh .sio-stk.is-drag { cursor: grabbing; }
.xcs-refresh .sio-stk:focus-visible { outline: 2px dashed var(--xcs-accent); outline-offset: 4px; }
.xcs-refresh .sio-scale { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--xcs-muted); background: #fff; padding: 5px 10px; border-radius: 999px; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
/* Desktop: the card holds price + button, so the fixed bottom bar is not needed. */
@media (min-width: 801px) {
	body.xcs-refresh-a .xcs-refresh .xcs-pricebar { display: none !important; }
	body.xcs-refresh-a.xcs-product { padding-bottom: 0 !important; }
	body.xcs-sticker .xcs-refresh .xcs-stk-layout { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); }
}
/* Mobile: stack (preview, see it on, card) with B's pinned price bar. */
@media (max-width: 800px) {
	.xcs-refresh .xcs-stk-layout { gap: 16px; }
	.xcs-refresh .xcs-stk-stage { min-height: 300px; aspect-ratio: 4 / 3.4; }
	.xcs-refresh .xcs-stk-options { padding: 20px !important; }
	.xcs-refresh .xcs-stk-head h2 { font-size: 22px; }
	.xcs-refresh .xcs-stk-cta { display: none; }
	.xcs-refresh .xcs-stk-foot { padding-top: 14px; }
	.xcs-refresh .xcs-pricebar .xcs-btn { background: var(--xcs-accent); color: #fff; border-radius: 12px; font-family: inherit; }
	.xcs-refresh .xcs-pricebar { font-family: "XCS Montserrat", Arial, sans-serif; }
	body .xcs.xcs-refresh .xcs-stk-stage .xcs-stk-bgpick { width: auto !important; }
	.xcs-refresh .xcs-seeon button { min-height: 40px; }
}

/* 2.4.23: floating designer preview. The preview stays in view while the page
   scrolls and only the options column moves. --xcs-header is the bottom edge of
   a fixed/sticky theme header (incl. WP admin bar), measured by sticker.js;
   80px + admin bar is the no-JS fallback. .xcs-pin-js = JS translate fallback
   when a theme ancestor blocks sticky. */
@media (min-width: 801px) {
	body.xcs-sticker .xcs-refresh .xcs-stk-layout { align-items: start; }
	body.xcs-sticker .xcs-refresh .xcs-stk-preview {
		position: sticky;
		top: calc(var(--xcs-header, calc(80px + var(--wp-admin--admin-bar--height, 0px))) + 16px);
		align-self: start;
		max-height: calc(100vh - var(--xcs-header, calc(80px + var(--wp-admin--admin-bar--height, 0px))) - 32px);
		z-index: 2;
	}
	body.xcs-sticker .xcs-refresh .xcs-stk-preview.xcs-pin-js { position: relative; will-change: transform; }
}
@media (max-width: 800px) {
	body.xcs-sticker .xcs-refresh .xcs-stk-preview {
		position: sticky;
		top: var(--xcs-header, 0px);
		z-index: 30;
		max-height: 42vh;
		padding: 6px 0;
		background: #f7f8fa;
		box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.25);
		box-sizing: border-box;
	}
	body.xcs-sticker .xcs-refresh .xcs-stk-preview.xcs-pin-js { position: relative; }
	body.xcs-sticker .xcs-refresh .xcs-stk-stage {
		min-height: 0 !important;
		aspect-ratio: auto !important;
		height: calc(42vh - 60px) !important;
		max-height: calc(42vh - 60px) !important;
	}
	body.xcs-sticker .xcs-refresh .xcs-stk-preview .xcs-seeon {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		margin-top: 6px;
		scrollbar-width: none;
	}
	body.xcs-sticker .xcs-refresh .xcs-stk-preview .xcs-seeon > * { flex: 0 0 auto; }
	body.xcs-sticker .xcs-refresh .xcs-stk-preview .xcs-seeon button { min-height: 36px; }
	body.xcs-sticker .xcs-refresh .xcs-stk-stage .xcs-stk-cutkey { top: 8px; left: 8px; }
	body.xcs-sticker .xcs-refresh .xcs-stk-stage .xcs-stk-bgpick { bottom: 8px; transform-origin: bottom center; }
	body.xcs-sticker .xcs-refresh .xcs-stk-stage .xcs-stk-empty { font-size: 12px; }
}
