/* T-Lift: калькулятор, корзина, оформление. Палитра темы: #eeb313 / #232323. */
.tl-calc,
.tl-cart {
	--tl-accent: #eeb313;
	--tl-dark: #232323;
	--tl-line: #e4e4e4;
	--tl-muted: #888;
	font-size: 15px;
	color: var(--tl-dark);
}

/* --- Калькулятор --- */

.tl-calc {
	border: 1px solid var(--tl-line);
	border-radius: 4px;
	padding: 22px 24px;
	margin: 26px 0 0;
	background: #fff;
}

.tl-row { margin-bottom: 18px; }

.tl-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--tl-muted);
	margin-bottom: 9px;
}

.tl-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tl-opt {
	appearance: none;
	background: #fff;
	border: 1px solid var(--tl-line);
	border-radius: 3px;
	padding: 10px 18px;
	font-size: 15px;
	line-height: 1.2;
	color: var(--tl-dark);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.tl-opt:hover:not(:disabled) { border-color: var(--tl-accent); }

.tl-opt.is-on {
	background: var(--tl-accent);
	border-color: var(--tl-accent);
	font-weight: 600;
}

.tl-opt.is-off {
	opacity: .35;
	cursor: not-allowed;
	text-decoration: line-through;
}

.tl-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--tl-line);
	padding-top: 18px;
	margin-top: 22px;
}

.tl-conf {
	font-size: 13px;
	color: var(--tl-muted);
	margin-bottom: 4px;
}

.tl-price {
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.tl-price-na {
	font-size: 22px;
	color: var(--tl-muted);
}

.tl-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

/* --- Количество --- */

.tl-qty {
	display: inline-flex;
	border: 1px solid var(--tl-line);
	border-radius: 3px;
	overflow: hidden;
}

.tl-qty button {
	appearance: none;
	border: 0;
	background: #f7f7f7;
	width: 38px;
	font-size: 18px;
	line-height: 1;
	color: var(--tl-dark);
	cursor: pointer;
}

.tl-qty button:hover { background: var(--tl-accent); }

.tl-qty input {
	width: 48px;
	height: 42px;
	border: 0;
	border-left: 1px solid var(--tl-line);
	border-right: 1px solid var(--tl-line);
	text-align: center;
	font-size: 15px;
	background: #fff;
	padding: 0;
	margin: 0;
	box-shadow: none;
}

.tl-qty-sm button { width: 30px; height: 34px; font-size: 15px; }
.tl-qty-sm input { width: 40px; height: 34px; font-size: 14px; }

/* --- Кнопки --- */

.tl-btn {
	display: inline-block;
	appearance: none;
	border: 0;
	background: var(--tl-accent);
	color: var(--tl-dark);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 14px 28px;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s;
}

.tl-btn:hover { background: var(--tl-dark); color: #fff; }

.tl-btn:disabled {
	background: #ececec;
	color: var(--tl-muted);
	cursor: not-allowed;
}

.tl-btn-lg { padding: 16px 40px; font-size: 15px; }

.tl-added {
	margin-top: 14px;
	font-size: 14px;
	color: #2e7d32;
}

.tl-note {
	background: #fff8e1;
	border-left: 3px solid var(--tl-accent);
	padding: 12px 16px;
	font-size: 14px;
}

/* --- Корзина --- */

.tl-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 18px;
}

.tl-table th,
.tl-table td {
	border-bottom: 1px solid var(--tl-line);
	padding: 14px 10px;
	vertical-align: middle;
	text-align: left;
}

.tl-table thead th {
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--tl-muted);
	font-weight: 600;
	border-bottom-width: 2px;
}

.tl-table .tl-num { text-align: right; white-space: nowrap; }

.tl-name {
	display: block;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

a.tl-name:hover,
a.tl-name:focus {
	color: inherit;
	text-decoration: underline;
}

.tl-params {
	display: block;
	font-size: 13px;
	color: var(--tl-muted);
	margin-top: 4px;
}

.tl-del {
	appearance: none;
	border: 0;
	background: none;
	font-size: 22px;
	line-height: 1;
	color: #bbb;
	cursor: pointer;
	padding: 0 4px;
}

.tl-del:hover { color: #c62828; }

.tl-total {
	text-align: right;
	font-size: 20px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--tl-line);
}

.tl-total b { font-size: 26px; }

.tl-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--tl-muted);
}

