/*
 * Prithviraj AI Portfolio Chatbot - frontend styles.
 * Every rule is scoped under .pga-chatbot, .pga-float or .pga-gal so nothing leaks into the theme,
 * Elementor or other plugins, and no global reset is applied.
 * Colors/radius/font come from CSS variables set inline by the plugin (Settings -> Appearance).
 */

/* ------------------------------------------------------------------ variables */
.pga-chatbot {
	--pga-accent: #f3182d;
	--pga-text: #303030;
	--pga-bg: #ffffff;
	--pga-panel: #f4f9fc;
	--pga-muted: #777777;
	--pga-radius: 36px;
	--pga-surface: #ffffff;
	--pga-border: rgba(48, 48, 48, 0.12);
	--pga-accent-soft: rgba(243, 24, 45, 0.12);
	--pga-accent-line: rgba(243, 24, 45, 0.28);
	--pga-on-accent: #ffffff;
	--pga-btn-r: 999px 999px 0 999px;
	--pga-bubble-r: 30px 30px 0 30px;
	--pga-col: 970px;
}

@supports (color: color-mix(in srgb, red 10%, transparent)) {
	.pga-chatbot {
		--pga-accent-soft: color-mix(in srgb, var(--pga-accent) 12%, transparent);
		--pga-accent-line: color-mix(in srgb, var(--pga-accent) 28%, transparent);
	}
}

.pga-chatbot.pga-btn-pill { --pga-btn-r: 999px; --pga-bubble-r: 30px; }
.pga-chatbot.pga-btn-rounded { --pga-btn-r: 14px; --pga-bubble-r: 18px; }
.pga-chatbot.pga-btn-square { --pga-btn-r: 4px; --pga-bubble-r: 6px; }

/* Dark mode: !important so it wins over the light colors printed inline by the plugin. */
.pga-chatbot[data-theme="dark"],
.pga-chatbot[data-eff="dark"] {
	--pga-text: #f1f3f5 !important;
	--pga-bg: #101216 !important;
	--pga-panel: #181b21 !important;
	--pga-muted: #9aa1ac !important;
	--pga-surface: #20242c !important;
	--pga-border: rgba(255, 255, 255, 0.12) !important;
}
@media (prefers-color-scheme: dark) {
	.pga-chatbot[data-theme="auto"]:not([data-eff]) {
		--pga-text: #f1f3f5 !important;
		--pga-bg: #101216 !important;
		--pga-panel: #181b21 !important;
		--pga-muted: #9aa1ac !important;
		--pga-surface: #20242c !important;
		--pga-border: rgba(255, 255, 255, 0.12) !important;
	}
}

/* ------------------------------------------------------------------ base (scoped) */
.pga-chatbot,
.pga-chatbot *,
.pga-chatbot *::before,
.pga-chatbot *::after,
.pga-gal,
.pga-gal *,
.pga-float,
.pga-float * {
	box-sizing: border-box;
}

.pga-chatbot {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--pga-max-width, none);
	margin-left: auto;
	margin-right: auto;
	height: auto;
	background: var(--pga-bg);
	color: var(--pga-text);
	font-family: var(--pga-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
	-webkit-text-size-adjust: 100%;
}

.pga-chatbot [hidden],
.pga-gal[hidden],
.pga-float [hidden] {
	display: none !important;
}

.pga-chatbot p,
.pga-chatbot ul,
.pga-chatbot ol,
.pga-chatbot figure,
.pga-chatbot blockquote,
.pga-chatbot h2,
.pga-chatbot h3,
.pga-chatbot h4 {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
}
.pga-chatbot ul { list-style: none; }
.pga-chatbot img { max-width: 100%; height: auto; border: 0; box-shadow: none; }

.pga-chatbot button,
.pga-chatbot input,
.pga-chatbot textarea {
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	margin: 0;
}
.pga-chatbot button { cursor: pointer; -webkit-appearance: none; appearance: none; }

.pga-chatbot a { color: inherit; }
.pga-chatbot strong,
.pga-chatbot b { font-weight: 700; }

.pga-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.pga-hp {
	position: absolute !important;
	left: -9999px; top: auto;
	width: 1px; height: 1px;
	opacity: 0; pointer-events: none;
}

.pga-chatbot :focus-visible,
.pga-gal :focus-visible,
.pga-float :focus-visible {
	outline: 3px solid var(--pga-accent);
	outline-offset: 2px;
}

.pga-chatbot button:focus:not(:focus-visible),
.pga-chatbot a:focus:not(:focus-visible),
.pga-chatbot input:focus:not(:focus-visible),
.pga-chatbot textarea:focus:not(:focus-visible),
.pga-gal button:focus:not(:focus-visible) {
	outline: 0;
}

