/* Puzzle Sziget – AI chatbot. A bolt színei: erdőzöld, tinta, krém; betű: Nunito Sans / Bricolage Grotesque. */
#pszcb {
	--pszcb-green: #2E5323;
	--pszcb-green-dark: #22401A;
	--pszcb-ink: #1E261B;
	--pszcb-muted: #5B6454;
	--pszcb-cream: #FBF6EE;
	--pszcb-sand: #F1EADC;
	--pszcb-line: #E2DACB;
	--pszcb-white: #FFFFFF;
	position: fixed;
	right: calc(16px + env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--pszcb-ink);
}
#pszcb *, #pszcb *::before, #pszcb *::after { box-sizing: border-box; }
#pszcb [hidden] { display: none !important; }

#pszcb .pszcb-bubble {
	display: grid; place-items: center;
	width: 56px; height: 56px; margin: 0 0 0 auto; padding: 0;
	border: 0; border-radius: 50%;
	background: var(--pszcb-green); color: var(--pszcb-cream);
	box-shadow: 0 6px 20px rgba(30, 38, 27, .28);
	cursor: pointer; transition: transform .15s ease, background .15s ease;
}
#pszcb .pszcb-bubble:hover { background: var(--pszcb-green-dark); transform: translateY(-1px); }
#pszcb .pszcb-bubble:focus-visible, #pszcb button:focus-visible, #pszcb a:focus-visible, #pszcb textarea:focus-visible {
	outline: 2px solid var(--pszcb-green); outline-offset: 2px;
}
#pszcb .pszcb-bubble svg { width: 28px; height: 28px; fill: currentColor; }
#pszcb .pszcb-bubble circle { fill: var(--pszcb-green); }
#pszcb.is-open .pszcb-bubble { display: none; }

#pszcb .pszcb-panel {
	display: flex; flex-direction: column;
	width: min(380px, calc(100vw - 32px));
	height: min(600px, calc(100vh - 32px));
	background: var(--pszcb-cream);
	border: 1px solid var(--pszcb-line); border-radius: 16px;
	box-shadow: 0 16px 48px rgba(30, 38, 27, .24);
	overflow: hidden;
}

#pszcb .pszcb-head {
	display: flex; align-items: center; gap: 4px;
	padding: 12px 8px 12px 16px;
	background: var(--pszcb-green); color: var(--pszcb-cream);
}
#pszcb .pszcb-titles { display: flex; flex-direction: column; flex: 1; min-width: 0; }
#pszcb .pszcb-title { font-family: "Bricolage Grotesque", "Nunito Sans", sans-serif; font-size: 17px; font-weight: 700; line-height: 1.2; }
#pszcb .pszcb-sub { font-size: 12.5px; opacity: .85; }
#pszcb .pszcb-icon {
	display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
#pszcb .pszcb-icon:hover { background: rgba(251, 246, 238, .14); }
#pszcb .pszcb-icon svg { width: 20px; height: 20px; fill: currentColor; }

#pszcb .pszcb-log {
	flex: 1; min-height: 0; overflow-y: auto;
	display: flex; flex-direction: column; gap: 10px;
	padding: 16px 14px;
}
#pszcb .pszcb-msg { display: flex; flex-direction: column; max-width: 88%; }
#pszcb .pszcb-a { align-self: flex-start; }
#pszcb .pszcb-u { align-self: flex-end; }
#pszcb .pszcb-body { padding: 9px 12px; border-radius: 14px; overflow-wrap: anywhere; }
#pszcb .pszcb-a .pszcb-body { background: var(--pszcb-white); border: 1px solid var(--pszcb-line); border-bottom-left-radius: 4px; }
#pszcb .pszcb-u .pszcb-body { background: var(--pszcb-green); color: var(--pszcb-cream); border-bottom-right-radius: 4px; white-space: pre-wrap; }
#pszcb .pszcb-body p { margin: 0; }
#pszcb .pszcb-body p + p, #pszcb .pszcb-body p + ul, #pszcb .pszcb-body p + ol, #pszcb .pszcb-body ul + p, #pszcb .pszcb-body ol + p { margin-top: 6px; }
#pszcb .pszcb-body ul, #pszcb .pszcb-body ol { margin: 0; padding-left: 20px; }
#pszcb .pszcb-body li + li { margin-top: 3px; }
#pszcb .pszcb-body a { color: var(--pszcb-green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#pszcb .pszcb-body:empty { display: none; }

