/* WashCommand — website chat. Everything is scoped under .c3chat. */

.c3chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	font-family: Manrope, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: #111820;
}

.c3chat-bubble {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 13px 18px;
	border: 0;
	border-radius: 999px;
	background: #d92632;
	color: #fff;
	font: inherit;
	font-weight: 800;
	box-shadow: 0 10px 26px rgba(7, 16, 25, .28);
	cursor: pointer;
}

.c3chat-bubble:hover { background: #ef3946; }
.c3chat-bubble:focus-visible { outline: 3px solid #111820; outline-offset: 3px; }

.c3chat-bubble-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .28);
}

.c3chat.is-open .c3chat-bubble { display: none; }

.c3chat-panel {
	display: flex;
	flex-direction: column;
	width: 370px;
	max-width: calc(100vw - 24px);
	height: 560px;
	max-height: calc(100vh - 40px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(7, 16, 25, .32);
	overflow: hidden;
}

.c3chat-panel[hidden] { display: none; }

.c3chat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	background: #0b1118;
	color: #fff;
	border-bottom: 3px solid #d92632;
}

.c3chat-title b { display: block; font-size: 16px; }
.c3chat-title span { display: block; font-size: 12px; color: #aebdca; }

.c3chat-close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
}

.c3chat-log {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #f4f6f7;
}

.c3chat-msg {
	max-width: 86%;
	margin: 0 0 10px;
	padding: 10px 13px;
	border-radius: 12px;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.c3chat-bot { background: #fff; border: 1px solid #dfe4e8; border-bottom-left-radius: 4px; }
.c3chat-user { margin-left: auto; background: #111820; color: #fff; border-bottom-right-radius: 4px; }
.c3chat-msg a { color: #b51f29; font-weight: 700; text-decoration: underline; }
.c3chat-msg.is-typing { color: #73818c; letter-spacing: 2px; }

.c3chat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 16px 10px;
	background: #f4f6f7;
}

.c3chat-chips[hidden] { display: none; }

.c3chat-chip {
	padding: 7px 11px;
	border: 1px solid #d92632;
	border-radius: 999px;
	background: #fff;
	color: #b51f29;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.c3chat-form {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid #e3e7ea;
	background: #fff;
}

.c3chat-input {
	flex: 1;
	resize: none;
	min-height: 42px;
	padding: 10px 12px;
	border: 1px solid #aab5c0;
	border-radius: 10px;
	font: inherit;
	font-size: 16px; /* 16px stops iPhone zooming in on focus */
	color: #111820;
}

.c3chat-trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.c3chat-send {
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: #d92632;
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.c3chat-send:disabled { opacity: .5; cursor: default; }

.c3chat-foot {
	padding: 8px 14px 12px;
	font-size: 12px;
	color: #687987;
	background: #fff;
}

.c3chat-foot a { color: #b51f29; }

/* Phones: sit above the Matt / Keenan / Instant Estimate bar, and open full screen. */
@media (max-width: 760px) {
	.c3chat { right: 12px; bottom: 74px; }
	.c3chat-bubble { padding: 11px 15px; font-size: 14px; }
	.c3chat.is-open { left: 0; right: 0; top: 0; bottom: 0; }
	.c3chat-panel { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
}
