/* Prekių palyginimas */
:root {
	--ltc-accent: #D9A25F;
	--ltc-accent-h: #C48C48;
	--ltc-navy: #26324a;
	--ltc-text: #1F2937;
	--ltc-muted: #6B7280;
	--ltc-line: #E5E7EB;
	--ltc-soft: #FBF6EF;
}

/* ---------- Mygtukas ---------- */
.ltc-single-wrap { margin: 12px 0 4px; clear: both; }
html body button.ltc-btn {
	display: inline-flex !important; align-items: center; gap: 8px;
	padding: 9px 16px !important; margin: 0 !important;
	border: 1.5px solid var(--ltc-line) !important; border-radius: 999px !important;
	background: #fff !important; color: var(--ltc-navy) !important;
	font: 600 14px/1.2 inherit !important; text-transform: none !important; letter-spacing: 0 !important;
	cursor: pointer; box-shadow: none !important; transition: border-color .15s, background .15s, color .15s, transform .1s;
	min-height: 0 !important; width: auto !important;
}
html body button.ltc-btn:hover { border-color: var(--ltc-accent) !important; color: var(--ltc-accent-h) !important; }
html body button.ltc-btn:active { transform: scale(.97); }
html body button.ltc-btn:focus-visible { outline: 2px solid var(--ltc-accent) !important; outline-offset: 2px; }
html body button.ltc-btn.is-active {
	background: var(--ltc-soft) !important; border-color: var(--ltc-accent) !important; color: var(--ltc-accent-h) !important;
}
.ltc-btn .ltc-scale { width: 18px; height: 18px; flex: none; }
.ltc-btn.is-active .ltc-scale { animation: ltc-tilt .45s ease; }
@keyframes ltc-tilt { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 65% { transform: rotate(8deg); } }

/* Prekių sąraše – kompaktiškas */
html body button.ltc-btn--loop { padding: 6px 12px !important; font-size: 13px !important; margin-top: 8px !important; }
html body button.ltc-btn--loop .ltc-scale { width: 16px; height: 16px; }

/* ---------- Apatinė juostelė ---------- */
.ltc-dock {
	position: fixed; left: 50%; bottom: 16px; z-index: 99990;
	transform: translateX(-50%); width: min(980px, calc(100% - 24px));
	background: #fff; color: var(--ltc-text);
	border: 1px solid var(--ltc-line); border-radius: 16px;
	box-shadow: 0 14px 40px rgba(17, 24, 39, .18);
	animation: ltc-up .3s cubic-bezier(.2,.8,.2,1);
	font-size: 14px;
}
.ltc-dock[hidden] { display: none !important; }
.ltc-dock.is-shake { animation: ltc-shake .45s; }
@keyframes ltc-up { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ltc-shake { 0%,100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 6px)); } 75% { transform: translateX(calc(-50% + 6px)); } }
.ltc-dock-in { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.ltc-dock-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 260px; }
.ltc-dock-ico {
	width: 38px; height: 38px; border-radius: 50%; flex: none;
	display: grid; place-items: center; font-size: 19px;
	background: var(--ltc-soft); color: var(--ltc-accent-h);
}
.ltc-dock-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ltc-dock .ltc-dock-title { color: var(--ltc-navy) !important; font-size: 15px; }
.ltc-dock .ltc-dock-hint { color: var(--ltc-muted) !important; font-size: 12.5px; }

