#gtc-chatbot-root {
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#gtc-chatbot-root.gtc-pos-right { right: 24px; }
#gtc-chatbot-root.gtc-pos-left  { left: 24px; }

#gtc-toggle-btn {
	background: var(--gtc-primary, #FFAF05);
	color: var(--gtc-text-on-primary, #000);
	border: none;
	border-radius: 16px;
	padding: 14px 18px 12px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.22);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	text-align: center;
}
#gtc-toggle-btn:hover {
	transform: scale(1.04);
	box-shadow: 0 6px 24px rgba(0,0,0,0.30);
}
#gtc-toggle-btn:active { transform: scale(0.98); }

/* ── Logo ───────────────────────────────────────────────────── */
.gtc-toggle-logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	margin-bottom: 6px;
}

/* ── Label text below logo ──────────────────────────────────── */
.gtc-toggle-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	max-width: 80px;
	word-wrap: break-word;
	margin-top: 4px;
}

/* ── Open / Close content toggle ────────────────────────────── */
.gtc-toggle-open  { display: flex; flex-direction: column; align-items: center; }
.gtc-toggle-close { display: none; font-size: 28px; line-height: 1; font-weight: bold; }
#gtc-chatbot-root.gtc-open .gtc-toggle-open  { display: none; }
#gtc-chatbot-root.gtc-open .gtc-toggle-close { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; }
/* When open, button becomes a round close circle */
#gtc-chatbot-root.gtc-open #gtc-toggle-btn {
	padding: 10px;
	border-radius: 50%;
}

#gtc-chat-window {
	display: none;
	flex-direction: column;
	position: absolute;
	bottom: 110px;
	width: 340px;
	max-width: calc(100vw - 32px);
	height: 480px;
	max-height: 70vh;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
	overflow: hidden;
}
#gtc-chatbot-root.gtc-pos-right #gtc-chat-window { right: 0; }
#gtc-chatbot-root.gtc-pos-left  #gtc-chat-window { left: 0; }
#gtc-chatbot-root.gtc-open #gtc-chat-window { display: flex; }

#gtc-chat-header {
	background: var(--gtc-primary, #FFAF05);
	color: var(--gtc-text-on-primary, #000);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	flex-shrink: 0;
}
#gtc-chat-header img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
}
#gtc-chat-header strong { display: block; font-size: 14px; }
#gtc-chat-header .gtc-status { font-size: 11px; opacity: 0.8; }

#gtc-chat-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f7f7f8;
}

.gtc-bubble {
	background: var(--gtc-secondary, #000);
	color: var(--gtc-text-on-secondary, #fff);
	padding: 10px 13px;
	border-radius: 12px 12px 12px 2px;
	font-size: 14px;
	line-height: 1.4;
	max-width: 85%;
	align-self: flex-start;
	white-space: pre-wrap;
}

.gtc-buttons-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: stretch;
}

.gtc-option-btn {
	background: #fff;
	border: 2px solid var(--gtc-primary, #FFAF05);
	color: #222;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13.5px;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease;
}
.gtc-option-btn:hover {
	background: var(--gtc-primary, #FFAF05);
	color: var(--gtc-text-on-primary, #000);
}

#gtc-chat-nav {
	display: flex;
	border-top: 1px solid #e5e5e5;
	flex-shrink: 0;
}
#gtc-chat-nav button {
	flex: 1;
	background: #fff;
	border: none;
	padding: 10px;
	font-size: 13px;
	cursor: pointer;
	color: #333;
}
#gtc-chat-nav button:hover { background: #f0f0f0; }
#gtc-back-btn { border-right: 1px solid #e5e5e5; }

@media (max-width: 480px) {
	#gtc-chat-window { width: calc(100vw - 24px); height: 65vh; }
	.gtc-toggle-label { font-size: 10px; max-width: 68px; }
	#gtc-toggle-btn { padding: 10px 14px 8px; }
	.gtc-toggle-logo { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
	#gtc-chat-window { width: calc(100vw - 24px); height: 65vh; }
}
