/* ROI kalkulator. Vrednosti iz design/RoiKalkulator.dc.html. */

.tg-roi {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	border: 2px solid var(--tg-rule);
	background: var(--tg-bg);
	color: var(--tg-ink);
}

.tg-roi__controls {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: clamp(20px, 3vw, 36px);
	margin-right: -2px;
	margin-bottom: -2px;
	border-right: 2px solid var(--tg-rule);
	border-bottom: 2px solid var(--tg-rule);
}

.tg-roi__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.tg-roi__row label {
	font-size: 15px;
	font-weight: 700;
}

.tg-roi__val {
	font-size: 22px;
	font-weight: 800;
}

.tg-roi input[type="range"] {
	width: 100%;
	height: 28px;
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: var(--tg-orange);
}

.tg-roi__legend {
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 700;
}

.tg-roi__scen {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 2px solid var(--tg-rule);
}

.tg-roi .tg-roi__scen-btn {
	padding: 10px 8px;
	border: 0;
	border-right: 2px solid var(--tg-rule);
	background: transparent;
	color: var(--tg-ink);
	font: 700 14px var(--tg-font);
	text-align: left;
	cursor: pointer;
}

.tg-roi .tg-roi__scen-btn:last-child {
	border-right: 0;
}

.tg-roi .tg-roi__scen-btn[aria-checked="true"] {
	background: var(--tg-ink);
	color: var(--tg-bg);
}

.tg-roi__scen-btn span {
	display: block;
}

.tg-roi__scen-d {
	font-size: 12.5px;
	font-weight: 500;
	opacity: 0.8;
}

.tg-roi__result {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: clamp(20px, 3vw, 36px);
	background: var(--tg-ink);
	color: var(--tg-bg);
}

.tg-roi__kicker {
	color: var(--tg-orange);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tg-roi__big {
	font-size: clamp(44px, 6vw, 76px);
	font-weight: 900;
	font-stretch: 115%;
	letter-spacing: -0.04em;
	line-height: 0.95;
}

.tg-roi__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid rgba(243, 242, 242, 0.27);
}

.tg-roi__stats > div:first-child {
	padding: 12px 12px 0 0;
	border-right: 1px solid rgba(243, 242, 242, 0.27);
}

.tg-roi__stats > div:last-child {
	padding: 12px 0 0 12px;
}

.tg-roi__stat {
	font-size: 26px;
	font-weight: 800;
}

.tg-roi__statlabel {
	color: #cfcbca;
	font-size: 13px;
}

.tg-roi__bars {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(12, 1fr);
	gap: 5px;
	align-items: end;
	min-height: 150px;
	padding-top: 10px;
	border-bottom: 1px solid rgba(243, 242, 242, 0.4);
}

.tg-roi__bar {
	background: rgba(243, 242, 242, 0.67);
	transition: height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tg-roi__bar.is-last {
	background: var(--tg-orange);
}

.tg-roi__months {
	display: flex;
	justify-content: space-between;
	margin-top: -10px;
	color: #cfcbca;
	font-size: 12px;
}

.tg-roi__note {
	margin: 0;
	color: #cfcbca;
	font-size: 12.5px;
	line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
	.tg-roi__bar {
		transition: none;
	}
}
