/* Konfigurator cene. Vrednosti iz design/Cenovnik.dc.html. */

.tg-pc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}

.tg-pc__block {
	margin-bottom: 32px;
}

.tg-pc__label {
	margin: 0 0 12px;
	color: var(--tg-mute2);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Tržište */
.tg-pc__market {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	border: 2px solid var(--tg-rule);
}

.tg-pc .tg-pc__market button {
	padding: 16px 18px;
	border: 0;
	border-right: 2px solid var(--tg-rule);
	background: transparent;
	color: var(--tg-ink);
	font-family: var(--tg-font);
	text-align: left;
	cursor: pointer;
}

.tg-pc .tg-pc__market button:last-child {
	border-right: 0;
}

.tg-pc .tg-pc__market button[aria-pressed="true"] {
	background: var(--tg-ink);
	color: var(--tg-bg);
}

.tg-pc__mname {
	display: block;
	font-size: 17px;
	font-weight: 800;
}

.tg-pc__mdesc {
	display: block;
	margin-top: 2px;
	font-size: 13.5px;
	font-weight: 500;
	opacity: 0.8;
}

/* Paketi */
.tg-pc__tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 2px;
	background: var(--tg-rule);
	border: 2px solid var(--tg-rule);
}

.tg-pc .tg-pc__tier {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 20px;
	border: 0;
	background: var(--tg-bg);
	color: var(--tg-ink);
	font-family: var(--tg-font);
	text-align: left;
	cursor: pointer;
}

.tg-pc .tg-pc__tier:hover {
	background: var(--tg-tint);
}

.tg-pc .tg-pc__tier[aria-pressed="true"] {
	background: var(--tg-orange);
}

.tg-pc__tname {
	font-size: 20px;
	font-weight: 800;
}

.tg-pc__tprice {
	font-size: 34px;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.tg-pc__tfor {
	color: var(--tg-mute);
	font-size: 14px;
	font-weight: 600;
}

.tg-pc .tg-pc__tier[aria-pressed="true"] .tg-pc__tfor {
	color: var(--tg-ink);
}

.tg-pc__tfeats {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 6px;
	padding-top: 12px;
	border-top: 2px solid var(--tg-rule);
	font-size: 14.5px;
	font-weight: 600;
}

/* Dodaci */
.tg-pc__addons {
	border: 2px solid var(--tg-rule);
}

.tg-pc .tg-pc__addon {
	display: grid;
	width: 100%;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 16px 18px;
	border: 0;
	border-bottom: 1px solid var(--tg-line);
	background: transparent;
	color: var(--tg-ink);
	font-family: var(--tg-font);
	text-align: left;
	cursor: pointer;
}

.tg-pc .tg-pc__addon:last-child {
	border-bottom: 0;
}

.tg-pc .tg-pc__addon[aria-pressed="true"] {
	background: var(--tg-tint);
}

.tg-pc__abox {
	width: 22px;
	height: 22px;
	border: 2px solid var(--tg-ink);
}

.tg-pc .tg-pc__addon[aria-pressed="true"] .tg-pc__abox {
	background: var(--tg-orange);
}

.tg-pc__aname {
	display: block;
	font-size: 16px;
	font-weight: 800;
}

.tg-pc__adesc {
	display: block;
	color: var(--tg-mute);
	font-size: 13.5px;
}

.tg-pc__aprice {
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
}

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

.tg-pc .tg-pc__terms button {
	padding: 14px 12px;
	border: 0;
	border-right: 2px solid var(--tg-rule);
	background: transparent;
	color: var(--tg-ink);
	font-family: var(--tg-font);
	text-align: left;
	cursor: pointer;
}

.tg-pc .tg-pc__terms button:last-child {
	border-right: 0;
}

.tg-pc .tg-pc__terms button[aria-pressed="true"] {
	background: var(--tg-ink);
	color: var(--tg-bg);
}

.tg-pc__tlabel {
	display: block;
	font-size: 16px;
	font-weight: 800;
}

.tg-pc__tdesc {
	display: block;
	margin-top: 2px;
	color: var(--tg-acc-ink);
	font-size: 13px;
	font-weight: 700;
}

.tg-pc .tg-pc__terms button[aria-pressed="true"] .tg-pc__tdesc {
	color: var(--tg-orange);
}

/* Rezime */
.tg-pc__summary {
	position: sticky;
	top: 96px;
	padding: 24px;
	background: var(--tg-ink);
	color: var(--tg-bg);
}

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

.tg-pc__sfor {
	margin: 6px 0 18px;
	font-size: 18px;
	font-weight: 800;
}

.tg-pc__lines {
	list-style: none;
	margin: 0;
	padding: 0 0 16px;
	border-bottom: 1px solid rgba(243, 242, 242, 0.27);
}

.tg-pc__lines li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 7px 0;
	font-size: 15px;
}

.tg-pc__total {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 16px;
}

.tg-pc__totalnum {
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 900;
	letter-spacing: -0.04em;
}

.tg-pc__totalper {
	font-size: 15px;
	font-weight: 700;
	color: #cfcbca;
}

.tg-pc__note {
	margin: 8px 0 0;
	color: #cfcbca;
	font-size: 13px;
}

.tg-pc .tg-pc__cta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 56px;
	margin-top: 20px;
	padding: 0 18px;
	background: var(--tg-orange);
	color: var(--tg-ink);
	font-size: 15.5px;
	font-weight: 800;
	text-decoration: none;
}

.tg-pc .tg-pc__cta:hover {
	background: var(--tg-bg);
	color: var(--tg-ink);
}

@media (max-width: 999px) {
	.tg-pc {
		grid-template-columns: 1fr;
	}

	.tg-pc__summary {
		position: static;
	}
}