.ltc-dock ul.ltc-dock-items { display: flex; gap: 8px; list-style: none !important; margin: 0 !important; padding: 0 !important; flex: 1 1 auto; min-width: 0; }
.ltc-dock li.ltc-chip {
	position: relative; display: flex; align-items: center; gap: 8px;
	flex: 1 1 0; min-width: 0; max-width: 190px; height: 52px; padding: 5px 26px 5px 5px;
	border: 1px solid var(--ltc-line); border-radius: 10px; background: #fff; margin: 0 !important;
}
.ltc-chip img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #F9FAFB; flex: none; }
.ltc-dock .ltc-chip-name {
	font-size: 12.5px; line-height: 1.25; color: var(--ltc-text) !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html body .ltc-dock button.ltc-chip-x {
	position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50%; background: #F3F4F6 !important; color: var(--ltc-muted) !important;
	font-size: 14px !important; line-height: 20px !important; cursor: pointer; min-height: 0 !important;
}
html body .ltc-dock button.ltc-chip-x:hover { background: #FEE2E2 !important; color: #B91C1C !important; }
.ltc-dock li.ltc-chip--empty {
	justify-content: center; padding: 5px; border-style: dashed; background: #FAFAFA; color: #C4C9D2;
	font-size: 20px;
}

.ltc-dock-actions { display: flex; align-items: center; gap: 10px; flex: none; }
html body .ltc-dock button.ltc-link {
	background: none !important; border: 0 !important; padding: 6px 4px !important; margin: 0 !important;
	color: var(--ltc-muted) !important; font-size: 13px !important; text-decoration: underline; cursor: pointer; min-height: 0 !important;
	box-shadow: none !important; text-transform: none !important;
}
html body .ltc-dock button.ltc-link:hover { color: var(--ltc-text) !important; }
html body .ltc-dock button.ltc-primary,
html body .ltc-sheet a.ltc-cart.button {
	background: var(--ltc-accent) !important; color: #fff !important; border: 0 !important;
	border-radius: 10px !important; padding: 12px 20px !important; margin: 0 !important;
	font-weight: 700 !important; font-size: 14px !important; line-height: 1.2 !important; cursor: pointer;
	text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; min-height: 0 !important;
	transition: background .15s;
}
html body .ltc-dock button.ltc-primary:hover,
html body .ltc-sheet a.ltc-cart.button:hover { background: var(--ltc-accent-h) !important; color: #fff !important; }
html body .ltc-dock button.ltc-primary:disabled {
	background: #E5E7EB !important; color: #9CA3AF !important; cursor: not-allowed;
}
.ltc-dock.is-ready .ltc-dock-ico { background: var(--ltc-accent); color: #fff; }

/* Kad juostelė neuždengtų puslapio apačios */
body.ltc-has-dock { padding-bottom: 96px; }

/* ---------- Pranešimas ---------- */
.ltc-toast {
	position: fixed; left: 50%; bottom: 100px; z-index: 99995;
	transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
	background: var(--ltc-navy); color: #fff; padding: 10px 18px; border-radius: 999px;
	font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: opacity .2s, transform .2s;
	max-width: calc(100% - 32px); text-align: center;
}
.ltc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Palyginimo skydelis ---------- */
html.ltc-lock, html.ltc-lock body { overflow: hidden !important; }
.ltc-panel { position: fixed; inset: 0; z-index: 99999; }
.ltc-panel[hidden] { display: none !important; }
.ltc-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .5); opacity: 0; transition: opacity .25s; }
.ltc-sheet {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(1180px, 100%);
	max-height: 88vh; display: flex; flex-direction: column;
	background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2);
	transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
	color: var(--ltc-text);
}
.ltc-panel.is-open .ltc-backdrop { opacity: 1; }
.ltc-panel.is-open .ltc-sheet { transform: translateY(0); }

.ltc-sheet-head {
	display: flex; align-items: center; gap: 16px; padding: 16px 20px;
	border-bottom: 1px solid var(--ltc-line); flex: none;
}
html body .ltc-sheet-head h2 { margin: 0 auto 0 0 !important; font-size: 20px !important; color: var(--ltc-navy) !important; line-height: 1.2 !important; }
.ltc-diff { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ltc-text); cursor: pointer; user-select: none; margin: 0; }
.ltc-diff input { width: 18px; height: 18px; accent-color: var(--ltc-accent); margin: 0; }
html body .ltc-sheet button.ltc-close {
	width: 36px; height: 36px; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50%;
	background: #F3F4F6 !important; color: var(--ltc-text) !important; font-size: 22px !important; line-height: 36px !important;
	cursor: pointer; min-height: 0 !important; box-shadow: none !important;
}
html body .ltc-sheet button.ltc-close:hover { background: #E5E7EB !important; }

.ltc-sheet-body { overflow: auto; flex: 1 1 auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ltc-loading { padding: 40px; text-align: center; color: var(--ltc-muted); }
.ltc-loading[hidden] { display: none; }
.ltc-sheet .ltc-muted { color: var(--ltc-muted) !important; }
.ltc-table-wrap > p { padding: 24px; margin: 0; }

.ltc-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: calc(170px + var(--ltc-cols, 2) * 210px); margin: 0 !important; border: 0 !important; font-size: 14px; }
.ltc-table th, .ltc-table td {
	padding: 12px 14px !important; border: 0 !important; border-bottom: 1px solid var(--ltc-line) !important;
	vertical-align: top; text-align: left; background: #fff; color: var(--ltc-text) !important;
	min-width: 200px; word-wrap: break-word;
}
.ltc-table .ltc-rowhead {
	position: sticky; left: 0; z-index: 2; width: 170px; min-width: 130px;
	background: #F9FAFB !important; font-weight: 600; color: var(--ltc-navy) !important; font-size: 13px;
	box-shadow: 1px 0 0 var(--ltc-line);
}
.ltc-table thead th { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 2px solid var(--ltc-line) !important; }
.ltc-table thead th.ltc-rowhead { z-index: 4; }
.ltc-table tbody tr.is-diff td { background: #FFFDF8; }
.ltc-panel.only-diff .ltc-table tbody tr.is-same { display: none; }

.ltc-prod { position: relative; display: flex; flex-direction: column; gap: 8px; }
.ltc-prod-img { display: block; aspect-ratio: 1 / 1; max-height: 150px; border-radius: 10px; background: #F9FAFB; overflow: hidden; }
.ltc-prod-img img { width: 100%; height: 100%; object-fit: contain; }
html body .ltc-sheet a.ltc-prod-name {
	color: var(--ltc-navy) !important; font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html body .ltc-sheet a.ltc-prod-name:hover { color: var(--ltc-accent-h) !important; }
html body .ltc-sheet button.ltc-remove {
	position: absolute; top: 6px; right: 6px; z-index: 1; width: 28px; height: 28px; padding: 0 !important; margin: 0 !important;
	border: 1px solid var(--ltc-line) !important; border-radius: 50%; background: #fff !important; color: var(--ltc-muted) !important;
	font-size: 17px !important; line-height: 26px !important; cursor: pointer; min-height: 0 !important; box-shadow: none !important;
}
html body .ltc-sheet button.ltc-remove:hover { background: #FEE2E2 !important; color: #B91C1C !important; border-color: #FECACA !important; }
html body .ltc-sheet a.ltc-cart { display: block; text-align: center; text-decoration: none !important; }
html body .ltc-sheet a.ltc-cart--ghost {
	padding: 11px 16px; border: 1.5px solid var(--ltc-accent); border-radius: 10px;
	color: var(--ltc-accent-h) !important; font-weight: 700;
}
html body .ltc-sheet a.added_to_cart { display: block; text-align: center; font-size: 13px; margin-top: 4px; color: var(--ltc-accent-h) !important; }

.ltc-price { font-weight: 700; font-size: 16px; color: var(--ltc-navy); }
.ltc-price del { color: var(--ltc-muted); font-weight: 400; font-size: 13px; margin-right: 4px; }
.ltc-price ins { text-decoration: none; color: #B91C1C; }
.ltc-best {
	display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
	background: #DCFCE7; color: #166534; font-size: 11.5px; font-weight: 700; vertical-align: middle;
}
.ltc-stars { color: var(--ltc-accent); letter-spacing: 1px; }
.ltc-sheet .ltc-ok { color: #15803D !important; font-weight: 600; }
.ltc-sheet .ltc-no { color: #B91C1C !important; font-weight: 600; }
.ltc-desc { font-size: 13px; color: var(--ltc-muted); line-height: 1.5; }
.ltc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Mobilus ---------- */
@media (max-width: 767px) {
	.ltc-dock { bottom: 0; width: 100%; border-radius: 16px 16px 0 0; border-bottom: 0; }
	.ltc-dock-in { flex-wrap: wrap; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
	.ltc-dock-info { flex: 1 1 auto; }
	.ltc-dock-ico { width: 32px; height: 32px; font-size: 16px; }
	.ltc-dock ul.ltc-dock-items { order: 3; flex: 1 1 100%; }
	.ltc-dock li.ltc-chip { height: 46px; padding-right: 5px; justify-content: center; }
	.ltc-dock li.ltc-chip img { width: 34px; height: 34px; }
	.ltc-dock .ltc-chip-name { display: none; }
	html body .ltc-dock button.ltc-chip-x { top: -6px; right: -6px; background: #fff !important; border: 1px solid var(--ltc-line) !important; }
	html body .ltc-dock button.ltc-primary { padding: 10px 14px !important; }
	body.ltc-has-dock { padding-bottom: 130px; }
	.ltc-toast { bottom: 140px; }
	.ltc-sheet { max-height: 92vh; }
	.ltc-sheet-head { flex-wrap: wrap; padding: 14px 16px; gap: 10px; }
	html body .ltc-sheet-head h2 { font-size: 18px !important; }
	.ltc-diff { order: 3; flex: 1 1 100%; }
	.ltc-table { min-width: calc(100px + var(--ltc-cols, 2) * 155px); }
	.ltc-table th, .ltc-table td { padding: 10px !important; font-size: 13px; }
	.ltc-table .ltc-rowhead { width: 100px; min-width: 100px; font-size: 12px; }
	.ltc-prod-img { max-height: 110px; }
}
