.jpo-panel {
	--jpo-ink: var(--ink, #252525);
	--jpo-muted: #555952;
	--jpo-line: #d9dbd1;
	--jpo-paper: #fff;
	--jpo-soft: #f6f7f2;
	--jpo-active: #e8eed7;
	--jpo-accent: #465d1c;
	--jpo-danger: #9d332a;
	--jpo-gutter: clamp(15px, 3.2vw, 24px);
	box-sizing: border-box;
	position: relative;
	clear: both;
	min-width: 0;
	margin: 18px 0;
	padding: var(--jpo-gutter);
	background: var(--jpo-paper);
	border: 1px solid var(--jpo-line);
	border-radius: 12px;
	color: var(--jpo-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.jpo-panel *, .jpo-panel *::before, .jpo-panel *::after {
	box-sizing: border-box;
}

.jpo-panel [hidden], .woocommerce div.product form.cart:has([data-jpo-wizard]) .single_add_to_cart_button {
	display: none !important;
}

.jpo-panel .jpo-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.jpo-panel :is(a, button, input, [tabindex]):focus-visible,
.jpo-panel .jpo-file:focus-visible ~ .jpo-phase .jpo-drop {
	outline: 2px solid var(--jpo-accent);
	outline-offset: 3px;
}

.jpo-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.jpo-panel .jpo-heading h2 {
	margin: 0;
	font-family: var(--title, inherit);
	font-size: clamp(19px, 3vw, 25px);
	line-height: 1.35;
	font-weight: 700;
}

.jpo-step-count {
	color: var(--jpo-muted);
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	white-space: nowrap;
}

.jpo-panel ol.jpo-steps {
	display: flex;
	align-items: flex-start;
	margin: 18px 0 20px;
	padding: 0;
	list-style: none;
}

.jpo-steps li {
	position: relative;
	flex: 1 1 0;
	display: grid;
	justify-items: center;
	gap: 5px;
	min-width: 0;
	padding: 0 2px;
	color: var(--jpo-muted);
	text-align: center;
}

.jpo-steps li:not(:first-child)::before {
	position: absolute;
	top: 13px;
	left: calc(-50% + 18px);
	right: calc(50% + 18px);
	height: 1px;
	background: var(--jpo-line);
	content: '';
}

.jpo-step-marker {
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	border: 1px solid #a9afa0;
	border-radius: 50%;
	background: var(--jpo-paper);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.jpo-step-label {
	font-size: clamp(10px, 2.55vw, 13px);
}

.jpo-steps li[aria-current="step"] {
	color: var(--jpo-ink);
	font-weight: 700;
}

.jpo-steps li[aria-current="step"] .jpo-step-marker {
	border-color: var(--jpo-ink);
	background: var(--jpo-ink);
	color: white;
}

.jpo-steps li[data-complete] .jpo-step-marker {
	border-color: var(--jpo-accent);
	background: var(--jpo-active);
	color: var(--jpo-accent);
}

.jpo-steps li[data-complete] [data-jpo-step-number],
.jpo-steps li:not([data-complete]) [data-jpo-step-check] {
	display: none;
}

.jpo-panel .jpo-phase h3 {
	margin: 0 0 9px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

.jpo-drop {
	display: grid;
	justify-items: center;
	gap: 3px;
	padding: 16px 10px;
	border: 1px dashed #a4ad91;
	border-radius: 8px;
	background: var(--jpo-soft);
	color: var(--jpo-ink);
	text-align: center;
	cursor: pointer;
}

.jpo-drop:hover, .jpo-drop[data-dragging] {
	border-color: var(--jpo-accent);
	background: var(--jpo-active);
}

.jpo-upload-icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-bottom: 3px;
	border-radius: 50%;
	background: var(--jpo-active);
	color: var(--jpo-accent);
	font-size: 18px;
	line-height: 1;
}

.jpo-drop-title {
	font-weight: 700;
}

.jpo-drop-detail, .jpo-hint, .jpo-mockup figcaption {
	color: var(--jpo-muted);
	font-size: 12px;
}

.jpo-panel .jpo-hint {
	margin: 7px 0 0;
}

.jpo-upload-meter {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	color: var(--jpo-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.jpo-upload-meter progress {
	flex: 1 1 auto;
	height: 9px;
	accent-color: var(--jpo-accent);
}

.jpo-file-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin-top: 12px;
	padding: 8px;
	border: 1px solid var(--jpo-line);
	border-radius: 8px;
}

.jpo-file-summary img {
	flex: none;
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 4px;
	object-fit: cover;
}

.jpo-file-summary strong {
	display: block;
}

.jpo-panel figure.jpo-mockup {
	margin: 0;
}

.jpo-mockup-image {
	position: relative;
	max-width: 430px;
	margin-inline: auto;
	overflow: hidden;
	border-radius: 7px;
	background: var(--jpo-soft);
}

.jpo-panel .jpo-mockup-base {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.jpo-print-area {
	position: absolute;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.jpo-panel .jpo-print-area img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jpo-mockup figcaption {
	margin-top: 8px;
}

.jpo-preview-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 3px;
}

.jpo-panel .jpo-secondary {
	display: inline-block;
	min-height: 44px;
	padding: 5px 0;
	border: 0;
	background: transparent;
	color: var(--jpo-accent);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: .18em;
	cursor: pointer;
}

.jpo-panel .jpo-file-summary .jpo-secondary {
	min-height: 34px;
	font-size: 12px;
}

.jpo-panel p:is(.jpo-feedback, .jpo-error) {
	margin: 10px 0 0;
	font-size: 13px;
}

.jpo-panel .jpo-feedback:empty {
	margin: 0;
}

.jpo-panel .jpo-error {
	padding: 7px 10px;
	border-inline-start: 2px solid var(--jpo-danger);
	background: #fcf1ef;
	color: var(--jpo-danger);
}

.jpo-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	align-items: center;
	gap: 8px 10px;
	margin-top: 15px;
	padding-top: 12px;
	border-top: 1px solid var(--jpo-line);
	background: var(--jpo-paper);
}

.jpo-quantity {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--jpo-muted);
	font-size: 12px;
}

.woocommerce div.product form.cart .jpo-panel .quantity {
	float: none;
	margin: 0;
}

.jpo-quantity .qty {
	min-height: 34px;
}

.jpo-panel .jpo-primary {
	grid-column: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
	min-height: 48px;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--jpo-ink);
	border-radius: 6px;
	background: var(--jpo-ink);
	color: white;
	text-align: left;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.jpo-primary:hover {
	background: #384531;
}

.jpo-primary:disabled {
	cursor: wait;
	opacity: .75;
}

.jpo-line {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 1px 14px 1px 5px;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
	background: #fff;
	color: #252525;
	text-decoration: none;
	line-height: 1.3;
}

.jpo-actions > .jpo-line {
	grid-column: 2;
}

a.jpo-line:hover {
	border-color: #b8b8b8;
	background: #f8f8f8;
	color: #252525;
}

a.jpo-line:focus-visible {
	outline: 2px solid #465d1c;
	outline-offset: 2px;
}

.jpo-line-icon {
	flex: none;
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.jpo-line-copy {
	display: grid;
	gap: 1px;
}

.jpo-line-disabled {
	padding-inline: 12px;
	background: #f8f8f8;
	color: #555;
}

.jpo-line-label {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.jpo-line-detail {
	color: #595959;
	font-size: 10px;
	white-space: nowrap;
}

.jpo-payment {
	max-width: 640px;
	margin-block: 16px 20px;
}

.jpo-payment p.jpo-payment-summary {
	margin: 0 0 12px;
}

@media (max-width: 680px) {
	.jpo-actions {
		position: sticky;
		z-index: 2;
		bottom: 0;
		padding-bottom: max(4px, env(safe-area-inset-bottom));
	}
}

@media (max-width: 360px) {
	.jpo-actions {
		grid-template-columns: minmax(0, 1fr);
	}
	.jpo-actions > .jpo-line {
		grid-column: 1;
		justify-self: start;
	}
	.jpo-panel .jpo-primary {
		padding-inline: 7px;
		font-size: 12px;
	}
}

.jpo-text {
	margin-block: 0 18px;
}

.jpo-text label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.jpo-text input {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--jpo-line);
	border-radius: 6px;
	background: var(--jpo-paper);
	color: var(--jpo-ink);
	font: inherit;
	font-size: 16px;
}

.jpo-text input[data-invalid] {
	border-color: var(--jpo-danger);
}

.jpo-detail-summary {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	margin-block: 14px;
	padding: 12px 18px;
	border-radius: 8px;
	border-inline-start: 3px solid #647146;
	background: #f4f6ee;
	color: #252525;
	cursor: default;
}

.jpo-detail-summary .jpo-detail-summary__title {
	margin: 0;
	color: #40512a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.jpo-detail-summary .jpo-detail-summary__features {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.jpo-detail-summary__features li {
	white-space: nowrap;
}

.jpo-detail-summary__features li + li {
	padding-inline-start: 8px;
	border-inline-start: 1px solid #a9b09b;
}
