/* ==========================================================================
   PimpMyDeck Custom Wizard – Stylesheet
   Tab/panel/button/input/message styles are inherited from wizard.css
   (loaded as a dependency).
   ========================================================================== */

/* Override max-width for this narrower form */
.pmd-custom-wizard {
	max-width: 700px;
}

/* --------------------------------------------------------------------------
   Colour picker field
   -------------------------------------------------------------------------- */

.pmd-cw-field {
	margin-bottom: 20px;
}

.pmd-cw-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

/* Swatch grid */
.pmd-cw-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Individual swatch – circular by default */
.pmd-cw-swatch {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: 0 0 0 2px rgba( 0, 0, 0, 0.25 );
	transition: box-shadow 0.15s, transform 0.1s;
}

/* Light-coloured swatches need a more visible ring */
.pmd-cw-swatch--light {
	box-shadow: 0 0 0 2px #aaa;
}

.pmd-cw-swatch:hover {
	transform: scale( 1.15 );
	box-shadow: 0 0 0 2px rgba( 0, 0, 0, 0.5 );
}

.pmd-cw-swatch--light:hover {
	box-shadow: 0 0 0 2px #666;
}

/* Selected state */
.pmd-cw-swatch.is-selected {
	box-shadow: 0 0 0 3px #2271b1;
	outline: 2px solid #fff;
	outline-offset: -4px;
	transform: scale( 1.08 );
}

/* Two-tone / pitch-trim swatch – rectangular pill */
.pmd-cw-swatch--dual {
	width: 54px;
	border-radius: 5px;
}

/* Name of the currently selected colour */
.pmd-cw-selected-label {
	margin-top: 7px;
	font-size: 13px;
	color: #777;
	font-style: italic;
	min-height: 1.4em;
}

/* --------------------------------------------------------------------------
   Checkbox field
   -------------------------------------------------------------------------- */

.pmd-cw-field--checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.pmd-cw-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	user-select: none;
}

.pmd-cw-checkbox {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: #2271b1;
	cursor: pointer;
}

/* Link alongside checkbox */
.pmd-cw-link {
	margin-left: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #2271b1;
	text-decoration: underline;
	white-space: nowrap;
}

.pmd-cw-link:hover {
	color: #135e96;
}

/* Disabled state – Headshell greyed out when Cartridge is selected */
.pmd-cw-field--disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media ( max-width: 480px ) {
	.pmd-cw-swatch {
		width: 32px;
		height: 32px;
	}

	.pmd-cw-swatch--dual {
		width: 46px;
	}
}
