/* MerchDepot designer shell. Primary green: #2ebb77. */

/* Start button on the product page */

.mdc-start-designing {
	display: inline-block;
	background: #2ebb77;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 14px 36px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mdc-start-designing:hover,
.mdc-start-designing:focus {
	background: #279d64;
	color: #fff;
}

/* Overlay frame */

.mdc-designer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #222;
}

/* The hidden attribute always wins inside the overlay, no matter how
   specific a display rule gets. */
.mdc-designer[hidden],
.mdc-designer [hidden] {
	display: none !important;
}

body.mdc-designer-open {
	overflow: hidden;
}

/* Header */

.mdc-designer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e5e5e5;
}

.mdc-designer__title {
	font-size: 18px;
	font-weight: 600;
}

.mdc-designer .mdc-designer__close {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	flex-shrink: 0;
	padding: 0 !important;
	margin: 0 !important;
	background: #2ebb77;
	border: none;
	border-radius: 12px;
	font-size: 18px;
	line-height: 1 !important;
	color: #fff;
	cursor: pointer;
}

.mdc-designer .mdc-designer__close:hover {
	background: #279d64;
	color: #fff;
}

.mdc-designer .mdc-designer__close svg {
	display: block;
	width: 16px;
	height: 16px;
	margin: 0;
	flex: 0 0 auto;
}

/* Body: two sliding panels (design, options) */

