/* hesteron_custom/public/css/chatbot.css — chat-buborék a B2B webshopban */
#hst-chat { --hst-szin: #1F3A5A; --hst-szin2: #FF6B4A; --hst-zold: #FF6B4A; font-family: inherit; }
#hst-chat .hst-chat-gomb {
	position: fixed; right: 20px; bottom: 20px; z-index: 9990;
	width: 64px; height: auto; border: 0; padding: 0; cursor: pointer; background: transparent;
	filter: drop-shadow(0 6px 14px rgba(0,0,0,.28));
	display: flex; align-items: center; justify-content: center; transition: transform .15s, opacity .15s;
}
#hst-chat .hst-chat-gomb img { width: 64px; height: auto; display: block; }
#hst-chat .hst-chat-gomb:hover { transform: scale(1.06); }
#hst-chat .hst-chat-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: inline-block; }
#hst-chat .hst-chat-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; }
#hst-chat .hst-chat-avatar.kicsi { width: 30px; height: 30px; flex: 0 0 30px; box-shadow: 0 0 0 1px #e3e7ee; border-radius: 50%; align-self: flex-end; margin-bottom: 2px; }
#hst-chat .hst-chat-cimek { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
#hst-chat .hst-chat-alcim { font-size: 12px; opacity: .8; font-weight: 400; }
#hst-chat .hst-chat-sor { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; align-self: flex-start; }
#hst-chat .hst-chat-sor .hst-chat-buborek { max-width: none; }
#hst-chat .hst-chat-gomb.rejtett { opacity: 0; pointer-events: none; }
#hst-chat .hst-chat-ablak {
	position: fixed; right: 20px; bottom: 20px; z-index: 9991;
	width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 40px);
	background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28);
	display: none; flex-direction: column; overflow: hidden; color: #222;
}
#hst-chat .hst-chat-ablak.nyitva { display: flex; }
#hst-chat .hst-chat-fej {
	background: var(--hst-szin); color: #fff; padding: 10px 12px; display: flex; align-items: center; gap: 10px;
}
#hst-chat .hst-chat-cim { font-weight: 700; font-size: 16px; letter-spacing: .2px; }
#hst-chat .hst-chat-cim .hst-chat-x { color: var(--hst-szin2); }
/* „Új" gomb: ugyanaz a stílus, mint a bezáró – korall, vastag fehér felirat */
#hst-chat .hst-chat-uj {
	background: var(--hst-szin2); color: #fff; border: 0; border-radius: 16px;
	height: 32px; padding: 0 14px; font-size: 13px; font-weight: 700; cursor: pointer; margin-right: 10px;
	transition: transform .15s;
}
#hst-chat .hst-chat-uj:hover { transform: scale(1.06); }
/* bezáró X: korall kör, vastag fehér X (inline SVG a JS-ben, logó-stílus) */
#hst-chat .hst-chat-bezar {
	width: 32px; height: 32px; flex: 0 0 32px; padding: 0; cursor: pointer;
	border: 0; border-radius: 50%; background: transparent;
	display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
#hst-chat .hst-chat-bezar svg { width: 32px; height: 32px; display: block; }
#hst-chat .hst-chat-bezar:hover { transform: scale(1.08); }
#hst-chat .hst-chat-uzenetek { flex: 1; overflow-y: auto; padding: 14px; background: #f4f6f9; display: flex; flex-direction: column; gap: 10px; }
#hst-chat .hst-chat-buborek { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
#hst-chat .hst-chat-buborek p { margin: 0 0 6px; }
#hst-chat .hst-chat-buborek p:last-child { margin-bottom: 0; }
#hst-chat .hst-chat-buborek ul { margin: 4px 0 6px 18px; padding: 0; }
#hst-chat .hst-chat-buborek li { margin: 2px 0; }
#hst-chat .hst-chat-buborek.bot { background: #fff; border: 1px solid #e3e7ee; align-self: flex-start; border-bottom-left-radius: 4px; }
#hst-chat .hst-chat-buborek.user { background: var(--hst-szin); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
#hst-chat .hst-chat-buborek a { color: var(--hst-szin); text-decoration: underline; }
#hst-chat .hst-chat-buborek.varo { display: flex; gap: 4px; padding: 12px 14px; }
#hst-chat .hst-chat-buborek.varo span { width: 7px; height: 7px; border-radius: 50%; background: #9aa7b8; animation: hstPont 1.2s infinite; }
#hst-chat .hst-chat-buborek.varo span:nth-child(2) { animation-delay: .2s; }
#hst-chat .hst-chat-buborek.varo span:nth-child(3) { animation-delay: .4s; }
@keyframes hstPont { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
#hst-chat .hst-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #e3e7ee; background: #fff; }
#hst-chat .hst-chat-form textarea {
	flex: 1; resize: none; border: 1px solid #cfd6e0; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit;
	line-height: 1.4; max-height: 120px; outline: none;
}
#hst-chat .hst-chat-form textarea:focus { border-color: var(--hst-zold); }
#hst-chat .hst-chat-form button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--hst-szin); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#hst-chat .hst-chat-form button:disabled { background: #b9c2cf; cursor: default; }
#hst-chat .hst-chat-lab { font-size: 11px; color: #7a8698; padding: 6px 12px 9px; background: #fff; text-align: center; }
/* mobil: teljes képernyős, fix ablak; a fejléc mindig felül marad, csak az üzenetlista gördül */
@media (max-width: 480px) {
	#hst-chat .hst-chat-ablak {
		top: 0; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%;
		height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0;
	}
	#hst-chat .hst-chat-fej { position: sticky; top: 0; z-index: 2; flex: 0 0 auto; padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top)); }
	#hst-chat .hst-chat-uj { margin-right: 14px; }
	#hst-chat .hst-chat-uzenetek { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	#hst-chat .hst-chat-form { flex: 0 0 auto; }
	#hst-chat .hst-chat-lab { padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
}
/* új beszélgetés: Hesterix-fej középen, világos háttéren */
#hst-chat .hst-chat-udv { display: flex; justify-content: center; padding: 6px 0 2px; }
#hst-chat .hst-chat-udv img { width: 67px; height: auto; display: block; }