.pga-chatbot .pga-ico { flex: none; display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------------ theme toggle / clear */
.pga-chatbot .pga-toggle {
	position: relative;
	flex: none;
	margin-left: auto;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid var(--pga-border);
	border-radius: 50%;
	background: var(--pga-panel);
	color: var(--pga-text);
	box-shadow: none;
	transition: background-color .2s, transform .2s;
}
.pga-chatbot .pga-toggle:hover,
.pga-chatbot .pga-toggle:focus-visible {
	background: var(--pga-accent-soft);
	color: var(--pga-text);
	transform: rotate(18deg);
}
.pga-chatbot .pga-toggle__moon { display: none; }
.pga-chatbot[data-eff="dark"] .pga-toggle__sun { display: none; }
.pga-chatbot[data-eff="dark"] .pga-toggle__moon { display: block; }

.pga-chatbot .pga-clear {
	position: relative;
	flex: none;
	padding: 8px 16px;
	border: 1px solid var(--pga-border);
	border-radius: 999px;
	background: var(--pga-panel);
	color: var(--pga-muted);
	font-size: .85rem;
	box-shadow: none;
}
.pga-chatbot .pga-clear:hover,
.pga-chatbot .pga-clear:focus-visible {
	background: var(--pga-accent-soft);
	color: var(--pga-text);
}

/* ------------------------------------------------------------------ chat-layout header */
.pga-chatbot .pga-head {
	flex: none;
	display: flex; align-items: center; gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--pga-border);
	background: var(--pga-panel);
}
.pga-chatbot .pga-head__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pga-chatbot .pga-head__text small { color: var(--pga-muted); font-size: .8rem; }
.pga-chatbot .pga-head__btn {
	padding: 6px 14px;
	border: 1px solid var(--pga-border);
	border-radius: 999px;
	background: var(--pga-surface);
	color: var(--pga-muted);
	font-size: .8rem;
	box-shadow: none;
}
.pga-chatbot .pga-head__btn:hover,
.pga-chatbot .pga-head__btn:focus-visible { background: var(--pga-accent-soft); color: var(--pga-text); }
.pga-chatbot .pga-head__close { display: inline-flex; padding: 6px; border-radius: 50%; }
.pga-chatbot .pga-head .pga-toggle { width: 36px; height: 36px; margin-left: 0; }
.pga-chatbot.pga-layout-chat { --pga-col: 100%; height: var(--pga-height, 680px); min-height: 0; overflow: hidden; border: 1px solid var(--pga-border); border-radius: calc(var(--pga-radius) * .6); }

/* ------------------------------------------------------------------ avatar */
.pga-chatbot .pga-avatar {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px;
	border: 1.5px solid var(--pga-accent-line);
	border-radius: 50%;
	background: var(--pga-panel);
	color: var(--pga-accent);
	font-weight: 700; font-size: .9rem;
	overflow: hidden;
}
.pga-chatbot .pga-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pga-chatbot .pga-avatar--head { width: 40px; height: 40px; }

/* ------------------------------------------------------------------ hero stage (normal page flow) */
.pga-chatbot .pga-stage { display: block; width: 100%; }
@media (prefers-reduced-motion: reduce) {
	.pga-chatbot .pga-thread { scroll-behavior: auto; }
	.pga-chatbot *, .pga-chatbot *::before, .pga-chatbot *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ hero */
.pga-chatbot .pga-hero {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: 18px 24px 0;
}

.pga-chatbot .pga-badge {
	position: relative;
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid var(--pga-border);
	border-radius: 999px;
	background: var(--pga-panel);
	color: var(--pga-text);
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.2;
}
.pga-chatbot .pga-badge__mark {
	position: absolute;
	top: -14px; right: -16px;
	color: var(--pga-accent);
}

.pga-chatbot .pga-title {
	position: relative;
	z-index: 1;
	margin: 6px 0 0;
	text-align: center;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--pga-text);
}
.pga-chatbot .pga-title__l1 {
	display: block;
	font-size: clamp(2.2rem, 5.4vw, 4.8rem);
}
.pga-chatbot .pga-title__l2 {
	display: block;
	max-width: 1100px;
	margin: .08em auto 0;
	font-size: clamp(1.2rem, 3vw, 2.4rem);
	line-height: 1.12;
}
.pga-chatbot .pga-accent { color: var(--pga-accent); }

