.richet-concierge {
	--rc-pulse: #2563eb;
	position: fixed;
	inset: auto;
	z-index: 99999;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	pointer-events: none;
}

.richet-concierge__launcher,
.richet-concierge__panel {
	pointer-events: auto;
}

.richet-concierge--bottom-right {
	right: max(20px, env(safe-area-inset-right, 0px));
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	left: auto;
	top: auto;
}

.richet-concierge--bottom-left {
	left: max(20px, env(safe-area-inset-left, 0px));
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	right: auto;
	top: auto;
}

.richet-concierge__launcher {
	position: relative;
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: var(--rc-pulse);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: rc-pulse 2s ease-in-out infinite;
}

@keyframes rc-pulse {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rc-pulse) 45%, transparent); }
	50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--rc-pulse) 0%, transparent); }
}

.richet-concierge__panel {
	position: absolute;
	bottom: 68px;
	right: 0;
	width: min(360px, calc(100vw - 40px));
	height: min(520px, calc(100vh - 120px));
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform-origin: bottom right;
	animation: rc-panel-in 0.2s ease-out;
}

.richet-concierge__panel[hidden] {
	display: none !important;
}

@keyframes rc-panel-in {
	from {
		opacity: 0;
		transform: scale(0.96) translateY(8px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.richet-concierge--bottom-left .richet-concierge__panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.richet-concierge__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
	flex-shrink: 0;
}

.richet-concierge__header-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.richet-concierge__header-title strong {
	font-size: 15px;
}

.richet-concierge__step-hint {
	font-size: 11px;
	font-weight: 500;
	color: #9ca3af;
	letter-spacing: 0.02em;
}

.richet-concierge__close {
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: 0 4px;
}

.richet-concierge__messages {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.richet-concierge__bubble {
	max-width: 88%;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.richet-concierge__bubble--animate {
	animation: rc-fade-up 0.25s ease-out;
}

@keyframes rc-fade-up {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.richet-concierge__bubble--assistant {
	align-self: flex-start;
	background: #f3f4f6;
	color: #111827;
}

.richet-concierge__bubble--user {
	align-self: flex-end;
	background: var(--rc-pulse);
	color: #fff;
}

.richet-concierge__typing {
	align-self: flex-start;
	display: flex;
	gap: 4px;
	padding: 10px 14px;
	background: #f3f4f6;
	border-radius: 12px;
}

.richet-concierge__typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #9ca3af;
	animation: rc-typing 1.2s ease-in-out infinite;
}

.richet-concierge__typing span:nth-child(2) { animation-delay: 0.15s; }
.richet-concierge__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes rc-typing {
	0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-3px); }
}

.richet-concierge__steps {
	flex-shrink: 0;
	border-top: 1px solid #e5e7eb;
	background: #fafafa;
}

.richet-concierge__step {
	padding: 12px 14px 14px;
}

.richet-concierge__step[hidden] {
	display: none !important;
}

.richet-concierge__step-prompt {
	margin: 0 0 10px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.4;
}

.richet-concierge__cta {
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 12px 16px;
	background: var(--rc-pulse);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.richet-concierge__cta:hover {
	filter: brightness(1.05);
}

.richet-concierge__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.richet-concierge__chip {
	border: 1px solid #d1d5db;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12px;
	background: #fff;
	color: #374151;
	cursor: pointer;
}

.richet-concierge__chip:hover {
	border-color: var(--rc-pulse);
	color: var(--rc-pulse);
}

.richet-concierge__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.richet-concierge__form textarea,
.richet-concierge__form input[type="text"],
.richet-concierge__form input[type="email"] {
	resize: none;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
}

.richet-concierge__form textarea:focus,
.richet-concierge__form input:focus {
	outline: none;
	border-color: var(--rc-pulse);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc-pulse) 20%, transparent);
}

.richet-concierge__send {
	align-self: stretch;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	background: var(--rc-pulse);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.richet-concierge__send:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.richet-concierge__complete-note {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
	text-align: center;
}

.richet-concierge__hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}
