/* Fence Cost Calculator. */

.ar-cc__helpers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	align-items: center;
	margin: 0 0 0.5rem;
}

.ar-cc__helpers a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ar-text);
	font-weight: 600;
}

.ar-cc__sides {
	margin-top: 0.5rem;
}

.ar-cc__side {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 44px;
	gap: 0.75rem;
	align-items: end;
}

.ar-cc__side .ar-field {
	margin-bottom: 0.75rem;
}

.ar-cc__side-remove {
	margin-bottom: 0.75rem;
	align-self: end;
}

.ar-cc__slope {
	margin-top: 1.25rem;
}

.ar-cc__slope .ar-options {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 420px) {
	.ar-cc__slope .ar-options {
		grid-template-columns: 1fr;
	}
}

.ar-cc__note {
	margin: 0 0 0.5rem;
	color: var(--ar-muted);
	font-size: 0.9rem;
}

.ar-cc__monthly {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.ar-cc__actions {
	margin-top: 1rem;
}

.ar-cc__actions .ar-btn--secondary {
	flex: 1 1 100%;
}

@media (min-width: 560px) {
	.ar-cc__actions .ar-btn--secondary {
		flex: 1 1 calc(50% - 0.75rem);
	}
}

.ar-cc__compare {
	margin-top: calc(var(--ar-gap) * 1.5);
}

.ar-cc__compare-title {
	margin: 0 0 0.25rem;
	font-family: var(--ar-font-heading);
	font-size: 1.35rem;
}

.ar-cc__compare td:last-child {
	text-align: right;
	white-space: nowrap;
}

.ar-cc__yours {
	color: var(--ar-muted);
	font-size: 0.875rem;
}

.ar-tool--cost-calculator .ar-result:focus {
	outline: none;
}

.ar-tool--cost-calculator .ar-result:focus-visible {
	outline: 2px solid var(--ar-focus);
	outline-offset: 3px;
}

.ar-cc__compare .ar-table small {
	display: block;
	color: var(--ar-muted);
	font-size: 0.85rem;
	font-weight: 400;
}