.pga-chatbot .pga-hero__row {
	flex: 1 0 auto;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	column-gap: 28px;
	margin-top: 0;
}
.pga-chatbot .pga-hero__left { align-self: center; padding-bottom: 28px; max-width: 400px; }
.pga-chatbot .pga-hero__right {
	align-self: center;
	padding-bottom: 28px;
	display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.pga-chatbot .pga-hero__right .pga-btn + .pga-btn { margin-left: 80px; }

.pga-chatbot .pga-quote { margin: 0; }
.pga-chatbot .pga-quote__mark { display: block; color: var(--pga-accent); margin-bottom: 14px; }
.pga-chatbot .pga-quote blockquote { font-style: italic; font-size: 1.05rem; line-height: 1.85; }
.pga-chatbot .pga-quote figcaption { margin-top: 18px; font-size: .98rem; }
.pga-chatbot .pga-hero__intro {
	font-size: 1.1rem; line-height: 1.8;
	padding-left: 18px;
	border-left: 4px solid var(--pga-accent);
}

.pga-chatbot .pga-portrait {
	margin-top: 0; /* the portrait sits below the heading so no text is ever covered */
	position: relative;
	z-index: 2;
	align-self: end;
	display: flex; align-items: flex-end; justify-content: center;
	width: clamp(240px, 34vw, 440px);
	min-height: clamp(210px, 24vw, 400px);
}
.pga-chatbot .pga-portrait__blob {
	position: absolute;
	left: 50%; bottom: 0;
	width: 94%; height: 62%;
	transform: translateX(-50%);
	background: var(--pga-accent);
	border-radius: 58% 42% 48% 52% / 70% 62% 38% 30%;
}
.pga-chatbot .pga-portrait__img {
	position: relative;
	display: block;
	max-height: clamp(220px, 26vw, 400px);
	width: auto; max-width: 100%;
	object-fit: contain; object-position: bottom center;
	-webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.pga-chatbot .pga-portrait__ph { color: rgba(48, 48, 48, .18); width: 70%; }
.pga-chatbot[data-eff="dark"] .pga-portrait__ph { color: rgba(255, 255, 255, .18); }

/* ------------------------------------------------------------------ thread */
.pga-chatbot .pga-thread {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	padding: 22px 24px 6px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

.pga-chatbot .pga-msg { display: flex; margin: 0 0 26px; animation: pga-in .28s ease both; }
@keyframes pga-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pga-chatbot .pga-msg--user { justify-content: flex-end; }
.pga-chatbot .pga-bubble {
	max-width: min(80%, 620px);
	padding: 13px 30px 14px;
	border-radius: var(--pga-bubble-r);
	background: var(--pga-accent);
	color: var(--pga-on-accent);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.pga-chatbot .pga-msg--bot { gap: 18px; align-items: flex-start; }
.pga-chatbot .pga-msg__body { flex: 1 1 auto; min-width: 0; }
.pga-chatbot .pga-msg__content > * + * { margin-top: 18px; }
.pga-chatbot .pga-text { max-width: 760px; font-size: 1.07rem; line-height: 1.62; overflow-wrap: anywhere; padding-top: 6px; }
.pga-chatbot .pga-p + .pga-p,
.pga-chatbot .pga-p + .pga-list,
.pga-chatbot .pga-list + .pga-p { margin-top: .6em; }
.pga-chatbot .pga-list { padding-left: 1.3em; }
.pga-chatbot ul.pga-list { list-style: disc; }
.pga-chatbot ol.pga-list { list-style: decimal; }
.pga-chatbot .pga-list li + li { margin-top: .3em; }
.pga-chatbot .pga-link { color: var(--pga-accent); text-decoration: underline; text-underline-offset: 2px; }
.pga-chatbot .pga-msg--error .pga-text { color: var(--pga-accent); }

/* typing dots */
.pga-chatbot .pga-dots { display: inline-flex; align-items: center; gap: 6px; padding: 18px 4px; }
.pga-chatbot .pga-dots span {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--pga-accent);
	opacity: .35;
	animation: pga-dot 1.1s infinite ease-in-out;
}
.pga-chatbot .pga-dots span:nth-child(2) { animation-delay: .16s; }
.pga-chatbot .pga-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes pga-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-6px); opacity: 1; } }

/* ------------------------------------------------------------------ buttons */
.pga-chatbot .pga-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 38px 14px;
	border: 1.5px solid var(--pga-accent);
	border-radius: var(--pga-btn-r);
	background: transparent;
	color: var(--pga-accent);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.25;
	text-decoration: none;
	text-align: center;
	box-shadow: none;
	transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.pga-chatbot .pga-btn--primary { background: var(--pga-accent); color: var(--pga-on-accent); }
.pga-chatbot .pga-btn--neutral { border-color: var(--pga-border); background: var(--pga-surface); color: var(--pga-text); }
.pga-chatbot .pga-btn:hover,
.pga-chatbot .pga-btn:focus-visible {
	background: var(--pga-accent);
	border-color: var(--pga-accent);
	color: var(--pga-on-accent);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px -8px var(--pga-accent);
}
.pga-chatbot .pga-btn--neutral:hover,
.pga-chatbot .pga-btn--neutral:focus-visible { background: var(--pga-accent-soft); border-color: var(--pga-accent-line); color: var(--pga-text); box-shadow: none; }
.pga-chatbot .pga-btn[disabled],
.pga-chatbot .pga-btn.is-used { opacity: .45; pointer-events: none; transform: none; box-shadow: none; }

.pga-chatbot .pga-actions { display: flex; flex-wrap: wrap; gap: 16px 18px; margin-top: 26px; }

.pga-chatbot .pga-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pga-chatbot .pga-chip {
	padding: 7px 15px;
	border: 1px solid var(--pga-border);
	border-radius: 999px;
	background: var(--pga-surface);
	color: var(--pga-text);
	font-size: .9rem;
	line-height: 1.3;
	text-align: left;
	box-shadow: none;
	transition: border-color .2s, background-color .2s, color .2s;
}
.pga-chatbot .pga-chip:hover,
.pga-chatbot .pga-chip:focus-visible { border-color: var(--pga-accent); background: var(--pga-accent-soft); color: var(--pga-text); }