.mdc-designer__body {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.mdc-designer .mdc-designer__panel {
	position: absolute;
	inset: 0;
	transition: transform 0.3s ease;
}

.mdc-designer .mdc-designer__panel--design {
	display: flex;
	transform: translateX(0);
}

.mdc-designer .mdc-designer__panel--options {
	transform: translateX(100%);
	overflow-y: auto;
	padding: 24px 20px;
	background: #fff;
}

.mdc-designer.is-options .mdc-designer__panel--design {
	transform: translateX(-100%);
}

.mdc-designer.is-options .mdc-designer__panel--options {
	transform: translateX(0);
}

.mdc-designer__sidebar {
	width: 240px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 20px;
	border-right: 1px solid #e5e5e5;
	overflow-y: auto;
}

.mdc-designer__section-label {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #777;
}

/* Selected colour name after the COLOUR heading, reads as a value. */
.mdc-designer__colour-name {
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: #999;
}

.mdc-designer .mdc-designer__swatches {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	width: 100%;
}

.mdc-designer .mdc-designer__swatch {
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	margin: 0;
	box-sizing: border-box !important;
	appearance: none;
	-webkit-appearance: none;
	border: 2px solid #d0d0d0 !important;
	border-radius: 12px;
	cursor: pointer;
}

.mdc-designer .mdc-designer__swatch.is-active {
	border-color: #2ebb77 !important;
}

.mdc-designer .mdc-designer__tabs {
	display: flex;
	width: 100%;
	gap: 8px;
}

.mdc-designer .mdc-designer__tab {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box !important;
	white-space: nowrap;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 10px 12px !important;
	margin: 0 !important;
	background: #e9e9e9;
	color: #444;
	border: 1px solid #d0d0d0;
	border-radius: 12px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1 !important;
	cursor: pointer;
}

.mdc-designer .mdc-designer__tab.is-active {
	background: #2ebb77;
	border-color: #2ebb77;
	color: #fff;
}

/* Options step */

.mdc-designer .mdc-designer__options {
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.mdc-designer .mdc-designer__size-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.mdc-designer .mdc-designer__size-name {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mdc-designer .mdc-designer__size-surcharge {
	margin-left: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #2ebb77;
}

.mdc-designer .mdc-designer__stepper {
	display: flex;
	align-items: center;
}

.mdc-designer .mdc-designer__stepper button {
	width: 36px;
	height: 36px;
	min-width: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	background: #e9e9e9;
	color: #222;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.mdc-designer .mdc-designer__stepper button:first-child {
	border-radius: 12px 0 0 12px;
}

.mdc-designer .mdc-designer__stepper button:last-child {
	border-radius: 0 12px 12px 0;
}

.mdc-designer .mdc-designer__stepper button:hover {
	background: #dcdcdc;
}

.mdc-designer .mdc-designer__stepper input {
	width: 48px;
	height: 36px;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-left: none;
	border-right: none;
	border-radius: 0;
	background: #fff;
	color: #222;
	text-align: center;
	font-size: 14px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.mdc-designer .mdc-designer__stepper input::-webkit-outer-spin-button,
.mdc-designer .mdc-designer__stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.mdc-designer .mdc-designer__neck-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mdc-designer .mdc-designer__neck-head .mdc-designer__section-label {
	margin-bottom: 0;
	flex: 1;
}

.mdc-designer .mdc-designer__neck-price {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2ebb77;
	white-space: nowrap;
}

.mdc-designer .mdc-designer__toggle {
	position: relative;
	width: 52px;
	height: 30px;
	flex: 0 0 auto;
	padding: 0;
	margin: 0;
	background: #ccc;
	border: none;
	border-radius: 15px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mdc-designer .mdc-designer__toggle[aria-checked="true"] {
	background: #2ebb77;
}

.mdc-designer .mdc-designer__toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: left 0.15s ease;
}

.mdc-designer .mdc-designer__toggle[aria-checked="true"] .mdc-designer__toggle-knob {
	left: 25px;
}

.mdc-designer .mdc-designer__neck-body {
	margin-top: 14px;
}

.mdc-designer .mdc-designer__neck-slots {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mdc-designer .mdc-designer__neck-slot {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mdc-designer .mdc-designer__neck-slot-size {
	min-width: 40px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mdc-designer .mdc-designer__neck-slot-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	background: #2ebb77;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}

.mdc-designer .mdc-designer__neck-slot-btn:hover {
	background: #279d64;
}

.mdc-designer .mdc-designer__neck-slot-file {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mdc-designer .mdc-designer__neck-slot-file.is-missing {
	color: #b00020;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mdc-designer .mdc-designer__neck-empty {
	font-size: 12px;
	color: #999;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mdc-designer .mdc-designer__notes {
	width: 100%;
	min-height: 96px;
	box-sizing: border-box;
	padding: 12px;
	background: #fff;
	color: #222;
	border: 1px solid #ddd;
	border-radius: 12px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
}

.mdc-designer .mdc-designer__notes::placeholder {
	color: #999;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Stage */

.mdc-designer__stage {
	flex: 1;
	min-width: 0;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #fafafa;
	overflow: hidden;
}

/* JS sizes the wrap to contain-fit the mockup's real frame, so the zone
   and artwork percentages always map onto true image geometry. */
.mdc-designer .mdc-designer__mockup-wrap {
	position: relative;
	flex: 0 0 auto;
}

.mdc-designer .mdc-designer__mockup {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mdc-designer .mdc-designer__mockup-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #e4e4e4;
	border-radius: 4px;
	color: #666;
	font-size: 15px;
	text-align: center;
}

/* Print area overlay. Outline instead of border keeps the child
   percentage coordinates exact. Dark dashes over a light halo so the
   rectangle reads on any garment tone; a single mid-grey outline
   vanished into the heather fabrics. */

.mdc-designer .mdc-designer__print-area {
	position: absolute;
	outline: 1px dashed rgba(0, 0, 0, 0.75);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
	transition: outline-color 0.15s ease, box-shadow 0.15s ease;
}

/* Focus mode: a click on the canvas background hides the zone visuals
   so the design reads clean. Only the outline, halo, and chip fade;
   the artwork is a child of this element and must stay visible. */
.mdc-designer .mdc-designer__print-area.is-zone-hidden {
	outline-color: transparent;
	box-shadow: 0 0 0 1px transparent;
}

.mdc-designer .mdc-designer__print-area.is-zone-hidden .mdc-designer__print-area-label {
	opacity: 0;
}

/* Label sits just below the zone's bottom-left corner, outside the
   printable area. JS adds is-label-inside when the zone is too close
   to the canvas bottom for the label to fit. */
.mdc-designer .mdc-designer__print-area-label {
	position: absolute;
	top: calc(100% + 4px);
	left: -1px;
	padding: 2px 6px;
	background: rgba(255, 255, 255, 0.65);
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #555;
	white-space: nowrap;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.mdc-designer .mdc-designer__print-area.is-label-inside .mdc-designer__print-area-label {
	bottom: auto;
	top: 4px;
	left: 4px;
}

/* Artwork */

.mdc-designer .mdc-designer__artwork {
	position: absolute;
	touch-action: none;
	cursor: move;
	user-select: none;
	-webkit-user-select: none;
}

.mdc-designer .mdc-designer__artwork.is-selected {
	outline: 1px solid #2ebb77;
}

.mdc-designer .mdc-designer__artwork-img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	-webkit-user-drag: none;
}

.mdc-designer .mdc-designer__artwork-toolbar {
	position: absolute;
	top: -44px;
	left: 50%;
	transform: translateX(-50%);
	display: none;
	gap: 6px;
}

.mdc-designer .mdc-designer__artwork.is-selected .mdc-designer__artwork-toolbar {
	display: flex;
}

.mdc-designer .mdc-designer__artwork-toolbar button {
	min-height: 32px;
	min-width: 44px;
	padding: 0 12px;
	margin: 0;
	background: #222;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	touch-action: none;
}

.mdc-designer .mdc-designer__artwork-toolbar button:hover {
	background: #000;
}

/* Live dimension readout on the selected artwork */

.mdc-designer .mdc-designer__dims {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 6px;
	display: none;
	padding: 2px 8px;
	background: rgba(34, 34, 34, 0.85);
	color: #fff;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	white-space: nowrap;
	pointer-events: none;
}

.mdc-designer .mdc-designer__artwork.is-selected .mdc-designer__dims {
	display: block;
}

.mdc-designer .mdc-designer__dims.is-above {
	top: auto;
	bottom: 100%;
	margin: 0 0 6px;
}

.mdc-designer .mdc-designer__dims.is-inside {
	top: auto;
	bottom: 6px;
	margin: 0;
}

.mdc-designer .mdc-designer__dims span {
	display: block;
	text-align: center;
}

.mdc-designer .mdc-designer__dims-dpi.is-great {
	color: #7ee2ae;
}

.mdc-designer .mdc-designer__dims-dpi.is-ok {
	color: #ffd666;
}

.mdc-designer .mdc-designer__dims-dpi.is-low {
	color: #ff8a80;
}

/* Low resolution warning under the upload button */

.mdc-designer .mdc-designer__dpi-warning {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 8px;
	padding: 8px 10px;
	background: #fff3e6;
	border: 1px solid #f0c48a;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.5;
	color: #8a5a00;
}

.mdc-designer .mdc-designer__dpi-warning-body {
	flex: 1;
	min-width: 0;
}

.mdc-designer .mdc-designer__dpi-warning-max {
	display: block;
	margin-top: 4px;
}

.mdc-designer .mdc-designer__dpi-warning.is-low {
	background: #fdecea;
	border-color: #f0a49b;
	color: #b00020;
}

.mdc-designer .mdc-designer__dpi-warning.is-low .mdc-designer__dpi-warning-close {
	color: #b00020;
}

.mdc-designer .mdc-designer__dpi-warning-close {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	font-size: 16px;
	line-height: 1;
	color: #8a5a00;
	cursor: pointer;
}

.mdc-designer .mdc-designer__neck-slot-file.is-low-dpi {
	color: #b00020;
	font-weight: 600;
}

/* Resize handles: 32px touch target, 14px visible dot */

.mdc-designer .mdc-designer__handle {
	position: absolute;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	display: none;
	background: transparent;
	border: none;
	touch-action: none;
}

.mdc-designer .mdc-designer__artwork.is-selected .mdc-designer__handle {
	display: block;
}

.mdc-designer .mdc-designer__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	box-sizing: border-box;
	background: #fff;
	border: 2px solid #2ebb77;
	border-radius: 50%;
}

.mdc-designer .mdc-designer__handle[data-handle="nw"] { top: -16px; left: -16px; cursor: nwse-resize; }
.mdc-designer .mdc-designer__handle[data-handle="ne"] { top: -16px; right: -16px; cursor: nesw-resize; }
.mdc-designer .mdc-designer__handle[data-handle="sw"] { bottom: -16px; left: -16px; cursor: nesw-resize; }
.mdc-designer .mdc-designer__handle[data-handle="se"] { bottom: -16px; right: -16px; cursor: nwse-resize; }

/* Admin calibration mode */

.mdc-designer.is-calibrating .mdc-designer__print-area {
	outline: 2px solid #2ebb77;
	cursor: move;
	touch-action: none;
}

.mdc-designer.is-calibrating .mdc-designer__artwork {
	pointer-events: none;
	opacity: 0.4;
}

.mdc-designer .mdc-designer__zone-handle {
	position: absolute;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	display: none;
	background: transparent;
	border: none;
	touch-action: none;
	cursor: nwse-resize;
}

.mdc-designer.is-calibrating .mdc-designer__zone-handle {
	display: block;
}

.mdc-designer .mdc-designer__zone-handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	box-sizing: border-box;
	background: #2ebb77;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.mdc-designer .mdc-designer__zone-handle[data-handle="nw"] { top: -16px; left: -16px; cursor: nwse-resize; }
.mdc-designer .mdc-designer__zone-handle[data-handle="ne"] { top: -16px; right: -16px; cursor: nesw-resize; }
.mdc-designer .mdc-designer__zone-handle[data-handle="sw"] { bottom: -16px; left: -16px; cursor: nesw-resize; }
.mdc-designer .mdc-designer__zone-handle[data-handle="se"] { bottom: -16px; right: -16px; cursor: nwse-resize; }

.mdc-designer .mdc-designer__calib {
	position: absolute;
	top: 76px;
	right: 20px;
	z-index: 10;
	width: 250px;
	padding: 14px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	font-size: 12px;
	line-height: 1.5;
	color: #333;
}

.mdc-designer .mdc-designer__calib-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2ebb77;
	margin-bottom: 8px;
}

.mdc-designer .mdc-designer__calib-info {
	font-weight: 600;
	margin-bottom: 4px;
	word-break: break-all;
}

.mdc-designer .mdc-designer__calib-file {
	color: #777;
	margin-bottom: 8px;
	word-break: break-all;
}

.mdc-designer .mdc-designer__calib-values {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 12px;
	background: #f5f5f5;
	border-radius: 4px;
	padding: 6px 8px;
	margin-bottom: 10px;
	white-space: nowrap;
}

.mdc-designer .mdc-designer__calib-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 0 12px;
	background: #2ebb77;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.mdc-designer .mdc-designer__calib-copy:hover {
	background: #279d64;
}

@media (max-width: 767px) {
	.mdc-designer .mdc-designer__calib {
		top: auto;
		bottom: 84px;
		right: 12px;
		width: 220px;
	}
}

/* Upload */

.mdc-designer .mdc-designer__upload {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0 16px;
	background: #2ebb77;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mdc-designer .mdc-designer__upload:hover {
	background: #279d64;
}

/* The short UPLOAD label only exists for narrow phones, where the full
   label wraps inside its 50% share of the mobile toolbar row. */
.mdc-designer .mdc-designer__upload-short {
	display: none;
}

@media (max-width: 480px) {
	.mdc-designer .mdc-designer__upload-full {
		display: none;
	}

	.mdc-designer .mdc-designer__upload-short {
		display: inline;
	}
}

.mdc-designer .mdc-designer__upload-note {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.4;
	color: #666;
}

.mdc-designer .mdc-designer__upload-note.is-error {
	color: #b00020;
}

/* Footer */

.mdc-designer__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-top: 1px solid #e5e5e5;
}

.mdc-designer__price {
	font-size: 16px;
	font-weight: 600;
}

.mdc-designer .mdc-designer__footer-left,
.mdc-designer .mdc-designer__footer-right {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.mdc-designer .mdc-designer__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	margin: 0;
	background: #e9e9e9;
	border: none;
	border-radius: 12px;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.mdc-designer .mdc-designer__back:hover {
	background: #dcdcdc;
	color: #111;
}

.mdc-designer .mdc-designer__price-note {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2ebb77;
	white-space: nowrap;
	/* Restarts every time the note is unhidden, so the surcharge
	   indicator fades in on the transition and then persists. */
	animation: mdc-note-in 0.25s ease;
}

@keyframes mdc-note-in {
	from {
		opacity: 0;
		transform: translateY(2px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.mdc-designer .mdc-designer__validation {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #b00020;
	text-align: right;
}

.mdc-designer .mdc-designer__edit-note {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a5a00;
	text-align: right;
}

.mdc-designer .mdc-designer__next,
.mdc-designer .mdc-designer__add {
	background: #2ebb77;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 12px 32px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.mdc-designer .mdc-designer__next:hover,
.mdc-designer .mdc-designer__add:hover:not(:disabled) {
	background: #279d64;
}

.mdc-designer .mdc-designer__add:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Mobile: sidebar becomes a top bar */

@media (max-width: 767px) {
	.mdc-designer .mdc-designer__panel--design {
		flex-direction: column;
	}

	.mdc-designer .mdc-designer__stepper button {
		width: 40px;
		height: 40px;
		min-width: 40px;
	}

	.mdc-designer .mdc-designer__stepper input {
		height: 40px;
	}

	.mdc-designer__footer {
		flex-wrap: wrap;
		gap: 10px;
	}

	/* Stacked toolbar, nothing scrolls horizontally: colour name, then
	   wrapping swatch rows, then FRONT / BACK / UPLOAD sharing one row,
	   then upload note and DPI warning as full-width rows. */
	.mdc-designer__sidebar {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
		gap: 10px 8px;
		padding: 12px 16px;
		border-right: none;
		border-bottom: 1px solid #e5e5e5;
		overflow: visible;
	}

	/* Sections dissolve so their children lay out as rows of the one
	   wrapping toolbar. */
	.mdc-designer__sidebar .mdc-designer__section {
		display: contents;
	}

	.mdc-designer__sidebar .mdc-designer__section-label {
		display: none;
	}

	/* The colour section's label stays: it carries the selected name. */
	.mdc-designer__sidebar .mdc-designer__section:first-child .mdc-designer__section-label {
		display: block;
		flex: 0 0 100%;
		margin-bottom: 0;
	}

	.mdc-designer .mdc-designer__swatches {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
		flex: 0 0 100%;
	}

	.mdc-designer .mdc-designer__swatch {
		width: 40px;
		height: 40px;
		aspect-ratio: auto;
		flex: 0 0 auto;
	}

	/* FRONT 25%, BACK 25%, UPLOAD 50%: tabs pair and upload split the
	   row evenly, the two tabs split their half again. */
	.mdc-designer .mdc-designer__tabs {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		flex-wrap: nowrap;
	}

	.mdc-designer .mdc-designer__tab {
		min-height: 44px;
	}

	.mdc-designer .mdc-designer__upload {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		min-height: 44px;
		white-space: nowrap;
	}

	.mdc-designer .mdc-designer__upload-note,
	.mdc-designer .mdc-designer__dpi-warning {
		flex: 0 0 100%;
		margin-top: 0;
	}
}

/* --- Shop archive colour dots --- */

.mdc-colour-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 8px 0 4px;
}

.mdc-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	flex: 0 0 auto;
}

/* --- Catalogue shortcode grid --- */

/* !important throughout: the grid must hold inside Elementor containers,
   whose widget and global rules otherwise outrank these selectors. */
.mdc-catalogue {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 24px;
	width: 100%;
}

.mdc-catalogue__tile {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: auto !important;
	max-width: 100% !important;
	padding: 16px 16px 20px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mdc-catalogue__tile:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.mdc-catalogue__image {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	margin-bottom: 12px;
}

.mdc-catalogue__title {
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 4px;
}

.mdc-catalogue__price {
	font-size: 0.9em;
	opacity: 0.7;
}

@media (max-width: 768px) {
	.mdc-catalogue {
		/* Must carry !important too, or the 4-column base rule above wins. */
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 16px;
	}

	.mdc-catalogue__tile {
		padding: 12px 12px 16px;
	}
}

.mdc-catalogue__image--placeholder {
	display: block;
	background: #f4f4f4;
	border-radius: 8px;
}
