.gc-wrap,
.gcw {
	--gc-accent: #f97316;
	--gc-navy: #0b1f3a;
	--gc-border: #d6dbe3;
	--gc-text: #1b2432;
	box-sizing: border-box;
}
.gc-wrap *,
.gcw * {
	box-sizing: border-box;
}

/* Form */
.gc-wrap {
	max-width: 560px;
	color: var(--gc-text);
}
.gc-title {
	margin: 0 0 .25em;
}
.gc-intro {
	margin: 0 0 1em;
}
.gc-form .gc-field {
	margin-bottom: 14px;
}
.gc-form label {
	display: block;
	font-weight: 600;
	font-size: .9em;
	margin-bottom: 4px;
}
.gc-form input[type="text"],
.gc-form input[type="email"],
.gc-form input[type="tel"],
.gc-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--gc-border);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	color: var(--gc-text);
}
.gc-form input:focus,
.gc-form textarea:focus {
	outline: 2px solid var(--gc-accent);
	outline-offset: 1px;
	border-color: var(--gc-accent);
}
.gc-consent label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
}
.gc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.gc-submit {
	background: var(--gc-accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 11px 22px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.gc-submit:hover {
	filter: brightness(.95);
}
.gc-submit:disabled {
	opacity: .6;
	cursor: wait;
}
.gc-msg {
	margin-top: 10px;
	font-size: .95em;
	min-height: 1.2em;
}
.gc-msg.gc-ok {
	color: #166534;
}
.gc-msg.gc-err {
	color: #b91c1c;
}
.gc-notice {
	padding: 10px 12px;
	border: 1px solid #f59e0b;
	background: #fffbeb;
	border-radius: 6px;
}

/* Chat widget */
.gcw {
	position: fixed;
	bottom: 20px;
	z-index: 99990;
	font-family: inherit;
	color: var(--gc-text);
}
.gcw-right {
	right: 20px;
}
.gcw-left {
	left: 20px;
}
.gcw-launcher {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--gc-accent);
	color: var(--gc-on-accent, #fff);
	border: 0;
	border-radius: 999px;
	padding: 6px 22px 6px 6px;
	line-height: 1;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(11, 31, 58, .3);
}
.gcw-launcher:hover {
	filter: brightness(1.05);
}
.gcw-avatar {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
	flex: none;
}
.gcw-icon-only {
	padding: 0;
	background: transparent;
	border-radius: 50%;
	box-shadow: none;
}
.gcw-icon-only .gcw-avatar {
	width: 68px;
	height: 68px;
	border: 3px solid var(--gc-accent);
	box-shadow: 0 6px 20px rgba(11, 31, 58, .3);
}
.gcw-launcher:focus-visible,
.gcw-close:focus-visible,
.gcw-q:focus-visible,
.gcw-cta:focus-visible {
	outline: 3px solid var(--gc-navy);
	outline-offset: 2px;
}
.gcw.is-open .gcw-launcher {
	display: none;
}
.gcw-panel {
	width: min(360px, calc(100vw - 32px));
	max-height: min(600px, calc(100vh - 40px));
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(11, 31, 58, .3);
}
.gcw-panel[hidden] {
	display: none;
}
.gcw-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--gc-navy);
	color: #fff;
	padding: 14px 16px;
}
.gcw-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.gcw-body {
	padding: 14px;
	overflow-y: auto;
}
.gcw-thread {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}
.gcw-bubble {
	max-width: 88%;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: .95em;
	line-height: 1.4;
}
.gcw-bubble p {
	margin: 0 0 .5em;
}
.gcw-bubble p:last-child {
	margin-bottom: 0;
}
.gcw-bot {
	background: #eef1f6;
	align-self: flex-start;
}
.gcw-user {
	background: var(--gc-accent);
	color: var(--gc-on-accent, #fff);
	align-self: flex-end;
}
.gcw-faqs {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.gcw-q {
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1px solid var(--gc-accent);
	color: var(--gc-navy);
	border-radius: 999px;
	padding: 8px 14px;
	font: inherit;
	font-size: .92em;
	cursor: pointer;
}
.gcw-q:hover {
	background: #fff4ec;
}
.gcw-cta {
	width: 100%;
	background: var(--gc-navy);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 11px 14px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.gcw-contact[hidden],
.gcw-cta[hidden] {
	display: none;
}
.gcw-contact .gc-form .gc-field {
	margin-bottom: 10px;
}

.gcw-head {
	gap: 10px;
}
.gcw-head strong {
	flex: 1;
}
.gcw-head-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	flex: none;
}
.gcw-search {
	width: 100%;
	margin: 0 0 8px;
	padding: 8px 12px;
	border: 1px solid var(--gc-border);
	border-radius: 999px;
	font: inherit;
	font-size: .92em;
}
.gcw-search:focus {
	outline: 2px solid var(--gc-accent);
	outline-offset: 1px;
}
.gcw-faqs {
	max-height: 230px;
	overflow-y: auto;
}
.gcw-faqs li[hidden],
.gcw-none[hidden] {
	display: none;
}
.gcw-none {
	margin: 0 0 12px;
	font-size: .9em;
	color: #50575e;
}

@media (prefers-reduced-motion: no-preference) {
	.gcw-panel {
		animation: gcw-in .18s ease-out;
	}
	@keyframes gcw-in {
		from {
			opacity: 0;
			transform: translateY(8px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}