/* ------------------------------------------------------------------ dock (input + navigation) */
.pga-chatbot .pga-dock {
	flex: none;
	position: relative;
	z-index: 4;
	width: 100%;
	padding: 0 20px 12px;
	background: transparent;
}
.pga-chatbot .pga-box {
	padding: 22px 26px 26px;
	border: 1px solid var(--pga-border);
	border-radius: var(--pga-radius);
	background: var(--pga-panel);
	box-shadow: 0 6px 30px -12px rgba(30, 50, 70, .22);
}
.pga-chatbot .pga-form { display: flex; align-items: center; gap: 14px; position: relative; margin: 0; padding: 0; }
.pga-chatbot .pga-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 50px;
	padding: 0 4px;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--pga-text);
	font-size: 1.12rem;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
}
.pga-chatbot .pga-input::placeholder { color: var(--pga-muted); opacity: .65; }
.pga-chatbot .pga-input { text-overflow: ellipsis; }
.pga-chatbot .pga-input:focus-visible { outline: 0; }
.pga-chatbot .pga-box:focus-within { border-color: var(--pga-accent-line); box-shadow: 0 6px 30px -12px rgba(30, 50, 70, .22), 0 0 0 3px var(--pga-accent-soft); }

.pga-chatbot .pga-send {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pga-accent);
	color: var(--pga-on-accent);
	opacity: .8;
	box-shadow: none;
	transition: opacity .2s, transform .2s;
}
.pga-chatbot .pga-send:hover,
.pga-chatbot .pga-send:focus-visible { background: var(--pga-accent); color: var(--pga-on-accent); opacity: 1; transform: translateY(-1px); }
.pga-chatbot.pga-is-busy .pga-send { opacity: .4; pointer-events: none; }

.pga-chatbot .pga-nav { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 16px; }
.pga-chatbot .pga-nav__btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 24px;
	border: 1px solid var(--pga-border);
	border-radius: 999px;
	background: var(--pga-surface);
	color: var(--pga-text);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: none;
	transition: border-color .2s, background-color .2s, transform .2s;
}
.pga-chatbot .pga-nav__btn .pga-ico { color: var(--pga-accent); opacity: .85; }
.pga-chatbot .pga-nav__btn:hover,
.pga-chatbot .pga-nav__btn:focus-visible { border-color: var(--pga-accent); background: var(--pga-accent-soft); color: var(--pga-text); transform: translateY(-1px); }

.pga-chatbot .pga-hint {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	margin: 14px 8px 0;
	color: var(--pga-muted);
	font-size: .9rem;
	text-align: center;
}
.pga-chatbot .pga-privacy { margin: 6px 8px 0; color: var(--pga-muted); font-size: .75rem; text-align: center; opacity: .85; }

.pga-chatbot .pga-consent {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 0 6px 10px;
	padding: 10px 16px;
	border: 1px solid var(--pga-border);
	border-radius: 18px;
	background: var(--pga-panel);
	font-size: .82rem;
}
.pga-chatbot .pga-consent__text { flex: 1 1 240px; color: var(--pga-muted); }
.pga-chatbot .pga-consent__btn {
	padding: 6px 16px;
	border: 1px solid var(--pga-border);
	border-radius: 999px;
	background: var(--pga-surface);
	color: var(--pga-text);
	font-size: .82rem;
	box-shadow: none;
}
.pga-chatbot .pga-consent__btn--yes { background: var(--pga-accent); border-color: var(--pga-accent); color: var(--pga-on-accent); }
.pga-chatbot .pga-consent__btn:hover,
.pga-chatbot .pga-consent__btn:focus-visible { border-color: var(--pga-accent); color: var(--pga-text); background: var(--pga-accent-soft); }
.pga-chatbot .pga-consent__btn--yes:hover,
.pga-chatbot .pga-consent__btn--yes:focus-visible { background: var(--pga-accent); color: var(--pga-on-accent); opacity: .9; }

/* ------------------------------------------------------------------ rich blocks */
/* highlights (About Me) */
.pga-chatbot .pga-hl { display: grid; gap: 14px; }
.pga-chatbot .pga-hl__item { display: flex; align-items: center; gap: 14px; font-size: 1.07rem; }
.pga-chatbot .pga-hl__item .pga-ico { color: var(--pga-text); }

