#wedding-limo-chat {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 9999;
	font-family: Arial, sans-serif;
	text-align: left;
}

#open-chat {
	background: #b8917c;
	color: #1b1f24;
	padding: 14px 20px;
	border-radius: 40px;
	border: none;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
}

#chat-box {
	display: flex;
	flex-direction: column;
	width: 350px;
	height: 500px;
	max-height: calc(100vh - 110px);
	max-height: calc(100dvh - 110px);
	background: #fff;
	color: #1b1f24;
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	margin-top: 10px;
	overflow: hidden;
}

#open-chat:focus-visible,
#chat-starters button:focus-visible,
#chat-contact a:focus-visible,
#chat-input:focus-visible,
#chat-form button:focus-visible {
	outline: 2px solid #1b1f24;
	outline-offset: -2px;
}

#rqf-1 {
	scroll-margin-top: 200px;
}

#chat-box[hidden],
#chat-starters[hidden] {
	display: none;
}

#chat-log {
	flex: 1 1 auto;
	min-height: 0;
	padding: 15px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.4;
}

#chat-log .chat-message {
	margin-bottom: 10px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

#chat-starters {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 15px 10px;
}

#chat-starters button {
	background: #fff;
	color: #1b1f24;
	border: 1px solid #b8917c;
	border-radius: 16px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}

#chat-contact {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 8px 15px;
	border-top: 1px solid #ddd;
	font-size: 14px;
}

#chat-contact a[href^="tel:"] {
	color: #1b1f24;
	font-weight: 700;
	text-decoration: underline;
}

#chat-quote {
	background: #b8917c;
	color: #1b1f24;
	border-radius: 16px;
	padding: 6px 14px;
	text-decoration: none;
}

#chat-form {
	display: flex;
	margin: 0;
	border-top: 1px solid #ddd;
}

#chat-input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	padding: 10px;
	font-size: 14px;
	color: #1b1f24;
	background: #fff;
}

#chat-form button {
	background: #b8917c;
	color: #1b1f24;
	border: none;
	border-radius: 0;
	padding: 10px 15px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
}

#chat-form button:disabled {
	cursor: wait;
}

#chat-notice {
	margin: 0;
	padding: 6px 15px 8px;
	border-top: 1px solid #ddd;
	font-size: 11px;
	line-height: 1.3;
	color: #555;
}

.chat-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

@media (max-width: 480px) {
	#wedding-limo-chat {
		right: 12px;
		bottom: 12px;
		max-width: calc(100vw - 24px);
	}

	#open-chat {
		padding: 12px 16px;
		font-size: 15px;
	}

	#chat-box {
		width: calc(100vw - 24px);
		max-height: calc(100vh - 90px);
		max-height: calc(100dvh - 90px);
	}

	#chat-input {
		font-size: 16px;
	}
}
