/* Ottawa Barber Suite — chatbot widget (premium dark/brass). */

.obs-chat-widget {
	--obs-bg: #12100d;
	--obs-surface: #1c1915;
	--obs-cream: #f4efe6;
	--obs-brass: #c9a227;
	--obs-line: rgba(201, 162, 39, 0.3);
	position: fixed;
	bottom: 22px;
	right: 22px;
	z-index: 99999;
	font-family: inherit;
}

/* Launcher */
.obs-chat-launcher {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--obs-brass);
	color: var(--obs-bg);
	border: none;
	border-radius: 999px;
	padding: 13px 20px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.obs-chat-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.obs-chat-launcher-icon {
	font-size: 18px;
}

.obs-chat-launcher.is-open {
	opacity: 0.85;
}

/* Panel */
.obs-chat-panel {
	position: absolute;
	bottom: 70px;
	right: 0;
	width: 380px;
	max-width: calc(100vw - 44px);
	height: 560px;
	max-height: calc(100vh - 120px);
	display: flex;
	flex-direction: column;
	background: var(--obs-surface);
	border: 1px solid var(--obs-line);
	border-radius: 14px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
	overflow: hidden;
	color: var(--obs-cream);
}

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

/* Header */
.obs-chat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--obs-bg);
	border-bottom: 1px solid var(--obs-line);
}

.obs-chat-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--obs-brass);
	color: var(--obs-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
	font-family: Georgia, serif;
}

.obs-chat-header-meta {
	flex: 1;
	min-width: 0;
}

.obs-chat-title {
	font-weight: 700;
	font-size: 15px;
}

.obs-chat-status {
	font-size: 12px;
	opacity: 0.75;
	display: flex;
	align-items: center;
	gap: 6px;
}

.obs-chat-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4caf50;
	box-shadow: 0 0 6px #4caf50;
}

.obs-chat-header-btns {
	display: flex;
	gap: 4px;
}

.obs-chat-icon-btn {
	background: transparent;
	border: none;
	color: var(--obs-cream);
	font-size: 16px;
	cursor: pointer;
	padding: 6px;
	border-radius: 6px;
	opacity: 0.8;
}

.obs-chat-icon-btn:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.06);
}

/* Messages */
.obs-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--obs-brass) transparent;
}

.obs-chat-msg {
	display: flex;
}

.obs-chat-msg-user {
	justify-content: flex-end;
}

.obs-chat-bubble {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.55;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.obs-chat-msg-bot .obs-chat-bubble {
	background: var(--obs-bg);
	border: 1px solid var(--obs-line);
	border-bottom-left-radius: 4px;
}

.obs-chat-msg-user .obs-chat-bubble {
	background: var(--obs-brass);
	color: var(--obs-bg);
	border-bottom-right-radius: 4px;
	font-weight: 600;
}

/* Typing indicator */
.obs-chat-typing {
	display: flex;
	gap: 5px;
	padding: 4px 18px 8px;
}

.obs-chat-typing[hidden] {
	display: none;
}

.obs-chat-typing-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--obs-brass);
	opacity: 0.35;
	animation: obs-chat-bounce 1.2s infinite ease-in-out;
}

.obs-chat-typing-dot:nth-child(2) {
	animation-delay: 0.15s;
}

.obs-chat-typing-dot:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes obs-chat-bounce {
	0%, 60%, 100% {
		transform: translateY(0);
		opacity: 0.35;
	}
	30% {
		transform: translateY(-5px);
		opacity: 1;
	}
}

/* Quick-reply chips */
.obs-chat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px 10px;
}

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

.obs-chat-chip {
	background: transparent;
	border: 1px solid var(--obs-brass);
	color: var(--obs-brass);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease;
}

.obs-chat-chip:hover {
	background: rgba(201, 162, 39, 0.15);
}

/* Input row */
.obs-chat-form {
	display: flex;
	gap: 8px;
	padding: 12px 14px;
	background: var(--obs-bg);
	border-top: 1px solid var(--obs-line);
}

.obs-chat-input {
	flex: 1;
	min-width: 0;
	background: var(--obs-surface);
	border: 1px solid var(--obs-line);
	border-radius: 999px;
	color: var(--obs-cream);
	padding: 10px 16px;
	font: inherit;
	font-size: 14px;
}

.obs-chat-input:focus {
	outline: none;
	border-color: var(--obs-brass);
}

.obs-chat-mic,
.obs-chat-send {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 17px;
	padding: 6px 8px;
	border-radius: 50%;
	color: var(--obs-cream);
}

.obs-chat-mic.is-listening {
	background: rgba(201, 162, 39, 0.25);
	animation: obs-chat-pulse 1s infinite;
}

@keyframes obs-chat-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(201, 162, 39, 0);
	}
}

.obs-chat-send {
	background: var(--obs-brass);
	color: var(--obs-bg);
	font-size: 14px;
	width: 38px;
	height: 38px;
}

/* Confirmation card (classy gold check) */
.obs-chat-confirm-card {
	border: 1px solid var(--obs-brass);
	background: linear-gradient(160deg, rgba(201, 162, 39, 0.14), rgba(201, 162, 39, 0.04));
	border-radius: 12px;
	padding: 18px;
	text-align: center;
	margin: 4px 0;
}

.obs-chat-confirm-ring svg {
	stroke: var(--obs-brass);
	stroke-width: 3;
}

.obs-chat-confirm-ring circle {
	stroke-dasharray: 160;
	stroke-dashoffset: 160;
	animation: obs-chat-draw 0.7s ease forwards;
}

.obs-chat-confirm-ring path {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: obs-chat-draw 0.45s ease 0.6s forwards;
}

@keyframes obs-chat-draw {
	to {
		stroke-dashoffset: 0;
	}
}

.obs-chat-confirm-title {
	color: var(--obs-brass);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 8px 0 6px;
}

.obs-chat-confirm-text {
	font-size: 13px;
	line-height: 1.6;
	white-space: pre-wrap;
	opacity: 0.9;
}

/* Mobile: full-screen sheet */
@media (max-width: 600px) {
	.obs-chat-widget {
		bottom: 0;
		right: 0;
		left: 0;
	}

	.obs-chat-launcher {
		position: fixed;
		bottom: 18px;
		right: 18px;
		left: auto;
	}

	.obs-chat-panel {
		position: fixed;
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
		border: none;
	}
}
