.wjc-customize-wrap {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 16px 18px;
	margin: 18px 0;
	background: #fafafa;
}

.wjc-customize-wrap .wjc-title {
	margin: 0 0 12px;
	font-size: 1.05em;
	font-weight: 700;
}

.wjc-field {
	margin-bottom: 16px;
}

.wjc-field .wjc-toggle-checkbox {
	margin: 0 8px 0 0;
	vertical-align: middle;
	width: 16px;
	height: 16px;
}

.wjc-field .wjc-checkbox-label {
	display: inline;
	cursor: pointer;
	font-weight: 700;
	vertical-align: middle;
}

/* Hidden by default. Two layers of enforcement so this survives
   theme/caching quirks: a CSS rule here, and matching JS in
   wjc-frontend.js that sets the same state directly by element ID. */
.wjc-field-input {
	display: none !important;
	margin-top: 6px;
	margin-left: 24px;
}

.wjc-field-input.wjc-visible {
	display: block !important;
}

.wjc-field-input input[type="text"] {
	width: 100%;
	max-width: 260px;
}

.wjc-subfield {
	margin-bottom: 8px;
}

.wjc-subfield .wjc-sublabel {
	display: block;
	font-weight: 600;
	font-size: 0.88em;
	margin-bottom: 3px;
	color: #444;
}

/* ---------- Badges ---------- */

.wjc-badges-title {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.95em;
	margin: 0 0 10px;
	letter-spacing: 0.02em;
}

.wjc-badges-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.wjc-badge-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 120px;
	text-align: center;
	cursor: pointer;
}

/* Visually hidden but still keyboard/screen-reader accessible. */
.wjc-badge-option input.wjc-badge-checkbox {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wjc-badge-swatch {
	width: 96px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wjc-badge-swatch img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Selection highlight — pure CSS, works even if JS never loads. */
.wjc-badge-checkbox:checked ~ .wjc-badge-swatch {
	border-color: #c9a227;
	box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35);
}

.wjc-badge-checkbox:focus-visible ~ .wjc-badge-swatch {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.wjc-badge-name {
	margin-top: 8px;
	font-weight: 700;
	font-size: 0.82em;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #333;
}

.wjc-badge-price {
	font-size: 0.85em;
	color: #767676;
}

/* ---------- Notes ---------- */

.wjc-field-note label.wjc-note-label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.wjc-field-note textarea {
	width: 100%;
	max-width: 100%;
	height: 60px !important;
	min-height: 60px !important;
	resize: vertical;
}

.wjc-required {
	color: #d63638;
}

/* ---------- Price breakdown ---------- */

.wjc-price-breakdown {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #ccc;
}

.wjc-price-breakdown .wjc-row {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
	font-size: 0.95em;
}

.wjc-price-breakdown .wjc-row.wjc-total {
	font-weight: 700;
	border-top: 1px solid #ddd;
	margin-top: 4px;
	padding-top: 6px;
	font-size: 1.05em;
}