/* --- Форма оформления --- */

.tl-h {
	font-size: 22px;
	margin: 30px 0 18px;
}

.tl-types {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.tl-type {
	margin: 0;
	cursor: pointer;
	font-weight: 400;
}

.tl-type input { position: absolute; opacity: 0; pointer-events: none; }

.tl-type span {
	display: block;
	border: 1px solid var(--tl-line);
	border-radius: 3px;
	padding: 12px 24px;
	transition: border-color .15s, background .15s;
}

.tl-type input:checked + span {
	background: var(--tl-accent);
	border-color: var(--tl-accent);
	color: #000;
	font-weight: 600;
}

.tl-type input:focus-visible + span { outline: 2px solid var(--tl-dark); }

.tl-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px 18px;
	margin-bottom: 14px;
}

.tl-form label {
	display: block;
	font-size: 13px;
	color: #222;
	font-weight: 600;
	margin: 0;
}

.tl-form label b { color: #c62828; }

.tl-form input[type="text"],
.tl-form input[type="tel"],
.tl-form input[type="email"],
.tl-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	border: 1px solid var(--tl-line);
	border-radius: 3px;
	padding: 11px 13px;
	font-size: 15px;
	color: var(--tl-dark);
	background: #fff;
	box-shadow: none;
}

.tl-form input:focus,
.tl-form textarea:focus {
	border-color: var(--tl-accent);
	outline: none;
}

.tl-full { margin-bottom: 14px !important; }

.tl-file input { margin-top: 6px; font-size: 14px; }

.tl-hint {
	display: block;
	font-weight: 400;
	font-size: 12px;
	margin-top: 4px;
}

.tl-consent {
	display: flex !important;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400 !important;
	color: var(--tl-dark) !important;
	font-size: 14px !important;
	margin: 18px 0 22px !important;
}

.tl-consent input { margin-top: 3px; flex: 0 0 auto; }

/* Ловушка для ботов — скрыта от людей, но не от автозаполнения. */
.tl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tl-err {
	background: #fdecea;
	border-left: 3px solid #c62828;
	color: #932020;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 14px;
}

.tl-done {
	border: 1px solid var(--tl-line);
	border-left: 3px solid #2e7d32;
	padding: 24px 26px;
}

/* --- Плавающая кнопка и счётчик --- */

.tl-fab {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--tl-accent, #eeb313);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
	text-decoration: none;
}

.tl-fab { color: #232323; }
.tl-fab:hover { background: #232323; color: #fff; }
.tl-fab-i { display: block; }

.tl-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #232323;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.tl-cart-link { position: relative; display: inline-block; }
.tl-cart-link .tl-count { top: -8px; right: -14px; background: #eeb313; color: #232323; }

/* --- Адаптив --- */

@media (max-width: 640px) {
	.tl-calc { padding: 18px 16px; }
	.tl-price { font-size: 28px; }

	.tl-summary,
	.tl-actions { width: 100%; }

	.tl-actions { justify-content: space-between; }

	.tl-table thead { display: none; }

	.tl-table,
	.tl-table tbody,
	.tl-table tr,
	.tl-table td { display: block; width: 100%; }

	.tl-table tr {
		border: 1px solid var(--tl-line);
		border-radius: 4px;
		padding: 6px 12px;
		margin-bottom: 14px;
	}

	.tl-table td {
		border: 0;
		border-bottom: 1px dashed #f0f0f0;
		padding: 9px 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		text-align: right;
	}

	.tl-table td:last-child { border-bottom: 0; }

	.tl-table td::before {
		content: attr(data-th);
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: .04em;
		color: var(--tl-muted);
		font-weight: 600;
		text-align: left;
		padding-right: 14px;
	}

	.tl-table td:first-child { text-align: left; display: block; }
	.tl-table td:first-child::before { display: none; }

	.tl-fab { right: 14px; bottom: 14px; }
}
