/**
 * Rent Tax Credit Calculator – calculator-specific styles
 * Ireland Calculators plugin
 *
 * Base layout, typography, inputs, buttons, result cards, and breakdowns
 * are inherited from ic-base.css via the mature shared selector group.
 * Only truly unique Rent Tax Credit rules live here.
 */

/* ------------------------------------------------------------------
 * Conditional field groups — hidden by JS when not applicable
 * ------------------------------------------------------------------ */

.ic-renttaxcreditcalc .ic-rtc-conditional {
	transition: opacity 0.15s;
}

/* ------------------------------------------------------------------
 * Inline checkbox label (child-course confirmation)
 * ------------------------------------------------------------------ */

.ic-renttaxcreditcalc .ic-rtc-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--ic-text);
	cursor: pointer;
}

.ic-renttaxcreditcalc .ic-rtc-checkbox-label input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
	accent-color: var(--ic-primary);
}




/* ------------------------------------------------------------------
 * Desktop paired-field polish
 * ------------------------------------------------------------------ */

@media (min-width: 900px) {
	.ic-renttaxcreditcalc .ic-field-row {
		align-items: start;
	}

	.ic-renttaxcreditcalc .ic-field-row > .ic-field {
		min-width: 0;
		margin-bottom: 0;
	}

	.ic-renttaxcreditcalc .ic-field-row > .ic-field > label {
		display: block;
	}

	.ic-renttaxcreditcalc .ic-field-row > .ic-field.ic-rtc-full-width {
		grid-column: 1 / -1;
		max-width: 100%;
	}

	.ic-renttaxcreditcalc .ic-field-row > .ic-field .ic-field-hint {
		display: block;
	}
}


/* ------------------------------------------------------------------
 * Result explanation card typography
 * ------------------------------------------------------------------ */

.ic-renttaxcreditcalc .ic-formula-card {
	font-size: 14px;
	line-height: 1.6;
}

.ic-renttaxcreditcalc .ic-formula-card p {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.ic-renttaxcreditcalc .ic-formula-card p:last-child {
	margin-bottom: 0;
}
