/* ==========================================================================
   Pirkėjų pagalbininkas: burbulas kampe ir pokalbio langas (2026-10-19)

   Elementus piešia js/pagalbininkas.js, šaknį įdeda
   pagalb_svetaines_blokas() (function/pagalbininkas-langas.php). Visos
   klasės su `pg-` priešdėliu ir po `#pg-saknis`, kad parduotuvės stiliai
   (`#page a`, `button`) jų nepaliestų ir atvirkščiai.

   Sluoksniai: slapukų juosta 9999, langelis „Prekė įdėta į krepšelį" 2000.
   Burbulas 1900, žemiau langelio, nors kol langelis atidarytas, jis ir taip
   paslėptas. Langas 1950.

   Pakeitus failą, kelti pagalb_versija().
   ========================================================================== */

#pg-saknis {
	font-family: 'Outfit', 'Source Sans Pro', Arial, sans-serif;
	color: #221B1E;
	text-align: left;
}
#pg-saknis *, #pg-saknis *::before, #pg-saknis *::after { box-sizing: border-box; }
#pg-saknis [hidden] { display: none !important; }

/* ---- Burbulas ---------------------------------------------------------- */
#pg-saknis .pg-burbulas {
	position: fixed; z-index: 1900; right: 24px; bottom: 24px;
	display: inline-flex; align-items: center; gap: 10px;
	height: 52px; margin: 0; padding: 0 22px 0 18px;
	border: 0; border-radius: 26px;
	background: #221B1E; color: #FCFBFA;
	font: 600 16px/1 'Outfit', 'Source Sans Pro', Arial, sans-serif;
	box-shadow: 0 12px 30px -10px rgba(34, 27, 30, 0.55);
	cursor: pointer;
}
#pg-saknis .pg-burbulas:hover { background: #8A3355; }
#pg-saknis .pg-burbulas:focus-visible { outline: 3px solid #8A3355; outline-offset: 3px; }
#pg-saknis .pg-burbulas.pg-paslepta { display: none; }
#pg-saknis .pg-ikona { width: 24px; height: 24px; flex: none; }
#pg-saknis .pg-burbulas-trumpas { display: none; }

/* ---- Langas ------------------------------------------------------------ */
#pg-saknis .pg-langas {
	position: fixed; z-index: 1950; right: 24px; bottom: 90px;
	display: flex; flex-direction: column;
	width: 380px; height: 560px; max-height: calc(100vh - 110px);
	border-radius: 16px; background: #FCFBFA; overflow: hidden;
	box-shadow: 0 24px 60px -20px rgba(34, 27, 30, 0.55), 0 0 0 1px rgba(34, 27, 30, 0.08);
}
#pg-saknis .pg-galva {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 12px 14px 18px; background: #221B1E; color: #FCFBFA;
}
#pg-saknis .pg-antraste { font-weight: 600; font-size: 16px; }
#pg-saknis .pg-uzdaryti {
	width: 36px; height: 36px; margin: 0; padding: 0;
	border: 0; border-radius: 18px; background: transparent; color: #FCFBFA;
	font-size: 26px; line-height: 36px; cursor: pointer;
}
#pg-saknis .pg-uzdaryti:hover, #pg-saknis .pg-uzdaryti:focus-visible { background: rgba(252, 251, 250, 0.15); outline: none; }
#pg-saknis .pg-bandymas {
	padding: 6px 18px; background: #F3E3E9; color: #8A3355; font-size: 13px;
}

/* ---- Žinutės ----------------------------------------------------------- */
#pg-saknis .pg-zinutes {
	flex: 1 1 auto; overflow-y: auto; padding: 16px;
	display: flex; flex-direction: column; gap: 10px;
	-webkit-overflow-scrolling: touch;
}
#pg-saknis .pg-zinute {
	max-width: 88%; padding: 10px 14px; border-radius: 14px;
	font-size: 15px; line-height: 1.45; overflow-wrap: anywhere;
}
#pg-saknis .pg-atsakymas { align-self: flex-start; background: #fff; box-shadow: 0 0 0 1px rgba(34, 27, 30, 0.08); border-bottom-left-radius: 4px; }
#pg-saknis .pg-pirkejo { align-self: flex-end; background: #221B1E; color: #FCFBFA; border-bottom-right-radius: 4px; }
#pg-saknis .pg-klaida { background: #FBEDEE; color: #8A3355; }
#pg-saknis .pg-raso { color: #6E6267; font-style: italic; }
#pg-saknis .pg-nuoroda { color: #8A3355; text-decoration: underline; }
#pg-saknis .pg-pirkejo .pg-nuoroda { color: #FCFBFA; }
#pg-saknis .pg-apie { align-self: flex-start; font-size: 13px; color: #6E6267; }

