/* PromiseGate public homepage float dock + chatbot */

.pgc-float-dock {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1100;
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-end;
	gap: 12px;
}

.pgc-float-dock .whatsapp-button {
	position: static !important;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	text-decoration: none;
}

.pgc-home-chatbot {
	position: relative;
	font-family: 'Manrope', system-ui, sans-serif;
}

.pgc-home-chatbot-launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: linear-gradient(135deg, #522574, #662D91 55%, #F7941D 140%);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(102, 45, 145, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pgc-home-chatbot-launcher:hover,
.pgc-home-chatbot-launcher:focus-visible {
	transform: scale(1.08);
	box-shadow: 0 18px 34px rgba(102, 45, 145, 0.36);
	outline: none;
}

.pgc-home-chatbot-launcher i {
	font-size: 1.55rem;
	line-height: 1;
}

.pgc-home-chatbot-panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: min(380px, calc(100vw - 28px));
	height: min(520px, calc(100vh - 120px));
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #ebe6f0;
	box-shadow: 0 22px 48px rgba(31, 19, 41, 0.22);
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	color: #2a2b2e;
}

.pgc-home-chatbot-panel.open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.pgc-home-chatbot-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 14px;
	background: linear-gradient(135deg, #522574, #662D91);
	color: #fff;
}

.pgc-home-chatbot-eyebrow {
	margin: 0 0 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.pgc-home-chatbot-header h2 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 750;
	line-height: 1.2;
}

.pgc-home-chatbot-close {
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.pgc-home-chatbot-close:hover {
	background: rgba(255, 255, 255, 0.24);
}

.pgc-home-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f8f5fb;
}

.pgc-home-chatbot-bubble {
	max-width: 88%;
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 0.92rem;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.pgc-home-chatbot-bubble.bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #ebe6f0;
	color: #2a2b2e;
	border-bottom-left-radius: 4px;
}

.pgc-home-chatbot-bubble.user {
	align-self: flex-end;
	background: #662D91;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.pgc-home-chatbot-bubble.thinking {
	opacity: 0.7;
	font-style: italic;
}

.pgc-home-chatbot-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pgc-home-chatbot-chip {
	border: 1px solid #d9cee6;
	background: #fff;
	color: #522574;
	border-radius: 999px;
	padding: 7px 11px;
	font-size: 0.78rem;
	font-weight: 650;
	cursor: pointer;
	font-family: inherit;
}

.pgc-home-chatbot-chip:hover {
	border-color: #662D91;
	background: #f5f0fa;
}

.pgc-home-chatbot-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #ebe6f0;
	background: #fff;
}

.pgc-home-chatbot-form input {
	flex: 1;
	min-width: 0;
	border: 1px solid #d9cee6;
	border-radius: 999px;
	padding: 10px 14px;
	font-size: 0.92rem;
	font-family: inherit;
	outline: none;
}

.pgc-home-chatbot-form input:focus {
	border-color: #662D91;
	box-shadow: 0 0 0 3px rgba(102, 45, 145, 0.12);
}

.pgc-home-chatbot-send {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #F7941D;
	color: #2a1608;
	cursor: pointer;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pgc-home-chatbot-send:hover {
	background: #ffaa3a;
}

.pgc-home-chatbot .visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 575.98px) {
	.pgc-float-dock {
		right: 14px;
		bottom: 14px;
	}

	.pgc-home-chatbot-panel {
		position: fixed;
		right: 14px;
		bottom: 90px;
		width: calc(100vw - 28px);
		height: min(68vh, 520px);
	}
}
