:root {
	--apds-accent: #2563eb;
	--apds-ink: #111827;
	--apds-muted: #6b7280;
	--apds-panel: #ffffff;
	--apds-border: #d1d5db;
}

.apds-product-action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.apds-personalize-button.is-disabled,
.apds-personalize-button[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
}

.apds-selection-message {
	color: var(--apds-muted);
	font-size: 0.9rem;
}

.apds-personalize-button[aria-disabled="false"] + .apds-selection-message {
	display: none;
}

.apds-studio-body {
	margin: 0;
	background: #f3f4f6;
	color: var(--apds-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.apds-studio {
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr;
}

.apds-studio__topbar {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: center;
	padding: 16px clamp(16px, 4vw, 40px);
	background: var(--apds-panel);
	border-bottom: 1px solid var(--apds-border);
}

.apds-studio__topbar h1 {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.apds-studio__topbar p {
	margin: 4px 0 0;
	color: var(--apds-muted);
}

.apds-studio__back {
	color: var(--apds-accent);
	text-decoration: none;
	font-weight: 600;
}

.apds-studio__workspace {
	display: grid;
	grid-template-columns: minmax(280px, 360px) 1fr;
	min-height: 0;
}

.apds-studio__panel {
	background: var(--apds-panel);
	border-right: 1px solid var(--apds-border);
	padding: 20px;
	display: grid;
	align-content: start;
	gap: 14px;
}

.apds-studio__panel h2 {
	margin: 0;
	font-size: 1rem;
}

.apds-studio__panel label {
	display: grid;
	gap: 6px;
	font-weight: 600;
}

.apds-studio__panel input,
.apds-studio__panel select {
	min-height: 42px;
	border: 1px solid var(--apds-border);
	border-radius: 6px;
	padding: 8px 10px;
	font: inherit;
}

.apds-studio__status {
	min-height: 22px;
	color: var(--apds-muted);
}

.apds-add-to-cart:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.apds-studio__preview {
	display: grid;
	place-items: center;
	padding: clamp(18px, 5vw, 56px);
	overflow: auto;
}

.apds-product-mockup {
	width: min(78vw, 520px);
	aspect-ratio: 0.78;
	position: relative;
	background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 100%);
	border: 1px solid #cbd5e1;
	border-radius: 8px 8px 36px 36px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.apds-product-mockup__neck {
	position: absolute;
	top: 0;
	left: 50%;
	width: 30%;
	aspect-ratio: 2;
	border-radius: 0 0 999px 999px;
	background: #f3f4f6;
	border: 1px solid #cbd5e1;
	transform: translateX(-50%);
}

.apds-product-mockup__print-area {
	position: absolute;
	left: 25%;
	top: 24%;
	width: 50%;
	height: 36%;
	display: grid;
	place-items: center;
	border: 2px dashed var(--apds-accent);
	background: rgba(37, 99, 235, 0.05);
	text-align: center;
	padding: 12px;
}

.apds-product-mockup__print-area span {
	font-size: clamp(1.25rem, 4vw, 2.5rem);
	font-weight: 800;
	overflow-wrap: anywhere;
}

@media (max-width: 760px) {
	.apds-studio__topbar {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.apds-studio__workspace {
		grid-template-columns: 1fr;
	}

	.apds-studio__panel {
		border-right: 0;
		border-bottom: 1px solid var(--apds-border);
	}

	.apds-studio__preview {
		padding: 18px;
	}
}
