/**
 * Module-specific styles for Welding Time Calculator.
 */
.csw-welding-time-calculator [hidden],
.csw-welding-time-calculator .is-hidden {
	display: none !important;
}

/* Header & Segmented Mode Switcher */
.csw-mode-switcher {
	display: inline-flex;
	background: #f1f5f9;
	padding: 3px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
}

.csw-mode-btn {
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	background: transparent;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.csw-mode-btn:hover {
	color: #0f172a;
}

.csw-mode-btn.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Radio button options styling */
.csw-radio-group {
	display: flex;
	gap: 16px;
	margin-top: 6px;
	flex-wrap: wrap;
}

.csw-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px !important;
	line-height: 1.3 !important;
	font-weight: 500 !important;
	color: #334155 !important;
	cursor: pointer;
	margin: 0 !important;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background 0.15s ease;
}

.csw-radio-label:hover {
	background: #f1f5f9;
}

.csw-radio-label input[type="radio"] {
	margin: 0;
	width: 16px;
	height: 16px;
	accent-color: #109a8c;
}

/* Section Box for Pro Settings */
.csw-pro-section {
	grid-column: 1 / -1;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px;
	margin-top: 4px;
}

.csw-pro-section__title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin: 0 0 10px 0;
}

/* Preset Speed Link */
.csw-preset-btn {
	font-size: 12px;
	color: #109a8c;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	font-weight: 500;
}

.csw-preset-btn:hover {
	color: #087e73;
}

/* Badges */
.csw-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.csw-badge--green {
	background: #dcfce7;
	color: #15803d;
}

.csw-badge--yellow {
	background: #fef9c3;
	color: #a16207;
}

.csw-badge--red {
	background: #fee2e2;
	color: #b91c1c;
}

/* Flexible select dropdowns in input groups */
.csw-welding-time-calculator .csw-input-group select[data-csw-prep-allocation],
.csw-welding-time-calculator .csw-input-group select[data-csw-aux-scope] {
	flex: 1 1 150px !important;
	min-width: 140px;
}

/* Professional Print & PDF Report Isolation */
@media print {
	body * {
		visibility: hidden !important;
	}

	.csw-welding-time-calculator,
	.csw-welding-time-calculator * {
		visibility: visible !important;
	}

	.csw-welding-time-calculator {
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 15px !important;
		box-shadow: none !important;
		border: 1px solid #cbd5e1 !important;
		background: #ffffff !important;
	}

	.csw-mode-switcher,
	.csw-button,
	.csw-btn-print,
	.csw-preset-btn,
	.csw-field__hint {
		display: none !important;
	}
}