/* project card */
.pga-chatbot .pga-card {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 905px;
	padding: 22px;
	border: 1px solid var(--pga-accent-line);
	border-radius: 48px;
	background: var(--pga-panel);
}
.pga-chatbot .pga-card__media { position: relative; flex: 0 0 46%; max-width: 418px; }
.pga-chatbot .pga-card__imgbtn {
	display: block; width: 100%;
	padding: 0; border: 0; background: transparent;
	border-radius: 34px;
	overflow: hidden;
	box-shadow: none;
}
.pga-chatbot .pga-card__imgbtn:hover,
.pga-chatbot .pga-card__imgbtn:focus-visible { background: transparent; }
.pga-chatbot .pga-card__img {
	display: block; width: 100%;
	aspect-ratio: 16 / 10.4;
	object-fit: cover;
	border-radius: 34px;
	transition: transform .4s ease;
}
.pga-chatbot .pga-card__imgbtn:hover .pga-card__img { transform: scale(1.03); }
.pga-chatbot .pga-card__gal {
	position: absolute;
	top: 50%; left: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	background: var(--pga-accent);
	color: var(--pga-on-accent);
	pointer-events: none;
	box-shadow: 0 8px 20px -8px var(--pga-accent);
	transition: transform .25s;
}
.pga-chatbot .pga-card__media:hover .pga-card__gal { transform: scale(1.08); }
.pga-chatbot .pga-card__body { flex: 1 1 auto; min-width: 0; padding: 6px 12px 6px 0; }
.pga-chatbot .pga-card__title { margin: 0 0 12px; font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.pga-chatbot .pga-card__meta { margin: -4px 0 10px; color: var(--pga-muted); font-size: .88rem; }
.pga-chatbot .pga-card__desc { font-size: 1.04rem; line-height: 1.85; }
.pga-chatbot .pga-card__results { margin-top: 10px; font-size: .95rem; }
.pga-chatbot .pga-card__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.pga-chatbot .pga-card__link {
	display: inline-flex; align-items: center; gap: 7px;
	color: var(--pga-muted);
	font-weight: 600;
	text-decoration: none;
}
.pga-chatbot .pga-card__link:hover,
.pga-chatbot .pga-card__link:focus-visible { color: var(--pga-accent); }
.pga-chatbot .pga-card:not(:has(.pga-card__media)) { border-radius: 32px; }

/* tags */
.pga-chatbot .pga-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pga-chatbot .pga-tag {
	padding: 5px 14px;
	border: 1px solid var(--pga-border);
	border-radius: 999px;
	background: var(--pga-surface);
	font-size: .92rem;
}
.pga-chatbot .pga-tags--sm .pga-tag { padding: 3px 11px; font-size: .8rem; }
.pga-chatbot .pga-tag__detail { color: var(--pga-muted); }
.pga-chatbot .pga-skills__title { margin: 16px 0 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pga-muted); }
.pga-chatbot .pga-skills__title:first-child { margin-top: 0; }

/* services / experience / testimonials */
.pga-chatbot .pga-list-cards { display: grid; gap: 14px; max-width: 760px; }
.pga-chatbot .pga-mini {
	padding: 18px 22px;
	border: 1px solid var(--pga-border);
	border-radius: 24px;
	background: var(--pga-panel);
}
.pga-chatbot .pga-mini__title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.pga-chatbot .pga-mini__text { font-size: .98rem; }
.pga-chatbot .pga-mini__meta { margin-top: 8px; color: var(--pga-muted); font-size: .88rem; }
.pga-chatbot .pga-mini .pga-list { margin-top: 8px; font-size: .95rem; }
.pga-chatbot .pga-mini--quote blockquote { font-style: italic; }
.pga-chatbot .pga-mini--quote figcaption { margin-top: 8px; font-size: .9rem; color: var(--pga-muted); }

/* clients */
.pga-chatbot .pga-logos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 200px));
	gap: 26px 28px;
	align-items: center;
	margin: 6px 0;
}
.pga-chatbot .pga-logos__item { display: flex; align-items: center; min-height: 56px; }
.pga-chatbot .pga-logos__img { display: block; width: auto; max-width: 100%; max-height: 56px; object-fit: contain; }
.pga-chatbot .pga-logos__link { display: inline-flex; align-items: center; text-decoration: none; }
.pga-chatbot .pga-logos__name { font-weight: 700; font-size: 1.15rem; }
.pga-chatbot[data-eff="dark"] .pga-logos__item { padding: 8px 12px; border-radius: 12px; background: #ffffff; }
.pga-chatbot[data-eff="dark"] .pga-logos__name { color: #303030; }

/* contact */
.pga-chatbot .pga-contact { display: grid; gap: 14px; }
.pga-chatbot .pga-contact__row { display: flex; align-items: center; gap: 12px; font-size: 1.07rem; }
.pga-chatbot .pga-contact__value { font-weight: 700; text-decoration: none; color: var(--pga-text); }
.pga-chatbot .pga-contact__value:hover,
.pga-chatbot .pga-contact__value:focus-visible { color: var(--pga-accent); }
.pga-chatbot .pga-social { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.pga-chatbot .pga-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: rgba(127, 127, 127, .16);
	color: var(--pga-text);
	text-decoration: none;
	transition: background-color .2s, color .2s, transform .2s;
}
.pga-chatbot .pga-social__link:hover,
.pga-chatbot .pga-social__link:focus-visible { background: var(--pga-accent); color: var(--pga-on-accent); transform: translateY(-2px); }

/* contact form */
.pga-chatbot .pga-form2 {
	display: grid; gap: 12px;
	max-width: 560px;
	padding: 20px 22px;
	border: 1px solid var(--pga-border);
	border-radius: 26px;
	background: var(--pga-panel);
}
.pga-chatbot .pga-form2__field { display: grid; gap: 4px; }
.pga-chatbot .pga-form2__label { font-size: .85rem; color: var(--pga-muted); font-weight: 600; }
.pga-chatbot .pga-form2__input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--pga-border);
	border-radius: 14px;
	background: var(--pga-surface);
	color: var(--pga-text);
	font-size: 1rem;
	box-shadow: none;
}
.pga-chatbot .pga-form2__input:focus-visible { border-color: var(--pga-accent); outline: 0; box-shadow: 0 0 0 3px var(--pga-accent-soft); }
.pga-chatbot .pga-form2__check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--pga-muted); }
.pga-chatbot .pga-form2__check input { margin-top: 3px; accent-color: var(--pga-accent); }
.pga-chatbot .pga-form2__status { min-height: 1.2em; font-size: .9rem; }
.pga-chatbot .pga-form2__status.is-error { color: var(--pga-accent); }
.pga-chatbot .pga-form2__status.is-ok { color: #1a8a4a; font-weight: 600; padding: 10px 14px; border: 1px solid #1a8a4a; border-radius: 12px; background: rgba(26, 138, 74, .08); }
.pga-chatbot .pga-form2 .pga-btn { justify-self: start; }

/* sources */
.pga-chatbot .pga-sources { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--pga-border); max-width: 760px; font-size: .88rem; }
.pga-chatbot .pga-sources__title { font-weight: 700; color: var(--pga-muted); }
.pga-chatbot .pga-sources__list { list-style: decimal; padding-left: 1.2em; margin-top: 4px; }
.pga-chatbot .pga-sources__note { margin-top: 6px; color: var(--pga-muted); font-size: .8rem; }

