/**
 * KTSA New Design Fee — Frontend Styles
 *
 * Matches the Divi/WooCommerce variation row styling on ktsaonline.co.za.
 * Label: 18px Open Sans, #1D1D1D, font-weight 700 (from DevTools inspection).
 * Swatches: match woo-variation-swatches button style.
 *
 * @package KTSA_New_Design_Fee
 */

/* Wrapper — matches variation table row spacing, no background */
.ktsa-ndf-wrapper {
	margin: 0;
	padding: 20px 0 15px;
	border-top: 1px solid #e1e1e1;
	background: none;
	border-radius: 0;
}

/* Label — matches .variations label: 18px Open Sans, 700, #1D1D1D */
.ktsa-ndf-label-row {
	margin-bottom: 12px;
}

.ktsa-ndf-label {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #1D1D1D;
	text-align: left;
	display: inline-block;
	margin: 0 2px;
	line-height: 1.4;
}

/* Swatch group — right-aligned like variation swatches */
.ktsa-ndf-swatch-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 0;
	justify-content: flex-end;
}

/* Individual swatch — matches woo-variation-swatches button appearance */
.ktsa-ndf-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 14px;
	border: 1px solid #d5d8dc;
	border-radius: 0;
	background-color: #fff;
	cursor: pointer;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #555;
	line-height: 30px;
	text-align: center;
	transition: all 0.2s ease;
	position: relative;
	user-select: none;
	box-sizing: border-box;
}

/* Hide the actual radio input */
.ktsa-ndf-swatch .ktsa-ndf-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.ktsa-ndf-swatch:hover {
	border-color: #333;
	color: #333;
}

/* Active/selected swatch */
.ktsa-ndf-swatch.ktsa-ndf-swatch--active {
	border-color: #333;
	color: #333;
	font-weight: 600;
	outline: 1px solid #333;
	outline-offset: -1px;
}

/* Info text — slightly larger, readable */
.ktsa-ndf-info {
	margin: 12px 0 0;
	padding: 0;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #666;
	line-height: 1.5;
	display: none;
	text-align: right;
}

/* Show info text when "No" is selected (new design — fee applies) */
.ktsa-ndf-wrapper.ktsa-ndf-no-selected .ktsa-ndf-info {
	display: block;
}
