/* ==========================================================================
   TBI Bank - Calculator rate auto (varianta simpla)
   ========================================================================== */

.tbi-rc,
.tbi-rc-badge {
	--tbi-bg: #1c2434;
	--tbi-accent: #f97316;
	--tbi-text: #ffffff;
	box-sizing: border-box;
	font-family: inherit;
}

.tbi-rc *,
.tbi-rc-badge * {
	box-sizing: border-box;
}

/* Diagnostic, vizibil doar administratorilor si editorilor */

.tbi-rc-error {
	border: 1px solid #d63638;
	background: #fcf0f1;
	color: #8a1f21;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.7;
}

/* --------------------------------------------------------------- Badge */

.tbi-rc-badge {
	display: flex;
	align-items: center;
	gap: 11px;
	border: 1px solid #bcbcbc;
	border-radius: 10px;
	padding: 10px 17px;
	background: #fff;
	color: #111;
	max-width: 100%;
}

.tbi-rc-badge__logo {
	height: 24px !important;
	width: auto;
	flex: 0 0 auto;
	background: #fff;
	padding: 4px 6px;
	border-radius: 7px;
	box-sizing: content-box;
}

.tbi-rc-badge__logo-txt {
	font-weight: 700;
	font-size: 11px;
	color: #111;
	flex: 0 0 auto;
}

.tbi-rc-badge__text {
	font-size: 14px;
	line-height: 1.25;
	color: #111;
}

.tbi-rc-badge__text strong {
	font-weight: 600;
}

.tbi-rc-badge__per {
	white-space: nowrap;
}


/* ---------------------------------------------------------- Calculator */

.tbi-rc {
	background: var(--tbi-bg);
	color: var(--tbi-text);
	border-radius: 18px;
	padding: 28px;
	max-width: 460px;
}

.tbi-rc__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.tbi-rc__title {
	font-size: 15px;
	font-weight: 600;
	opacity: 0.9;
	margin-bottom: 14px;
}

.tbi-rc__label {
	font-size: 14px;
	opacity: 0.6;
	margin-bottom: 4px;
}

.tbi-rc__rata {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.tbi-rc__logo {
	height: 30px;
	width: auto;
	flex: 0 0 auto;
	background: #fff;
	padding: 8px 12px;
	border-radius: 10px;
	box-sizing: content-box;
}

.tbi-rc__logo-txt {
	font-size: 14px;
	font-weight: 700;
	color: var(--tbi-accent);
	flex: 0 0 auto;
}

/* Ani */

.tbi-rc__years {
	display: flex;
	gap: 10px;
}

.tbi-rc__year {
	flex: 1 1 0;
	background: #fff;
	color: #1c2434;
	border: 0;
	border-radius: 12px;
	padding: 12px 4px;
	cursor: pointer;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	transition: background 0.15s ease, color 0.15s ease;
}

.tbi-rc__year:hover {
	background: #f1f1f1;
}

.tbi-rc__year.is-active {
	background: var(--tbi-accent);
	color: #fff;
}

.tbi-rc__year-num {
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.tbi-rc__year-lbl {
	font-size: 13px;
	font-weight: 500;
}

/* Note */

.tbi-rc__note {
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 1.5;
	background: rgba(249, 115, 22, 0.15);
	border-left: 3px solid var(--tbi-accent);
	padding: 10px 12px;
	border-radius: 6px;
}

.tbi-rc__disclaimer {
	font-size: 11px;
	line-height: 1.55;
	opacity: 0.55;
	margin: 16px 0 0;
}

.tbi-rc__exemplu {
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	opacity: 0.45;
}

/* Mobil */

@media (max-width: 600px) {
	.tbi-rc {
		padding: 22px 18px;
	}

	.tbi-rc__rata {
		font-size: 34px;
	}

	.tbi-rc__years {
		gap: 6px;
	}

	.tbi-rc__year-num {
		font-size: 20px;
	}

	.tbi-rc-badge {
		flex-wrap: wrap;
		gap: 8px;
		padding: 9px 12px;
	}

	.tbi-rc-badge__text {
		font-size: 13px;
	}
}
