/**
 * Jiffox Core: feature UI. Colors use the Kadence global palette (set in jiffox-child).
 */

/* Display currency switcher (header announcement bar) -------------- */
.jf-currency select {
	display: inline-block;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 1px 22px 1px 6px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 6px;
	background-color: var(--global-palette9, #fff);
	background-position: right 4px center;
	background-size: 12px;
	font-size: inherit;
	line-height: 1.6;
	color: inherit;
}

.jf-usd-note td {
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

/* Cookie banner ----------------------------------------------------- */
.jf-cookie {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100001;
	max-width: 560px;
	padding: 18px 20px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 12px;
	background: var(--global-palette9, #fff);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
	font-size: 0.875rem;
	color: var(--global-palette4, #334155);
}

.jf-cookie[hidden] {
	display: none;
}

.jf-cookie-text {
	margin: 0 0 12px;
}

.jf-cookie-options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 12px;
}

.jf-cookie-options[hidden],
.jf-cookie .jf-cookie-actions [hidden] {
	display: none;
}

.jf-cookie-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.jf-cookie-actions .button {
	padding: 0.55em 1.1em;
	border-radius: 8px;
	font-size: 0.875rem;
}

.jf-cookie-essential {
	background: transparent;
	color: var(--global-palette3, #0F172A);
	border: 1px solid var(--global-palette7, #E2E8F0);
}

.jf-cookie-essential:hover {
	background: var(--global-palette8, #F8FAFC);
	color: var(--global-palette3, #0F172A);
}

.jf-cookie-choose {
	padding: 0;
	border: 0;
	background: none;
	color: var(--global-palette1, #2563EB);
	text-decoration: underline;
	box-shadow: none;
	font-size: 0.875rem;
}

.jf-cookie-choose:hover {
	background: none;
	color: var(--global-palette2, #1D4ED8);
}

/* Keep the banner above the product page sticky bar. */
body.jf-has-sticky-bar .jf-cookie {
	bottom: 84px;
}

/* Per-piece prices ------------------------------------------------- */
.jf-per {
	font-weight: 400;
	color: var(--global-palette5, #64748B);
}

/* Product page: quantity tiers ------------------------------------- */
.jf-row-hidden {
	display: none !important;
}

.jf-tiers {
	margin: 4px 0 20px;
}

.jf-tiers-label {
	margin: 0 0 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--global-palette3, #0F172A);
}

.jf-tiers-list {
	display: grid;
	gap: 6px;
}

.jf-tier {
	display: grid;
	grid-template-columns: minmax(90px, auto) 1fr auto auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 8px;
	background: var(--global-palette9, #fff);
	color: var(--global-palette3, #0F172A);
	font-size: 0.9375rem;
	text-align: left;
	box-shadow: none;
	cursor: pointer;
}

.jf-tier:hover,
.jf-tier:focus {
	border-color: var(--global-palette1, #2563EB);
	background: var(--global-palette9, #fff);
	color: var(--global-palette3, #0F172A);
}

.jf-tier.is-active {
	border: 2px solid var(--global-palette1, #2563EB);
	padding: 10px 13px;
	background: #EFF6FF;
}

.jf-tier-qty {
	font-weight: 600;
}

.jf-tier-unit {
	color: var(--global-palette5, #64748B);
}

.jf-tier.is-active .jf-tier-unit {
	color: var(--global-palette3, #0F172A);
}

.jf-tier-badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: #FEF3C7;
	color: #92400E;
	font-size: 0.75rem;
	font-weight: 600;
}

.jf-tier-total {
	grid-column: 4;
	font-weight: 600;
}

.jf-tiers-quote {
	margin: 8px 0 0;
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

/* Summary: hide the plain variation price; the unit line replaces it. */
.jf-has-tiers .woocommerce-variation-price {
	display: none;
}

.jf-unit-line {
	margin: 0 0 4px;
	padding: 14px 16px 0;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	background: var(--global-palette8, #F8FAFC);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--global-palette3, #0F172A);
}

.jf-unit-line:not([hidden]) ~ .woocommerce-variation-add-to-cart .jf-summary-note {
	margin-top: -4px;
	padding: 4px 16px 14px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-top: 0;
	border-radius: 0 0 8px 8px;
	background: var(--global-palette8, #F8FAFC);
}

/* Product page: design upload --------------------------------------- */
.jf-design {
	width: 100%;
	margin: 8px 0 16px;
}

.jf-design-title {
	margin: 0 0 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--global-palette3, #0F172A);
}

.jf-design-modes {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.jf-design-mode {
	position: relative;
	display: block;
	padding: 12px 14px 12px 40px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 8px;
	cursor: pointer;
}

.jf-design-mode input {
	position: absolute;
	left: 14px;
	top: 15px;
	margin: 0;
}

.jf-design-mode:has(input:checked) {
	border: 2px solid var(--global-palette1, #2563EB);
	padding: 11px 13px 11px 39px;
	background: #EFF6FF;
}

.jf-design-mode-title {
	display: block;
	font-weight: 600;
	color: var(--global-palette3, #0F172A);
}

.jf-design-mode-text {
	display: block;
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-file {
	display: block;
	padding: 14px;
	border: 1px dashed var(--global-palette6, #94A3B8);
	border-radius: 8px;
	background: var(--global-palette9, #fff);
}

.jf-file input[type="file"] {
	width: 100%;
	font-size: 0.875rem;
}

.jf-file-help {
	display: block;
	margin-top: 6px;
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-file-error {
	display: block;
	font-size: 0.8125rem;
	color: #B91C1C;
}

.jf-file-error:empty {
	display: none;
}

.jf-field {
	display: block;
	margin-top: 12px;
	font-size: 0.875rem;
}

.jf-field span {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: var(--global-palette3, #0F172A);
}

.jf-field em {
	font-weight: 400;
	font-style: normal;
	color: var(--global-palette5, #64748B);
}

.jf-field input,
.jf-field textarea {
	width: 100%;
}

.jf-file-later,
.jf-dieline {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-dieline-label {
	font-weight: 600;
	color: var(--global-palette4, #334155);
}

.jf-dieline button.jf-dieline-get {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--global-palette1, #2563EB);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.jf-dieline button.jf-dieline-get:hover,
.jf-dieline button.jf-dieline-get:focus-visible {
	color: var(--global-palette2, #1D4ED8);
}

.jf-notes textarea {
	min-height: 0;
	font-size: 0.875rem;
}

/* Web editor ---------------------------------------------------------- */
.jf-editor-launch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 14px;
	border: 1px dashed var(--global-palette6, #94A3B8);
	border-radius: 8px;
}

.jf-editor-launch[hidden],
.jf-file[hidden],
.jf-file-later[hidden] {
	display: none;
}

.jf-editor-status {
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-editor-launch .jf-editor-thumb {
	display: block;
	width: auto;
	height: auto;
	max-width: 160px;
	max-height: 180px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 6px;
}

.jf-editor-launch .jf-editor-thumb[hidden] {
	display: none;
}

body.jf-ed-open {
	overflow: hidden;
}

.jf-ed {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.55);
}

.jf-ed[hidden] {
	display: none;
}

.jf-ed-box {
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	height: min(760px, 100%);
	overflow: hidden;
	border-radius: 12px;
	background: var(--global-palette9, #fff);
}

.jf-ed-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--global-palette7, #E2E8F0);
}

.jf-ed-area-label {
	flex: 1;
	font-size: 0.875rem;
	color: var(--global-palette5, #64748B);
}

.jf-ed-close {
	padding: 0 8px;
	border: 0;
	background: none;
	color: var(--global-palette3, #0F172A);
	font-size: 1.75rem;
	line-height: 1;
	box-shadow: none;
}

.jf-ed-close:hover {
	background: none;
	color: var(--global-palette1, #2563EB);
}

.jf-ed-body {
	display: grid;
	grid-template-columns: 1fr 300px;
	flex: 1;
	min-height: 0;
}

.jf-ed-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 16px;
	background: var(--global-palette8, #F8FAFC);
	overflow: hidden;
}

.jf-ed-area {
	position: relative;
	flex: none;
	overflow: hidden;
	box-shadow: 0 0 0 1px #94A3B8, 0 8px 24px rgba(15, 23, 42, 0.08);
}

.jf-ed-safe {
	position: absolute;
	border: 1px dashed rgba(37, 99, 235, 0.55);
	pointer-events: none;
}

.jf-ed-safe-label {
	position: absolute;
	right: 6px;
	bottom: 4px;
	font-size: 10px;
	color: rgba(37, 99, 235, 0.8);
	pointer-events: none;
}

.jf-ed-area.is-dark .jf-ed-safe {
	border-color: rgba(255, 255, 255, 0.6);
}

.jf-ed-area.is-dark .jf-ed-safe-label {
	color: rgba(255, 255, 255, 0.8);
}

.jf-ed-logo {
	position: absolute;
	max-width: none;
	cursor: move;
	touch-action: none;
	user-select: none;
	transform-origin: center center;
	outline: 1px dashed rgba(37, 99, 235, 0.7);
}

.jf-ed-logo:focus-visible {
	outline: 2px solid var(--global-palette1, #2563EB);
}

.jf-ed-hint {
	margin: 12px 0 0;
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-ed-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	border-left: 1px solid var(--global-palette7, #E2E8F0);
	overflow-y: auto;
}

.jf-ed-field span {
	display: flex;
	justify-content: space-between;
	margin-bottom: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--global-palette3, #0F172A);
}

.jf-ed-field em {
	font-style: normal;
	font-weight: 400;
	color: var(--global-palette5, #64748B);
}

.jf-ed-field input[type="range"],
.jf-ed-field input[type="file"] {
	width: 100%;
}

.jf-ed-field input[type="range"] {
	padding: 0;
	border: 0;
	box-shadow: none;
	-webkit-appearance: auto;
	appearance: auto;
	accent-color: var(--global-palette1, #2563EB);
}

.jf-ed-align {
	display: flex;
	gap: 6px;
}

.jf-ed-align button {
	flex: 1;
	padding: 8px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 6px;
	background: var(--global-palette9, #fff);
	color: var(--global-palette3, #0F172A);
	font-size: 0.8125rem;
	box-shadow: none;
}

.jf-ed-align button:hover:not([disabled]) {
	border-color: var(--global-palette1, #2563EB);
	background: var(--global-palette9, #fff);
	color: var(--global-palette1, #2563EB);
}

.jf-ed-error {
	margin: 0;
	font-size: 0.8125rem;
	color: #B91C1C;
}

.jf-ed-error:empty {
	display: none;
}

.jf-ed-warn {
	margin: 0;
	padding: 8px 10px;
	border-radius: 6px;
	background: #FFF7E6;
	font-size: 0.8125rem;
}

.jf-ed-warn[hidden] {
	display: none;
}

.jf-ed-done {
	padding: 12px;
	border-radius: 8px;
}

.jf-ed-done[disabled] {
	opacity: 0.45;
}

.jf-ed-note {
	margin: 0;
	font-size: 0.75rem;
	color: var(--global-palette5, #64748B);
}

@media (max-width: 760px) {
	.jf-ed {
		padding: 0;
	}

	.jf-ed-box {
		height: 100%;
		border-radius: 0;
	}

	.jf-ed-body {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(260px, 1fr) auto;
	}

	.jf-ed-panel {
		border-left: 0;
		border-top: 1px solid var(--global-palette7, #E2E8F0);
		max-height: 45vh;
	}
}

/* Design required + preview on the left ------------------------------ */
.single_add_to_cart_button.jf-design-missing,
.single_add_to_cart_button.jf-design-missing:hover {
	opacity: 0.45;
	cursor: not-allowed;
}

.jf-design-needed {
	flex-basis: 100%;
	clear: both; /* below the floated Add to cart button on variable products */
	margin: 8px 0 0;
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-design-needed.is-alert {
	color: #B91C1C;
}

.jf-design-needed[hidden],
.jf-design-preview[hidden],
.jf-design-preview-back[hidden] {
	display: none;
}

.woocommerce-product-gallery.jf-showing-design .flex-viewport,
.woocommerce-product-gallery.jf-showing-design .woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery.jf-showing-design .flex-control-nav,
.woocommerce-product-gallery.jf-showing-design .woocommerce-product-gallery__trigger {
	display: none !important;
}

.jf-design-preview {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 12px;
	background: var(--global-palette8, #F8FAFC);
}

.jf-design-preview-title {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--global-palette5, #64748B);
}

.jf-design-preview-items {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.jf-design-preview-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.jf-design-preview-item img {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16), 0 10px 28px rgba(15, 23, 42, 0.12);
}

.jf-design-preview-item.is-logo img {
	max-width: 280px;
	max-height: 280px;
	object-fit: contain;
	padding: 24px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--global-palette7, #E2E8F0);
	border-radius: 8px;
}

.jf-design-preview-item figcaption {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--global-palette3, #0F172A);
	text-align: center;
	word-break: break-all;
}

.jf-design-preview-file {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 32px 20px;
	border: 1px dashed var(--global-palette6, #94A3B8);
	border-radius: 10px;
	background: #fff;
	text-align: center;
}

.jf-design-preview-file strong {
	color: var(--global-palette3, #0F172A);
	word-break: break-all;
}

.jf-design-preview-file span {
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-design-preview-file .jf-design-preview-ext {
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--global-palette1, #2563EB);
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
}

.jf-design-preview button.jf-design-preview-toggle,
button.jf-design-preview-back {
	align-self: center;
	padding: 8px 4px;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--global-palette1, #2563EB);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

button.jf-design-preview-back {
	display: block;
	margin: 12px auto 0;
}

/* Card preview: chosen size and finish ------------------------------------- */
.jf-design-preview-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	overflow: hidden;
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16), 0 10px 28px rgba(15, 23, 42, 0.12);
}

.jf-design-preview-item .jf-design-preview-card img {
	max-width: none;
	box-shadow: none;
}

.jf-design-preview-item.is-logo .jf-design-preview-card {
	width: auto;
	overflow: visible;
	box-shadow: none;
}

.jf-design-preview-card::after,
.jf-design-preview-card::before {
	position: absolute;
	pointer-events: none;
}

.jf-design-preview.is-sample .jf-design-preview-items {
	opacity: 0.92;
}

.jf-design-preview-spec {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	color: var(--global-palette3, #0F172A);
}

.jf-design-preview-spec[hidden] {
	display: none;
}

.jf-design-preview[data-finish$="foil"] .jf-design-preview-spec::after {
	content: " · foil areas are agreed in your proof";
	font-weight: 400;
	color: var(--global-palette5, #64748B);
}

.jf-design-preview[data-finish="spot-uv"] .jf-design-preview-spec::after {
	content: " · gloss areas are agreed in your proof";
	font-weight: 400;
	color: var(--global-palette5, #64748B);
}

/* Matte: flat. Uncoated: a little softer. Soft-touch: velvety, slightly muted. */
.jf-design-preview[data-finish="matte"] :not(.is-logo) > .jf-design-preview-card img {
	filter: saturate(0.96);
}

.jf-design-preview[data-finish="uncoated"] :not(.is-logo) > .jf-design-preview-card img {
	filter: saturate(0.85) contrast(0.94) brightness(1.02);
}

.jf-design-preview[data-finish="soft-touch"] :not(.is-logo) > .jf-design-preview-card img {
	filter: saturate(0.9) contrast(0.96);
}

.jf-design-preview[data-finish="soft-touch"] :not(.is-logo) > .jf-design-preview-card::after {
	content: "";
	inset: 0;
	background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.05));
}

/* Gloss and spot UV: a light reflection. */
.jf-design-preview[data-finish="gloss"] :not(.is-logo) > .jf-design-preview-card::after,
.jf-design-preview[data-finish="spot-uv"] :not(.is-logo) > .jf-design-preview-card::after {
	content: "";
	inset: 0;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.38) 44%, rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0) 62%);
}

.jf-design-preview[data-finish="spot-uv"] :not(.is-logo) > .jf-design-preview-card::after {
	opacity: 0.6;
}

/* Linen: fine woven lines. */
.jf-design-preview[data-finish="linen-texture"] :not(.is-logo) > .jf-design-preview-card::after {
	content: "";
	inset: 0;
	background:
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 3px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px);
}

/* Foil: a metallic tag on the card, since the foil areas are set in the proof. */
.jf-design-preview[data-finish$="foil"] :not(.is-logo) > .jf-design-preview-card::before {
	content: "Gold foil";
	top: 10px;
	right: 10px;
	z-index: 1;
	padding: 3px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #8A6416, #F3D27A 40%, #B8892B 60%, #F7E3A1);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #3B2A06;
}

.jf-design-preview[data-finish="silver-foil"] :not(.is-logo) > .jf-design-preview-card::before {
	content: "Silver foil";
	background: linear-gradient(135deg, #7B8794, #F1F5F9 40%, #A0AEC0 60%, #E2E8F0);
	color: #1E293B;
}

.jf-design-preview[data-finish$="foil"] :not(.is-logo) > .jf-design-preview-card::after {
	content: "";
	inset: 0;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 240, 200, 0.22) 48%, rgba(255, 255, 255, 0) 60%);
}

/* Kit preview: every printed piece, at relative size ------------------------ */
.jf-design-preview-item.is-flat .jf-design-preview-card {
	overflow: visible;
	border-radius: 0;
	box-shadow: none;
}

.jf-design-preview.is-multi .jf-design-preview-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: 20px 16px;
}

.jf-design-preview.is-multi .jf-design-preview-item figcaption {
	font-size: 0.75rem;
	word-break: normal;
}

.jf-kit-stock {
	margin: 0;
	font-size: 0.8125rem;
	text-align: center;
	color: var(--global-palette5, #64748B);
}

.jf-kit-table {
	width: 100%;
	font-size: 0.9375rem;
}

/* Logo upload: details and layouts ----------------------------------------- */
.jf-logo-details,
.jf-pr-check {
	margin-top: 12px;
	padding: 14px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 8px;
	background: var(--global-palette8, #F8FAFC);
}

.jf-logo-details[hidden],
.jf-pr-check[hidden],
.jf-layouts[hidden],
.jf-pr-fit[hidden],
.jf-pr-detail[hidden],
.jf-layouts-edit[hidden] {
	display: none;
}

.jf-logo-details-title,
.jf-layouts-title {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--global-palette3, #0F172A);
}

.jf-logo-details-help,
.jf-layouts-help {
	margin: 2px 0 10px;
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-logo-details-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}

.jf-logo-details-grid .jf-field {
	margin: 0;
}

.jf-logo-details-grid .jf-field span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--global-palette3, #0F172A);
}

.jf-logo-details-grid input {
	width: 100%;
}

.jf-layouts {
	padding-top: 16px;
	border-top: 1px solid var(--global-palette7, #E2E8F0);
}

.jf-layouts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

/* Kits: each layout shows every piece side by side, so fewer, wider tiles. */
.jf-layouts.is-kit .jf-layouts-grid {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (max-width: 600px) {
	/* Two layouts per row on phones; tall pieces would otherwise fill the screen one by one. */
	.jf-layouts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	button.jf-layout img {
		max-height: 200px;
		object-fit: contain;
	}
}

button.jf-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--global-palette3, #0F172A);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}

button.jf-layout:hover {
	border-color: var(--global-palette1, #2563EB);
	background: #fff;
	color: var(--global-palette1, #2563EB);
}

button.jf-layout[aria-checked="true"] {
	border-color: var(--global-palette1, #2563EB);
	background: #EFF6FF;
	box-shadow: 0 0 0 1px var(--global-palette1, #2563EB);
	color: var(--global-palette1, #2563EB);
}

.jf-layout img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
}

.jf-layouts button.jf-layouts-edit {
	margin-top: 10px;
	padding: 8px 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--global-palette1, #2563EB);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Print-ready size check ----------------------------------------------------- */
.jf-pr-check p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
}

.jf-pr-status {
	font-weight: 700;
	color: var(--global-palette3, #0F172A);
}

.jf-pr-detail {
	margin-top: 4px !important;
	color: var(--global-palette4, #334155);
}

.jf-pr-check[data-state="ok"] {
	border-color: #BBF7D0;
	background: #F0FDF4;
}

.jf-pr-check[data-state="ok"] .jf-pr-status {
	color: #166534;
}

.jf-pr-check[data-state="warn"] {
	border-color: #F5D9A6;
	background: #FFF7E6;
}

.jf-pr-check[data-state="bad"] {
	border-color: #FECACA;
	background: #FEF2F2;
}

.jf-pr-check[data-state="bad"] .jf-pr-status {
	color: #B91C1C;
}

.jf-pr-fit {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 10px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--global-palette3, #0F172A);
}

.jf-pr-fit input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex: none;
	accent-color: var(--global-palette1, #2563EB);
}

.jf-pr-pages {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.jf-pr-pages[hidden] {
	display: none;
}

.jf-pr-pages li::before {
	content: "✓ ";
	color: #166534;
	font-weight: 700;
}

.jf-pr-pages li[data-ok="false"]::before {
	content: "✕ ";
	color: #B91C1C;
}

@media (max-width: 600px) {
	.jf-logo-details-grid {
		grid-template-columns: 1fr;
	}
}

/* Card editor: gallery, editor, review ---------------------------------- */
.jf-ced {
	--jf-ink: var(--global-palette3, #0F172A);
	--jf-body: var(--global-palette4, #334155);
	--jf-muted: var(--global-palette5, #64748B);
	--jf-line: var(--global-palette7, #E2E8F0);
	--jf-soft: var(--global-palette8, #F8FAFC);
	--jf-blue: var(--global-palette1, #2563EB);
	color: var(--jf-body);
}

.jf-ced .jf-ed-box {
	width: min(1360px, 100%);
	height: min(900px, 100%);
}

.jf-ced [hidden] {
	display: none !important;
}

.jf-ced h2 {
	margin: 0;
	font-size: 1.375rem;
	color: var(--jf-ink);
}

.jf-ced h3 {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--jf-muted);
}

.jf-ced h4 {
	margin: 4px 0 0;
	font-size: 0.8125rem;
	color: var(--jf-ink);
}

.jf-ced-small {
	margin: 6px 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--jf-muted);
}

.jf-ced-small:empty {
	display: none;
}

/* Header stepper */
.jf-ced-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	color: var(--jf-muted);
}

.jf-ced-steps li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.jf-ced-steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--jf-line);
	border-radius: 50%;
	font-size: 0.6875rem;
	font-weight: 700;
}

.jf-ced-steps li.is-current {
	font-weight: 700;
	color: var(--jf-ink);
}

.jf-ced-steps li.is-current span {
	border-color: var(--jf-blue);
	background: var(--jf-blue);
	color: #fff;
}

.jf-ced-steps li.is-done span {
	border-color: var(--jf-ink);
	background: var(--jf-ink);
	color: #fff;
}

.jf-ced .jf-ed-area-label {
	text-align: right;
}

/* Controls */
.jf-ced button.jf-ced-btn,
.jf-ced button.jf-ced-chip,
.jf-ced button.jf-ced-tab,
.jf-ced button.jf-ced-side,
.jf-ced button.jf-ced-layer,
.jf-ced button.jf-ced-issue,
.jf-ced button.jf-ced-tpl,
.jf-ced button.jf-ced-shape,
.jf-ced button.jf-ced-tile,
.jf-ced button.jf-ced-fav,
.jf-ced button.jf-ced-link {
	box-shadow: none;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}

.jf-ced button.jf-ced-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 12px;
	border: 1px solid var(--jf-line);
	border-radius: 8px;
	background: #fff;
	color: var(--jf-ink);
	font-size: 0.8125rem;
	font-weight: 600;
}

.jf-ced button.jf-ced-btn:hover:not([disabled]),
.jf-ced button.jf-ced-chip:hover,
.jf-ced button.jf-ced-tpl:hover,
.jf-ced button.jf-ced-shape:hover,
.jf-ced button.jf-ced-layer:hover {
	border-color: var(--jf-blue);
	background: #fff;
	color: var(--jf-blue);
}

.jf-ced button[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.jf-ced button[aria-pressed="true"]:not(.jf-ced-swatch):not(.jf-ced-fav) {
	border-color: var(--jf-blue);
	background: #EFF6FF;
	color: var(--jf-blue);
	box-shadow: 0 0 0 1px var(--jf-blue);
}

.jf-ced button.jf-ced-link {
	align-self: flex-start;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--jf-blue);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jf-ced button.jf-ced-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 4px 12px;
	border: 1px solid var(--jf-line);
	border-radius: 999px;
	background: #fff;
	color: var(--jf-ink);
	font-size: 0.8125rem;
	font-weight: 500;
}

.jf-ced-chip i {
	display: block;
	width: 12px;
	height: 12px;
	border: 1px solid rgba(15, 23, 42, 0.3);
	border-radius: 50%;
}

.jf-ced-chips,
.jf-ced-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.jf-ced-row > button {
	flex: 1 1 0;
}

.jf-ced-fld {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.jf-ced-fld > span,
.jf-ced-lbl {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--jf-ink);
}

.jf-ced-fld em {
	font-style: normal;
	font-weight: 400;
	color: var(--jf-muted);
}

.jf-ced-fld input[type="text"],
.jf-ced-fld input[type="search"],
.jf-ced-fld input[type="number"],
.jf-ced-fld select,
.jf-ced-fld textarea {
	width: 100%;
	min-height: 40px;
	padding: 6px 10px;
	font-size: 0.875rem;
}

.jf-ced-fld input[type="file"] {
	width: 100%;
	font-size: 0.8125rem;
}

.jf-ced-check,
.jf-ced-confirm {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	font-size: 0.875rem;
	color: var(--jf-ink);
}

.jf-ced-check input,
.jf-ced-confirm input {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: none;
	accent-color: var(--jf-blue);
}

.jf-ced-confirm {
	align-items: flex-start;
	line-height: 1.45;
}

.jf-ced-confirm input {
	margin-top: 2px;
}

.jf-ced-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.jf-ced button.jf-ced-swatch {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, 0.2);
	border-radius: 50%;
	box-shadow: none;
}

.jf-ced button.jf-ced-swatch[aria-pressed="true"] {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--jf-blue);
}

.jf-ced-custom {
	position: relative;
	width: 28px;
	height: 28px;
	overflow: hidden;
	border-radius: 50%;
	background: conic-gradient(#EF4444, #F59E0B, #10B981, #3B82F6, #8B5CF6, #EF4444);
	cursor: pointer;
}

.jf-ced-custom input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

.jf-ced-screen {
	flex: 1;
	min-height: 0;
}

/* 1. Gallery */
.jf-ced-gallery {
	display: grid;
	grid-template-columns: 270px 1fr;
}

.jf-ced-filters {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 18px;
	border-right: 1px solid var(--jf-line);
	overflow-y: auto;
}

.jf-ced-yours {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--jf-line);
	border-radius: 10px;
	background: var(--jf-soft);
}

.jf-ced-yours h3 {
	margin: 0;
}

.jf-ced-more {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.jf-ced-more h3 {
	margin: 0;
}

.jf-ced-results {
	padding: 18px 22px 28px;
	overflow-y: auto;
}

.jf-ced-results-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 16px;
}

.jf-ced-count {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: var(--jf-muted);
}

.jf-ced-results-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}

.jf-ced-search {
	min-width: 240px;
}

.jf-ced-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}

.jf-ced-tile-wrap {
	position: relative;
}

.jf-ced button.jf-ced-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	height: 100%;
	padding: 12px;
	border: 1px solid var(--jf-line);
	border-radius: 12px;
	background: #fff;
	color: var(--jf-ink);
	text-align: left;
}

.jf-ced button.jf-ced-tile:hover {
	border-color: var(--jf-ink);
	background: #fff;
	color: var(--jf-ink);
}

.jf-ced-tile img {
	display: block;
	width: 100%;
	max-height: 240px;
	object-fit: contain;
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14), 0 6px 18px rgba(15, 23, 42, 0.1);
}

.jf-ced-tile strong {
	margin-top: 6px;
	font-size: 0.9375rem;
}

.jf-ced-tile span {
	font-size: 0.8125rem;
	color: var(--jf-muted);
}

.jf-ced button.jf-ced-tile.is-blank {
	justify-content: center;
	align-items: center;
	min-height: 200px;
	border-style: dashed;
	border-color: #94A3B8;
	text-align: center;
}

.jf-ced button.jf-ced-fav {
	position: absolute;
	top: 18px;
	right: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--jf-line);
	border-radius: 50%;
	background: #fff;
	color: var(--jf-ink);
}

.jf-ced-fav path {
	fill: none;
}

.jf-ced button.jf-ced-fav[aria-pressed="true"] {
	color: #BE185D;
}

.jf-ced-fav[aria-pressed="true"] path {
	fill: currentColor;
}

.jf-ced-none {
	margin: 24px 0;
	font-size: 0.9375rem;
}

/* 2. Editor */
.jf-ced-editor {
	display: flex;
	flex-direction: column;
}

.jf-ced-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-bottom: 1px solid var(--jf-line);
}

.jf-ced-spacer {
	flex: 1 1 16px;
}

.jf-ced .button.jf-ced-to-review,
.jf-ced .button.jf-ced-add-cart {
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.875rem;
}

.jf-ced-work {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr) 290px;
	flex: 1;
	min-height: 0;
}

.jf-ced-tools {
	display: flex;
	min-height: 0;
	border-right: 1px solid var(--jf-line);
}

.jf-ced-tabs {
	display: flex;
	flex: 0 0 84px;
	flex-direction: column;
	border-right: 1px solid var(--jf-line);
	background: var(--jf-soft);
}

.jf-ced button.jf-ced-tab {
	min-height: 58px;
	padding: 6px;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--jf-body);
	font-size: 0.75rem;
	font-weight: 600;
}

.jf-ced button.jf-ced-tab:hover {
	background: #fff;
	color: var(--jf-blue);
}

.jf-ced button.jf-ced-tab[aria-selected="true"] {
	border-left-color: var(--jf-blue);
	background: #fff;
	color: var(--jf-ink);
	font-weight: 700;
}

.jf-ced-tabpanes {
	flex: 1;
	min-width: 0;
	padding: 14px;
	overflow-y: auto;
}

.jf-ced-pane {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.jf-ced-pane h3 {
	margin: 0;
}

.jf-ced-addtext {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jf-ced-swaps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.jf-ced button.jf-ced-tpl {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 6px;
	border: 1px solid var(--jf-line);
	border-radius: 8px;
	background: #fff;
	color: var(--jf-ink);
	font-size: 0.6875rem;
	font-weight: 600;
}

.jf-ced-tpl img {
	display: block;
	width: 100%;
	height: 64px;
	object-fit: contain;
}

.jf-ced-texts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.jf-ced-trow {
	display: flex;
	align-items: flex-start;
	gap: 4px;
}

.jf-ced-trow label {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.jf-ced-trow span {
	display: block;
	margin-bottom: 2px;
	font-size: 0.6875rem;
	color: var(--jf-muted);
}

.jf-ced-trow textarea {
	width: 100%;
	min-height: 0;
	padding: 6px 8px;
	font-size: 0.8125rem;
	line-height: 1.4;
	resize: vertical;
}

.jf-ced-trow.is-active textarea {
	border-color: var(--jf-blue);
	box-shadow: 0 0 0 1px var(--jf-blue);
}

.jf-ced button.jf-ced-trm {
	margin-top: 16px;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: var(--jf-muted);
	font-size: 1.125rem;
	line-height: 1;
	box-shadow: none;
}

.jf-ced button.jf-ced-trm:hover {
	background: none;
	color: #B91C1C;
}

.jf-ced-issues {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jf-ced-issues li {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.jf-ced-issues.is-static li,
.jf-ced button.jf-ced-issue {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #F5D9A6;
	border-radius: 8px;
	background: #FFF7E6;
	color: var(--jf-ink);
	font-size: 0.8125rem;
	font-weight: 400;
	text-align: left;
}

.jf-ced button.jf-ced-issue:hover {
	border-color: #E19A00;
	background: #FFF7E6;
	color: var(--jf-ink);
}

.jf-ced-ok {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	color: #166534;
}

.jf-ced-center {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: #E2E8F0;
}

.jf-ced-stage {
	position: relative;
	display: flex;
	flex: 1;
	min-height: 0;
	padding: 24px;
	overflow: auto;
}

.jf-ced-canvas {
	flex: none;
	margin: auto;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16), 0 10px 28px rgba(15, 23, 42, 0.14);
}

/* Clear film (clear bags): a light checkerboard shows through. */
.jf-ced-canvas.is-clear {
	background: repeating-conic-gradient(#E2E8F0 0% 25%, #FFFFFF 0% 50%) 0 0 / 16px 16px;
}

.jf-ced-sides[hidden],
.jf-ced-side[hidden],
.jf-ced-bgpane[hidden],
.jf-ced-inkpane[hidden],
.jf-ced-add-pattern[hidden],
.jf-ced-p-pattern[hidden],
.jf-ced-ptext-wrap[hidden],
.jf-ced-piece-note[hidden],
.jf-ced-sel .jf-ced-btn[hidden],
.jf-ced-sel .jf-ced-fld[hidden],
.jf-ced-sel .jf-ced-lbl[hidden],
.jf-ced-sel .jf-ced-row[hidden] {
	display: none;
}

.jf-ced-piece-note {
	margin: 4px 14px 0;
}

.jf-ced-stagebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	padding: 8px 14px;
	border-top: 1px solid var(--jf-line);
	background: #fff;
}

.jf-ced-sides {
	display: flex;
	gap: 6px;
}

.jf-ced button.jf-ced-side {
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--jf-line);
	border-radius: 8px;
	background: #fff;
	color: var(--jf-ink);
	font-size: 0.875rem;
	font-weight: 700;
}

.jf-ced button.jf-ced-side[aria-selected="true"] {
	border-color: var(--jf-ink);
	background: var(--jf-ink);
	color: #fff;
}

.jf-ced-legend {
	margin: 0;
	font-size: 0.75rem;
	color: var(--jf-muted);
}

.jf-ced-legend .is-trim {
	color: #BE185D;
}

.jf-ced-legend .is-safe {
	color: #0E7490;
}

.jf-ced-zoom {
	display: flex;
	align-items: center;
	gap: 6px;
}

.jf-ced-zoom button.jf-ced-btn {
	min-width: 40px;
	padding: 0;
	font-size: 1rem;
}

.jf-ced-zoom-val {
	min-width: 44px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-align: center;
	color: var(--jf-ink);
}

.jf-ced-back-note {
	margin: 0;
	padding: 8px 14px;
	background: #FFF7E6;
	font-size: 0.8125rem;
	color: var(--jf-ink);
}

.jf-ced-props {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border-left: 1px solid var(--jf-line);
	overflow-y: auto;
}

.jf-ced-props h3 {
	margin: 0;
}

.jf-ced-sel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.jf-ced-sel-label {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--jf-ink);
}

.jf-ced-p {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.jf-ced-p-color {
	gap: 6px;
}

.jf-ced-size input,
.jf-ced-width input {
	max-width: 110px;
}

.jf-ced-nudge button.jf-ced-btn {
	font-size: 1rem;
}

.jf-ced button.jf-ced-del {
	color: #B91C1C;
}

.jf-ced-shapes {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.jf-ced button.jf-ced-shape {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 6px 2px;
	border: 1px solid var(--jf-line);
	border-radius: 8px;
	background: #fff;
	color: var(--jf-ink);
	font-size: 0.6875rem;
	font-weight: 500;
}

.jf-ced-shape-icon {
	display: block;
	width: 18px;
	height: 18px;
	border: 1.5px solid currentColor;
}

.jf-ced-shape-icon.is-wide {
	width: 26px;
	height: 13px;
	margin: 2.5px 0;
}

.jf-ced-shape-icon.is-rounded {
	border-radius: 5px;
}

.jf-ced-shape-icon.is-circle {
	border-radius: 50%;
}

.jf-ced-layers-h {
	padding-top: 10px;
	border-top: 1px solid var(--jf-line);
}

.jf-ced-layers {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jf-ced-layers li {
	margin: 0;
}

.jf-ced button.jf-ced-layer {
	width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	overflow: hidden;
	border: 1px solid var(--jf-line);
	border-radius: 8px;
	background: #fff;
	color: var(--jf-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 3. Review */
.jf-ced-review {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
	padding: 18px 24px 32px;
	overflow-y: auto;
}

.jf-ced-review-main {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.jf-ced-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.jf-ced-previews figure {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.jf-ced-previews img {
	display: block;
	width: 300px;
	max-width: 100%;
	height: auto;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16), 0 10px 28px rgba(15, 23, 42, 0.12);
}

.jf-ced-previews figcaption {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--jf-ink);
}

.jf-ced-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--jf-line);
	border-radius: 12px;
	background: #fff;
}

.jf-ced-box h3 {
	margin: 0;
}

.jf-ced-options {
	flex: 1 1 320px;
	max-width: 420px;
	gap: 14px;
}

.jf-ced-opt-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.jf-ced-opt-fixed {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-size: 0.875rem;
}

.jf-ced-opt-fixed span {
	font-weight: 600;
	color: var(--jf-ink);
}

.jf-ced-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--jf-line);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--jf-ink);
}

.jf-ced-price {
	text-align: right;
}

.jf-ced-price .price {
	margin: 0;
	font-size: inherit;
}

.jf-ced .button.jf-ced-add-cart {
	min-height: 48px;
	font-size: 1rem;
}

.jf-ced .button.jf-ced-add-cart[disabled] {
	opacity: 0.45;
}

@media (max-width: 1100px) {
	.jf-ced-work {
		grid-template-columns: 260px minmax(0, 1fr);
	}

	.jf-ced-props {
		grid-column: 1 / -1;
		max-height: 260px;
		border-left: 0;
		border-top: 1px solid var(--jf-line);
	}
}

@media (max-width: 760px) {
	.jf-ced .jf-ed-box {
		overflow-y: auto;
	}

	.jf-ced-steps {
		order: 3;
		width: 100%;
		margin: 0;
	}

	.jf-ced .jf-ed-head {
		flex-wrap: wrap;
	}

	.jf-ced-gallery {
		grid-template-columns: 1fr;
	}

	.jf-ced-filters {
		border-right: 0;
		border-bottom: 1px solid var(--jf-line);
		overflow: visible;
	}

	.jf-ced-results {
		overflow: visible;
	}

	.jf-ced-search {
		min-width: 0;
		flex: 1;
	}

	.jf-ced-screen,
	.jf-ced-work,
	.jf-ced-tools,
	.jf-ced-props {
		flex: none;
		min-height: auto;
	}

	.jf-ced-work {
		display: flex;
		flex-direction: column;
	}

	.jf-ced-center {
		order: -1;
		min-height: 300px;
	}

	.jf-ced-tools {
		flex-direction: column;
		border-right: 0;
	}

	.jf-ced-tabs {
		flex: none;
		flex-direction: row;
		overflow-x: auto;
		border-right: 0;
		border-bottom: 1px solid var(--jf-line);
	}

	.jf-ced button.jf-ced-tab {
		flex: none;
		min-height: 44px;
		padding: 6px 12px;
		border-left: 0;
		border-bottom: 3px solid transparent;
	}

	.jf-ced button.jf-ced-tab[aria-selected="true"] {
		border-bottom-color: var(--jf-blue);
	}

	.jf-ced-tabpanes,
	.jf-ced-props {
		overflow: visible;
		max-height: none;
	}

	.jf-ced-legend {
		display: none;
	}

	.jf-ced-review {
		padding: 16px;
		overflow: visible;
	}

	.jf-ced-options {
		max-width: none;
	}
}

/* Cart / checkout ---------------------------------------------------- */
.jf-duties th,
.jf-duties td strong {
	color: var(--global-palette3, #0F172A);
}

.jf-dispatch td {
	font-size: 0.875rem;
	color: var(--global-palette5, #64748B);
}

.jf-card-soon {
	margin: 0 0 12px;
	font-size: 0.875rem;
	color: var(--global-palette5, #64748B);
}

.jf-proof-note {
	margin: 12px 0 0;
	font-size: 0.875rem;
	color: var(--global-palette5, #64748B);
	text-align: center;
}

/* Order received: next steps ---------------------------------------- */
.jf-next-steps {
	margin: 0 0 32px;
	padding: 24px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 12px;
	background: var(--global-palette8, #F8FAFC);
}

.jf-next-steps h2 {
	margin-top: 0;
	font-size: 1.25rem;
}

.jf-next-steps ol {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 0;
	padding-left: 1.2em;
}

.jf-next-steps li strong,
.jf-next-steps li span {
	display: block;
}

.jf-next-steps li span {
	font-size: 0.875rem;
	color: var(--global-palette5, #64748B);
}

.jf-next-file {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: #FFF7E6;
	border: 1px solid #F5D9A6;
}

/* Proof page --------------------------------------------------------- */
.jf-proof {
	padding: 32px 0 64px;
}

.jf-proof-bar {
	margin-bottom: 20px;
	padding: 16px 20px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 12px;
	background: var(--global-palette8, #F8FAFC);
}

.jf-proof-bar h1 {
	margin: 0;
	font-size: 1.25rem;
}

.jf-proof-bar p {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: var(--global-palette5, #64748B);
}

.jf-proof-message {
	padding: 12px 16px;
	border-radius: 8px;
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
}

.jf-proof-message.is-error {
	background: #FEF2F2;
	border-color: #FECACA;
}

.jf-proof-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
	gap: 32px;
	align-items: start;
}

@media (max-width: 860px) {
	.jf-proof-grid {
		grid-template-columns: 1fr;
	}
}

.jf-proof-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.jf-proof-tab {
	padding: 8px 16px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 8px;
	background: var(--global-palette9, #fff);
	color: var(--global-palette3, #0F172A);
	box-shadow: none;
}

.jf-proof-tab.is-active,
.jf-proof-tab:hover {
	border-color: var(--global-palette1, #2563EB);
	background: #EFF6FF;
	color: var(--global-palette3, #0F172A);
}

.jf-proof-panel img,
.jf-proof-panel iframe {
	display: block;
	width: 100%;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 12px;
	background: var(--global-palette9, #fff);
}

.jf-proof-panel iframe {
	height: min(75vh, 820px);
}

.jf-proof-download {
	margin: 8px 0 0;
	font-size: 0.875rem;
}

.jf-proof-note-box {
	margin-top: 16px;
	padding: 14px 16px;
	border-left: 3px solid var(--global-palette1, #2563EB);
	background: var(--global-palette8, #F8FAFC);
}

.jf-proof-note-box p {
	margin: 4px 0 0;
}

.jf-proof-side h2 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.jf-proof-specs {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.jf-proof-specs li {
	padding: 8px 0;
	border-bottom: 1px solid var(--global-palette7, #E2E8F0);
}

.jf-proof-specs span {
	display: block;
	font-size: 0.875rem;
	color: var(--global-palette5, #64748B);
}

.jf-proof-check {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 6px 0;
	cursor: pointer;
}

.jf-proof-check input {
	width: 18px;
	height: 18px;
}

.jf-proof-approve-btn,
.jf-proof-changes-btn {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin-top: 16px;
	padding: 14px;
	text-align: center;
	border-radius: 8px;
}

.jf-proof-approve-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.jf-proof-changes {
	margin-top: 10px;
}

.jf-proof-changes summary {
	list-style: none;
	background: transparent;
	color: var(--global-palette3, #0F172A);
	border: 1px solid var(--global-palette7, #E2E8F0);
	cursor: pointer;
}

.jf-proof-changes summary::-webkit-details-marker {
	display: none;
}

.jf-proof-changes form {
	margin-top: 12px;
}

.jf-proof-changes textarea {
	width: 100%;
	margin: 6px 0 10px;
}

.jf-proof-fine,
.jf-proof-help,
.jf-proof-approved {
	font-size: 0.8125rem;
	color: var(--global-palette5, #64748B);
}

.jf-proof-approved {
	padding: 12px 14px;
	border-radius: 8px;
	background: #ECFDF5;
	color: #065F46;
	font-size: 0.9375rem;
}

/* Editor designs on the product page: the shadow follows the cut shape (tags, labels, stickers). */
.jf-design-preview-item.is-cut .jf-design-preview-card {
	width: auto;
	max-width: 100%;
	overflow: visible;
	border-radius: 0;
	box-shadow: none;
}

.jf-design-preview-item.is-cut .jf-design-preview-card img {
	width: auto;
	max-width: 100%;
	max-height: 440px;
	margin: 0 auto;
	filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.2)) drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

/* Kit editor: one tab per printed piece, above the canvas. */
.jf-ced-pieces {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--global-palette7, #E2E8F0);
	background: #fff;
}

button.jf-ced-piece {
	padding: 6px 12px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var(--global-palette3, #0F172A);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

button.jf-ced-piece:hover {
	border-color: var(--global-palette1, #2563EB);
	background: #fff;
	color: var(--global-palette1, #2563EB);
}

button.jf-ced-piece[aria-selected="true"] {
	border-color: var(--global-palette3, #0F172A);
	background: var(--global-palette3, #0F172A);
	color: #fff;
}

.jf-ced-previews figure.is-piece img {
	width: auto;
	max-width: 100%;
	max-height: 260px;
	box-shadow: none;
	filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.2)) drop-shadow(0 6px 14px rgba(15, 23, 42, 0.1));
}

@media (max-width: 600px) {
	.jf-ced .jf-ed-area-label {
		display: none;
	}
}

/* Two-ink products: which ink the selected item prints in. */
.jf-ced-p-ink[hidden],
.jf-ced-ink2[hidden] {
	display: none;
}

.jf-ced-inkdot {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	border: 1px solid rgba(15, 23, 42, 0.25);
	border-radius: 50%;
	vertical-align: -1px;
}

.jf-ced-pink-btn[aria-pressed="true"] {
	border-color: var(--global-palette1, #2563EB);
	box-shadow: 0 0 0 1px var(--global-palette1, #2563EB);
}

.jf-ced-ink2 {
	margin-top: 16px;
}

/* Template library: "Save as template" (shop owner only). */
.jf-ced-tpl-dialog {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.45);
}

.jf-ced-tpl-dialog[hidden] {
	display: none;
}

.jf-ced-tpl-box {
	width: min(520px, 100%);
	max-height: 100%;
	overflow: auto;
	padding: 24px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.jf-ced-tpl-box h3 {
	margin: 0 0 6px;
}

.jf-ced-tpl-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.jf-ced-tpl-scope {
	margin: 12px 0 0;
	padding: 0;
	border: 0;
	font-size: 0.875rem;
}

.jf-ced-tpl-scope legend {
	margin-bottom: 4px;
	font-weight: 600;
	color: var(--global-palette3, #0F172A);
}

.jf-ced-tpl-scope label {
	display: block;
	margin: 4px 0;
}

.jf-ced-tpl-update[hidden],
.jf-ced-prole[hidden] {
	display: none;
}

.jf-ced-tpl-msg {
	min-height: 1.4em;
	margin: 12px 0;
	font-size: 0.875rem;
}

.jf-ced-tpl-msg[data-state="ok"] {
	color: #166534;
}

.jf-ced-tpl-msg[data-state="bad"] {
	color: #B91C1C;
}

@media (max-width: 600px) {
	.jf-ced-tpl-cols {
		grid-template-columns: 1fr;
	}
}

.jf-ced .jf-ed-box {
	position: relative; /* holds the template dialog */
}

/* Editor: graphics in the Shapes tab. */
.jf-ced-arts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 8px 0;
}

button.jf-ced-art {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 6px;
	border: 1px solid var(--global-palette7, #E2E8F0);
	border-radius: 6px;
	background: #fff;
	color: var(--global-palette3, #0F172A);
	box-shadow: none;
}

button.jf-ced-art:hover,
button.jf-ced-art:focus-visible {
	border-color: var(--global-palette1, #2563EB);
	background: #fff;
	color: var(--global-palette1, #2563EB);
}

button.jf-ced-art svg {
	width: 100%;
	height: 100%;
}

/* Editor: the shop team uploads a graphic */
.jf-ced-art-upload {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #E2E8F0;
	display: grid;
	gap: 8px;
}
.jf-ced-art-pick {
	cursor: pointer;
	text-align: center;
}
.jf-ced-art-msg[data-state="bad"] {
	color: #B91C1C;
}
.jf-ced-art-msg[data-state="ok"] {
	color: #15803D;
}