#pszcb .pszcb-handoff {
	margin-top: 6px; padding: 9px 12px;
	background: var(--pszcb-sand); border-radius: 12px; font-size: 14px;
}
#pszcb .pszcb-handoff small { display: block; margin-top: 2px; color: var(--pszcb-muted); font-size: 12px; }
#pszcb .pszcb-contact { color: var(--pszcb-green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

#pszcb .pszcb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#pszcb .pszcb-chip {
	padding: 7px 12px; border: 1px solid var(--pszcb-green); border-radius: 999px;
	background: transparent; color: var(--pszcb-green);
	font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
#pszcb .pszcb-chip:hover { background: var(--pszcb-green); color: var(--pszcb-cream); }

#pszcb .pszcb-typing .pszcb-body { display: flex; align-items: center; gap: 4px; }
#pszcb .pszcb-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--pszcb-muted); animation: pszcb-dot 1.2s infinite ease-in-out; }
#pszcb .pszcb-typing span:nth-child(2) { animation-delay: .15s; }
#pszcb .pszcb-typing span:nth-child(3) { animation-delay: .3s; }
#pszcb .pszcb-typing em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes pszcb-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { #pszcb .pszcb-typing span { animation: none; } #pszcb .pszcb-bubble { transition: none; } }

#pszcb .pszcb-form {
	display: flex; align-items: flex-end; gap: 8px;
	margin: 0 12px; padding: 6px 6px 6px 12px;
	background: var(--pszcb-white); border: 1px solid var(--pszcb-line); border-radius: 14px;
}
#pszcb .pszcb-form:focus-within { border-color: var(--pszcb-green); }
#pszcb .pszcb-input {
	flex: 1; min-width: 0; max-height: 120px; margin: 0; padding: 7px 0;
	border: 0; background: transparent; color: var(--pszcb-ink);
	font: inherit; font-size: 16px; line-height: 1.35; resize: none; box-shadow: none;
}
#pszcb .pszcb-input:focus { outline: none; }
#pszcb .pszcb-send {
	display: grid; place-items: center; flex: none;
	width: 38px; height: 38px; padding: 0;
	border: 0; border-radius: 10px; background: var(--pszcb-green); color: var(--pszcb-cream); cursor: pointer;
}
#pszcb .pszcb-send:disabled { opacity: .5; cursor: default; }
#pszcb .pszcb-send svg { width: 20px; height: 20px; fill: currentColor; }

#pszcb .pszcb-human, #pszcb .pszcb-notice { margin: 0; padding: 0 16px; color: var(--pszcb-muted); font-size: 12.5px; }
#pszcb .pszcb-human { padding-top: 8px; }
#pszcb .pszcb-notice { padding-top: 4px; padding-bottom: 12px; font-size: 11.5px; }
#pszcb .pszcb-notice a { color: inherit; text-decoration: underline; }

@media (max-width: 600px) {
	#pszcb.is-open { inset: 0; }
	#pszcb.is-open .pszcb-panel {
		width: 100%; height: 100%; height: 100dvh;
		border: 0; border-radius: 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	#pszcb .pszcb-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
}
/* A bolt mobilos szűrőpanelje (psz-lista) alatt ne takarjon. */
body.psz-szuro-open #pszcb { display: none !important; }
@media print { #pszcb { display: none; } }