/* ------------------------------------------------------------------ gallery modal */
.pga-gal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	background: rgba(8, 10, 14, .86);
	font-family: var(--pga-font, system-ui, sans-serif);
}
.pga-gal__inner {
	position: relative;
	width: min(1000px, 100%);
	max-height: 100%;
	padding: 20px 20px 16px;
	border-radius: 24px;
	background: #14171c;
	color: #f1f3f5;
	text-align: center;
	display: flex; flex-direction: column; gap: 10px;
}
.pga-gal__title { margin: 0 44px 0 0; font-size: 1.15rem; font-weight: 700; text-align: left; color: #fff; }
.pga-gal__close {
	position: absolute; top: 14px; right: 14px;
	display: inline-flex; padding: 8px;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff; cursor: pointer;
}
.pga-gal__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pga-gal__img { display: block; max-width: 100%; max-height: 68vh; border-radius: 14px; object-fit: contain; }
.pga-gal__nav {
	position: absolute; top: 50%;
	display: inline-flex; padding: 8px;
	margin-top: -22px;
	border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff; cursor: pointer;
}
.pga-gal__nav--prev { left: 10px; }
.pga-gal__nav--next { right: 10px; }
.pga-gal__close:hover, .pga-gal__nav:hover { background: var(--pga-accent, #f3182d); }
.pga-gal__cap { margin: 0; font-size: .95rem; color: #d8dce2; }
.pga-gal__count { margin: 0; font-size: .8rem; color: #9aa1ac; }

/* ------------------------------------------------------------------ floating launcher */
.pga-float { position: fixed; bottom: 20px; z-index: 99990; font-family: system-ui, sans-serif; }
.pga-float--right { right: 20px; }
.pga-float--left { left: 20px; }
.pga-float .pga-float__button {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--pga-accent, #f3182d);
	color: #fff;
	font-size: 1rem; font-weight: 600;
	cursor: pointer;
	box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45);
	transition: transform .2s;
}
.pga-float .pga-float__button:hover,
.pga-float .pga-float__button:focus-visible { background: var(--pga-accent, #f3182d); color: #fff; transform: translateY(-2px); }
.pga-float__window {
	position: absolute; bottom: 64px;
	width: min(410px, calc(100vw - 24px));
	height: min(660px, calc(100vh - 110px));
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 24px 60px -14px rgba(0, 0, 0, .45);
}
.pga-float--right .pga-float__window { right: 0; }
.pga-float--left .pga-float__window { left: 0; }
.pga-chatbot.pga-is-floating { height: 100%; min-height: 0; overflow: hidden; border-radius: 26px; border: 1px solid var(--pga-border); --pga-col: 100%; }
.pga-chatbot.pga-is-floating .pga-thread { padding: 16px 14px 10px; }
.pga-chatbot.pga-is-floating .pga-panel { flex: 1 1 auto; }
.pga-chatbot.pga-is-floating .pga-dock { padding: 0 10px 10px; }
.pga-chatbot.pga-is-floating .pga-box { padding: 12px 14px 14px; border-radius: 22px; }
.pga-chatbot.pga-is-floating .pga-input { height: 40px; font-size: 1rem; }
.pga-chatbot.pga-is-floating .pga-nav { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-top: 8px; padding-bottom: 2px; scrollbar-width: none; }
.pga-chatbot.pga-is-floating .pga-nav__btn { flex: none; padding: 7px 14px; font-size: .85rem; }
.pga-chatbot.pga-is-floating .pga-hint { display: none; }
.pga-chatbot.pga-is-floating .pga-card { flex-direction: column; align-items: stretch; border-radius: 28px; padding: 14px; gap: 14px; }
.pga-chatbot.pga-is-floating .pga-card__media { flex: none; max-width: none; }
.pga-chatbot.pga-is-floating .pga-card__img, .pga-chatbot.pga-is-floating .pga-card__imgbtn { border-radius: 20px; }
.pga-chatbot.pga-is-floating .pga-card__title { font-size: 1.3rem; }
.pga-chatbot.pga-is-floating .pga-msg--bot { gap: 10px; }
.pga-chatbot.pga-is-floating .pga-avatar { width: 36px; height: 36px; }
.pga-chatbot.pga-is-floating .pga-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pga-chatbot.pga-is-floating .pga-btn { padding: 10px 22px 11px; font-size: .95rem; }

/* ------------------------------------------------------------------ chatting state */

/* ------------------------------------------------------------------ tablet */
/* applies when the component itself is narrower than 1025px (JS sets pga-w-md / pga-w-sm) */
.pga-chatbot.pga-w-md .pga-hero__right .pga-btn + .pga-btn,
.pga-chatbot.pga-w-sm .pga-hero__right .pga-btn + .pga-btn { margin-left: 24px; }
.pga-chatbot.pga-w-md .pga-card,
.pga-chatbot.pga-w-sm .pga-card { gap: 20px; border-radius: 40px; }
.pga-chatbot.pga-w-md .pga-card__title,
.pga-chatbot.pga-w-sm .pga-card__title { font-size: 1.45rem; }


/* ------------------------------------------------------------------ mobile */
/* applies when the component itself is narrower than 768px */
.pga-chatbot.pga-w-sm { font-size: 15px; }
.pga-chatbot.pga-w-sm .pga-hero { padding: 54px 16px 0; }
.pga-chatbot.pga-w-sm .pga-title__l1 { font-size: clamp(2.1rem, 11vw, 3rem); }
.pga-chatbot.pga-w-sm .pga-title__l2 { font-size: clamp(1.25rem, 6.2vw, 1.8rem); }
.pga-chatbot.pga-w-sm .pga-hero__row {
	display: flex; flex-direction: column; align-items: center;
	margin-top: 8px;
	row-gap: 8px;
}
.pga-chatbot.pga-w-sm .pga-portrait { margin-top: 0; order: 1; align-self: center; width: min(210px, 60%); min-height: 150px; }
.pga-chatbot.pga-w-sm .pga-portrait__img { max-height: 190px; }
.pga-chatbot.pga-w-sm .pga-hero__left { order: 2; padding: 14px 4px 6px; max-width: 520px; text-align: center; }
.pga-chatbot.pga-w-sm .pga-quote__mark { margin-left: auto; margin-right: auto; }
.pga-chatbot.pga-w-sm .pga-hero__intro { border-left: 0; padding-left: 0; }
.pga-chatbot.pga-w-sm .pga-hero__right { order: 3; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 10px 0 30px; align-self: auto; }
.pga-chatbot.pga-w-sm .pga-hero__right .pga-btn + .pga-btn { margin-left: 0; }
.pga-chatbot.pga-w-sm .pga-hero__right .pga-btn { padding: 12px 26px; }
.pga-chatbot.pga-w-sm.pga-mobile-compact .pga-portrait { display: none; }
.pga-chatbot.pga-w-sm.pga-mobile-chat_only .pga-hero { display: none; }

.pga-chatbot.pga-w-sm .pga-box { padding: 14px 16px 16px; border-radius: min(var(--pga-radius), 28px); }
.pga-chatbot.pga-w-sm .pga-input { height: 42px; font-size: 1rem; }
.pga-chatbot.pga-w-sm .pga-nav { gap: 8px; margin-top: 10px; }
.pga-chatbot.pga-w-sm .pga-nav__btn { padding: 8px 14px; font-size: .88rem; gap: 7px; }
.pga-chatbot.pga-w-sm .pga-hint { font-size: .78rem; margin-top: 10px; }

.pga-chatbot.pga-w-sm .pga-msg--bot { gap: 10px; }
.pga-chatbot.pga-w-sm .pga-avatar { width: 36px; height: 36px; }
.pga-chatbot.pga-w-sm .pga-bubble { max-width: 88%; padding: 11px 22px 12px; font-size: 1rem; }
.pga-chatbot.pga-w-sm .pga-text { font-size: 1rem; }
.pga-chatbot.pga-w-sm .pga-msg__content > * + * { margin-top: 14px; }

.pga-chatbot.pga-w-sm .pga-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; border-radius: 28px; }
.pga-chatbot.pga-w-sm .pga-card__media { flex: none; max-width: none; }
.pga-chatbot.pga-w-sm .pga-card__img, .pga-chatbot.pga-w-sm .pga-card__imgbtn { border-radius: 20px; }
.pga-chatbot.pga-w-sm .pga-card__body { padding: 0 6px 6px; }
.pga-chatbot.pga-w-sm .pga-card__title { font-size: 1.3rem; }
.pga-chatbot.pga-w-sm .pga-card__desc { line-height: 1.65; }
.pga-chatbot.pga-w-sm .pga-card__gal { width: 52px; height: 52px; margin: -26px 0 0 -26px; }

.pga-chatbot.pga-w-sm .pga-actions { gap: 10px; margin-top: 18px; }
.pga-chatbot.pga-w-sm .pga-actions .pga-btn { flex: 1 1 auto; padding: 12px 18px 13px; font-size: .98rem; }
.pga-chatbot.pga-w-sm .pga-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pga-chatbot.pga-w-sm .pga-social { gap: 12px; }

@media (max-width: 767px) {
	.pga-gal { padding: 10px; }
	.pga-gal__img { max-height: 58vh; }
}

/* extra-small component width (JS sets pga-w-xs below 381px) */
.pga-chatbot.pga-w-xs .pga-nav__btn .pga-ico { display: none; }
.pga-chatbot.pga-w-xs .pga-actions .pga-btn { flex-basis: 100%; }

@media (max-width: 480px) {
	.pga-float { bottom: 12px; }
	.pga-float--right { right: 12px; }
	.pga-float--left { left: 12px; }
	.pga-float .pga-float__button span { display: none; }
	.pga-float .pga-float__button { padding: 14px; }
}

/* Print: show the content, not the chat chrome. */
@media print {
	.pga-chatbot .pga-dock, .pga-chatbot .pga-corner, .pga-chatbot .pga-clear, .pga-float { display: none !important; }
	.pga-chatbot { height: auto; overflow: visible; }
	.pga-chatbot .pga-thread { max-height: none !important; overflow: visible !important; }
}


/* ================================================================== layout v1.1 — simple, in-flow, no overlap */
/* The component never sets its own page height. Hero + chat card flow like any other block, so it behaves
   inside themes, Elementor columns, sidebars and narrow phone screens. The conversation scrolls inside the
   chat card, never the page. */

.pga-chatbot .pga-panel {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100%;
}

/* chat layout (embedded box): header / panel / hint fill the fixed-height box */
.pga-chatbot.pga-layout-chat .pga-panel { flex: 1 1 auto; }
.pga-chatbot.pga-layout-chat .pga-hint { padding-bottom: 8px; }

/* hero layout: the chat card */
.pga-chatbot.pga-layout-hero .pga-panel {
	width: calc(100% - 40px);
	max-width: var(--pga-col);
	margin: 0 auto;
	flex: none;
	overflow: hidden;
	border: 1px solid var(--pga-border);
	border-radius: var(--pga-radius);
	background: var(--pga-panel);
	box-shadow: 0 6px 30px -12px rgba(30, 50, 70, .22);
	transition: border-color .2s, box-shadow .2s;
}
.pga-chatbot.pga-layout-hero .pga-panel:focus-within {
	border-color: var(--pga-accent-line);
	box-shadow: 0 6px 30px -12px rgba(30, 50, 70, .22), 0 0 0 3px var(--pga-accent-soft);
}
.pga-chatbot.pga-layout-hero .pga-dock { padding: 0; }
.pga-chatbot.pga-layout-hero .pga-box,
.pga-chatbot.pga-layout-hero .pga-box:focus-within {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.pga-chatbot.pga-layout-hero .pga-consent { margin: 14px 18px 0; }
.pga-chatbot.pga-layout-hero .pga-thread {
	max-height: 460px;
	border-bottom: 1px solid var(--pga-border);
}
.pga-chatbot.pga-layout-hero .pga-thread[hidden] { display: none; }
.pga-chatbot.pga-layout-hero .pga-hint { padding-bottom: 20px; }

/* phones / narrow columns */
.pga-chatbot.pga-w-sm .pga-toggle { width: 40px; height: 40px; }
.pga-chatbot.pga-layout-hero.pga-w-sm .pga-panel { width: calc(100% - 20px); }
.pga-chatbot.pga-layout-hero.pga-w-sm .pga-thread { padding: 16px 14px 6px; max-height: 380px; }
.pga-chatbot.pga-layout-hero.pga-w-sm .pga-box { padding: 14px 14px 16px; }

.pga-chatbot.pga-w-sm .pga-head { padding: 10px 12px; }


/* ================================================================== layout v1.2 - in-flow toolbar (no absolute positioning) */
.pga-chatbot .pga-toolbar {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--pga-border);
}
.pga-chatbot .pga-toolbar__title {
	flex: 1 1 auto; min-width: 0;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-size: .95rem; line-height: 1.3;
}
.pga-chatbot .pga-toolbar__title small { margin-left: 6px; color: var(--pga-muted); font-size: .8rem; }
.pga-chatbot .pga-toolbar .pga-clear { padding: 6px 14px; font-size: .8rem; white-space: nowrap; }
.pga-chatbot .pga-toolbar .pga-toggle { width: 36px; height: 36px; margin-left: 0; }
.pga-chatbot .pga-toolbar .pga-toggle svg { width: 18px; height: 18px; }
.pga-chatbot.pga-layout-hero .pga-panel { scroll-margin-top: 16px; }
.pga-chatbot.pga-layout-hero .pga-hero { padding-left: 24px; padding-right: 24px; }

/* phones: no avatar column, so cards and the contact form get the full chat width */
.pga-chatbot.pga-w-sm .pga-msg--bot > .pga-avatar { display: none; }
.pga-chatbot.pga-w-sm .pga-msg--bot { gap: 0; }