#pg-saknis .pg-greiti { display: flex; flex-wrap: wrap; gap: 8px; }
#pg-saknis .pg-greitas {
	margin: 0; padding: 8px 14px;
	border: 1px solid #8A3355; border-radius: 18px; background: #fff; color: #8A3355;
	font: 500 14px/1.2 'Outfit', 'Source Sans Pro', Arial, sans-serif; cursor: pointer;
}
#pg-saknis .pg-greitas:hover, #pg-saknis .pg-greitas:focus-visible { background: #8A3355; color: #fff; outline: none; }

/* ---- Prekių kortelės --------------------------------------------------- */
#pg-saknis .pg-korteles { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
#pg-saknis .pg-kortele {
	display: flex; gap: 12px; align-items: center; padding: 8px;
	border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(34, 27, 30, 0.1);
	color: #221B1E; text-decoration: none;
}
#pg-saknis .pg-kortele:hover, #pg-saknis .pg-kortele:focus-visible { box-shadow: 0 0 0 2px #8A3355; outline: none; }
#pg-saknis .pg-kortele img { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: 8px; background: #F6F2F0; }
#pg-saknis .pg-kortele-tekstas { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#pg-saknis .pg-kortele-vardas { font-size: 14px; line-height: 1.3; }
#pg-saknis .pg-kortele-kaina { font-size: 15px; font-weight: 600; }
#pg-saknis .pg-kortele-kaina s { font-weight: 400; color: #6E6267; font-size: 13px; }
#pg-saknis .pg-kortele-busena { font-size: 12px; color: #6E6267; }
#pg-saknis .pg-kortele-busena.pg-yra { color: #2E6B3F; }

/* ---- Įvestis ----------------------------------------------------------- */
#pg-saknis .pg-forma {
	display: flex; align-items: flex-end; gap: 8px; margin: 0;
	padding: 10px 12px; border-top: 1px solid rgba(34, 27, 30, 0.1); background: #fff;
}
#pg-saknis .pg-ivestis {
	flex: 1 1 auto; min-height: 44px; max-height: 120px; margin: 0; padding: 11px 14px;
	border: 1px solid rgba(34, 27, 30, 0.25); border-radius: 22px; background: #fff; color: #221B1E;
	font: 16px/1.3 'Outfit', 'Source Sans Pro', Arial, sans-serif; resize: none;
}
#pg-saknis .pg-ivestis:focus { border-color: #8A3355; outline: none; }
#pg-saknis .pg-siusti {
	width: 44px; height: 44px; flex: none; margin: 0; padding: 10px;
	border: 0; border-radius: 22px; background: #8A3355; color: #fff; cursor: pointer;
}
#pg-saknis .pg-siusti svg { width: 22px; height: 22px; display: block; }
#pg-saknis .pg-siusti:disabled, #pg-saknis .pg-ivestis:disabled { opacity: 0.55; cursor: default; }
#pg-saknis .pg-pastaba { padding: 0 16px 10px; background: #fff; font-size: 12px; color: #6E6267; }
#pg-saknis .pg-pastaba a { color: #6E6267; text-decoration: underline; }

/* ---- Telefonas --------------------------------------------------------- */
@media (max-width: 640px) {
	#pg-saknis .pg-burbulas {
		right: 16px; bottom: 16px;
		flex-direction: column; justify-content: center; gap: 2px;
		width: 56px; height: 56px; padding: 0; border-radius: 28px;
		font-size: 11px;
	}
	#pg-saknis .pg-ikona { width: 22px; height: 22px; }
	#pg-saknis .pg-burbulas-ilgas { display: none; }
	#pg-saknis .pg-burbulas-trumpas { display: block; }
	#pg-saknis .pg-langas {
		top: 0; right: 0; bottom: 0; left: 0;
		width: auto; height: auto; max-height: none; border-radius: 0;
	}
	html.pg-atidaryta, html.pg-atidaryta body { overflow: hidden; }
}
