/* Custom Print Jersey configurator (progressive enhancement over Neto's native
   extra_options table in buying_options.template.html). Raw option rows are
   only hidden once JS confirms it has built a working replacement — see
   js/jersey-configurator.js. If JS fails to load, the raw Neto table remains
   visible and fully usable. */

.jersey-field-row.jersey-hidden {
	display: none !important;
}

.jersey-cfg {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 16px;
}

.jersey-cfg__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: calc(1em + 3pt);
	margin-bottom: 0;
}

.jersey-cfg__toggle input {
	width: 18px;
	height: 18px;
}

.jersey-cfg__body {
	margin-top: 14px;
}

.jersey-cfg__body.jersey-hidden {
	display: none;
}

.jersey-cfg__stage {
	margin-bottom: 18px;
	padding-top: 14px;
	border-top: 1px solid #eee;
}

.jersey-cfg__stage.jersey-hidden {
	display: none;
}

.jersey-cfg__stage-title {
	font-weight: 600;
	margin-bottom: 10px;
}

.jersey-cfg__error {
	color: #c0392b;
	font-size: 0.85em;
	margin-top: 4px;
	display: none;
}

.jersey-cfg__error.is-visible {
	display: block;
}

/* Stage 1: print type cards */
.jersey-cfg__option-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jersey-cfg__option-card {
	border: 2px solid #ccc;
	border-radius: 6px;
	padding: 10px 14px;
	cursor: pointer;
	background: #fff;
	font-size: 0.95em;
	font-weight: bold;
	text-align: center;
	flex: 1 1 160px;
}

.jersey-cfg__option-card:hover {
	border-color: #999;
}

.jersey-cfg__option-card.is-selected {
	border-color: #2c7a2c;
	background: #eef8ee;
}

.jersey-cfg__option-card-img {
	display: block;
	width: 100%;
	max-width: 140px;
	margin: 0 auto 8px;
	border-radius: 4px;
}

.jersey-cfg__option-card-label {
	display: block;
}

.jersey-cfg__option-card-price {
	display: block;
}

.jersey-cfg__logo-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: calc(0.95em + 2pt);
}

.jersey-cfg__logo-toggle input {
	width: 16px;
	height: 16px;
}

/* Stage 2: font style swatches */
.jersey-cfg__font-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jersey-cfg__font-swatch {
	border: 2px solid #ccc;
	border-radius: 6px;
	padding: 10px 14px;
	cursor: pointer;
	background: #fff;
	font-size: 1.1em;
	text-align: center;
}

.jersey-cfg__font-swatch-img {
	display: block;
	width: 100%;
	max-width: 90px;
	margin: 0 auto 6px;
	border-radius: 4px;
}

.jersey-cfg__font-swatch:hover {
	border-color: #999;
}

.jersey-cfg__font-swatch.is-selected {
	border-color: #2c7a2c;
	background: #eef8ee;
}

/* Stage 3: text/number + colour fields */
.jersey-cfg__field-group {
	margin-bottom: 16px;
	padding: 12px;
	background: #fafafa;
	border-radius: 6px;
}

.jersey-cfg__field-group.jersey-hidden {
	display: none;
}

.jersey-cfg__field-label {
	font-weight: 600;
	margin-bottom: 6px;
	display: block;
}

.jersey-cfg__text-input {
	max-width: 220px;
}

.jersey-cfg__number-input {
	max-width: 90px;
	text-align: center;
	letter-spacing: 2px;
}

.jersey-cfg__colour-pickers {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 10px;
}

.jersey-cfg__colour-picker {
	min-width: 200px;
}

.jersey-cfg__colour-picker-label {
	font-size: 0.85em;
	color: #555;
	margin-bottom: 4px;
	display: block;
}

.jersey-cfg__swatch-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.jersey-cfg__swatch {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #ccc;
	cursor: pointer;
	padding: 0;
}

.jersey-cfg__swatch.is-selected {
	border-color: #222;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #222;
}

.jersey-cfg__colour-picker input[type="color"] {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 2px solid #ccc;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
}

.jersey-cfg__colour-hex {
	font-size: 0.8em;
	color: #666;
	margin-left: 4px;
	font-family: monospace;
}

.jersey-cfg__colour-disclaimer {
	font-size: 0.78em;
	color: #777;
	line-height: 1.4;
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px dashed #ddd;
}

.jersey-cfg__copy-select {
	margin-top: 6px;
	font-size: 0.8em;
	max-width: 200px;
	padding: 2px 6px;
	height: auto;
}
