/**
 * Seadream Loan Calculator - front-end styles.
 *
 * @package Seadream_Loan_Calculator
 * @since 1.0.0
 */

.sdlc {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em 2em;
	max-width: 48em;
	margin: 0 auto;
	padding: 1.5em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 0.5em;
	background: #fff;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

.sdlc *,
.sdlc *::before,
.sdlc *::after {
	box-sizing: inherit;
}

.sdlc-fields {
	flex: 1 1 16em;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.sdlc-field {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	margin: 0;
}

.sdlc-label {
	font-size: 0.875em;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.sdlc-input {
	display: flex;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 0.375em;
	background: #fff;
	overflow: hidden;
}

.sdlc-input:focus-within {
	border-color: currentColor;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.sdlc-input input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0.6em 0.75em;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.05em;
	outline: none;
	box-shadow: none;
	-moz-appearance: textfield;
}

.sdlc-input input::-webkit-outer-spin-button,
.sdlc-input input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sdlc-affix {
	flex: 0 0 auto;
	padding: 0 0.75em;
	opacity: 0.6;
}

.sdlc-input-prefix .sdlc-affix {
	padding-right: 0;
}

.sdlc-input-suffix .sdlc-affix {
	padding-left: 0;
}

.sdlc-results {
	flex: 1 1 16em;
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	padding: 1.25em;
	border-radius: 0.375em;
	background: rgba(0, 0, 0, 0.04);
}

.sdlc-title {
	margin: 0 0 0.5em;
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.2;
}

.sdlc-result {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1em;
}

.sdlc-result-label {
	opacity: 0.75;
}

.sdlc-result-value {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sdlc-result-primary .sdlc-result-label {
	opacity: 1;
	font-weight: 600;
}

.sdlc-result-primary .sdlc-result-value {
	font-size: 1.6em;
	font-weight: 700;
}

.sdlc-note {
	margin: 0.75em 0 0;
	font-size: 0.8em;
	opacity: 0.65;
}

@media (max-width: 480px) {
	.sdlc {
		padding: 1.15em;
	}
}
