.rs-ai-site-assistant {
	max-width: 900px;
	margin: 0 auto;
}

.rs-ai-site-assistant textarea {
	width: 100%;
	padding: 16px;
	font-size: 18px;
	margin: 20px 0 12px;
	box-sizing: border-box;
}

.rs-ai-site-assistant button {
	cursor: pointer;
}

.rs-ai-examples {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px 0;
}

.rs-ai-examples button {
	padding: 8px 12px;
	border: 1px solid #c28e28;
	background: #c28e28;
	color: #ffffff;
	text-transform: none;
}

.rs-ai-examples button:hover {
	border: 1px solid #c28e28;
	background: #ffffff;
	color: #c28e28;
}

#rs-ai-site-submit {
	padding: 12px 22px;
	font-size: 16px;
}

#rs-ai-site-result {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.rs-ai-answer {
	font-size: 18px;
	line-height: 1.6;
}

.rs-ai-loading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding: 18px;
	background: #f7f7f7;
	border-radius: 12px;
}

.rs-ai-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid #ddd;
	border-top-color: #222;
	border-radius: 50%;
	animation: rsAiSpin 0.8s linear infinite;
	flex: 0 0 auto;
}

.rs-ai-loading p {
	margin: 0;
	font-size: 16px;
}

@keyframes rsAiSpin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.rs-ai-floating-assistant {
	position: fixed;
	right: 24px;
	bottom: 135px;
	z-index: 999999;
	font-family: inherit;
}

.rs-ai-floating-assistant__tooltip {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%);
	background: #183932;
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	opacity: 1;
	animation: rsAiTooltipBounce 3s ease-in-out infinite;
}

@keyframes rsAiTooltipBounce {
	0%, 15% {
		transform: translateX(-50%) translateY(0);
	}

	40%, 60% {
		transform: translateX(-50%) translateY(-14px);
	}

	85%, 100% {
		transform: translateX(-50%) translateY(0);
	}
}

.rs-ai-floating-assistant.is-open .rs-ai-floating-assistant__tooltip {
	animation: none;
	opacity: 0;
}

.rs-ai-floating-assistant:hover .rs-ai-floating-assistant__tooltip {
	animation-play-state: paused;
}

.rs-ai-floating-assistant__button {
	width: 80px;
	height: 80px;
	border: 0;
	border-radius: 50%;
	background: #c28e28;
	color: #ffffff;
	font-size: 26px;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.2s ease, background 0.2s ease;
	animation: rsAiButtonBounce 3s ease-in-out infinite;
}

.rs-ai-floating-assistant.is-open .rs-ai-floating-assistant__button {
	animation: none;
}

@keyframes rsAiButtonBounce {
	0%, 15% {
		transform: translateY(0);
	}

	40%, 60% {
		transform: translateY(-14px);
	}

	85%, 100% {
		transform: translateY(0);
	}
}

.rs-ai-floating-assistant__button:hover {
	background: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
	animation-play-state: paused;
}

.rs-ai-floating-assistant__button:focus,
.rs-ai-floating-assistant__button:active,
.rs-ai-floating-assistant__button.is-active,
.rs-ai-floating-assistant.is-open .rs-ai-floating-assistant__button {
	background: #ffffff;
}

.rs-ai-floating-assistant__icon {
	display: block !important;
	width: 36px !important;
	height: 36px !important;
	background-color: #ffffff !important;
	-webkit-mask-image: var(--rs-ai-chat-icon-image, url('https://rsdev2-co-uk.stackstaging.com/kr/wp-content/uploads/2026/07/chat.png')) !important;
	mask-image: var(--rs-ai-chat-icon-image, url('https://rsdev2-co-uk.stackstaging.com/kr/wp-content/uploads/2026/07/chat.png')) !important;
	-webkit-mask-size: contain !important;
	mask-size: contain !important;
	-webkit-mask-repeat: no-repeat !important;
	mask-repeat: no-repeat !important;
	-webkit-mask-position: center !important;
	mask-position: center !important;
}

.rs-ai-floating-assistant__button:hover .rs-ai-floating-assistant__icon,
.rs-ai-floating-assistant__button:focus .rs-ai-floating-assistant__icon,
.rs-ai-floating-assistant__button:active .rs-ai-floating-assistant__icon,
.rs-ai-floating-assistant__button.is-active .rs-ai-floating-assistant__icon,
.rs-ai-floating-assistant.is-open .rs-ai-floating-assistant__icon {
	background-color: #c28e28 !important;
}

.rs-ai-floating-assistant__panel {
	position: absolute;
	right: 100px;
	bottom: -50px;
	width: min(431px, calc(100vw - 32px));
	height: min(640px, calc(100vh - 90px));
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
	padding: 0;
	display: flex;
	flex-direction: column;
}

.rs-ai-floating-assistant__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	padding: 30px 18px;
	border-bottom: 1px solid #e8e8e8;
	background-color: #183932;
	background-image: linear-gradient(#0000008c, #0000008c), var(--rs-ai-chat-header-image, url(https://www.kingdomrooms.com/wp-content/uploads/2026/05/Kingdom-Room-Assistant-e1779366887880.jpg));
	background-size: cover;
	background-position: center;
	color: #ffffff;
	transition: gap 0.6s ease;
}

.rs-ai-floating-assistant__panel.is-connected .rs-ai-floating-assistant__header {
	gap: 14px;
}

.rs-ai-floating-assistant__header-avatar {
	flex: 0 0 auto;
	width: 0;
	min-width: 0;
	height: 60px;
	box-sizing: border-box;
	border-radius: 50%;
	background-color: #c28e28;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	border: 2px solid rgba(255, 255, 255, 0.6);
	opacity: 0;
	transform: translateX(-16px);
	overflow: hidden;
	transition: width 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

.rs-ai-floating-assistant__panel.is-connected .rs-ai-floating-assistant__header-avatar {
	width: 60px;
	opacity: 1;
	transform: translateX(0);
}

.rs-ai-floating-assistant__header-avatar.rs-ai-chat-avatar--image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: transparent;
}

.rs-ai-floating-assistant__header-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-right: 42px;
}

.rs-ai-floating-assistant__header strong {
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
}

.rs-ai-floating-assistant__header span {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	opacity: 0.9;
}

.rs-ai-floating-assistant__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0 !important;
	background: transparent !important;
	color: #ffffff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
}

.rs-ai-floating-assistant__stage {
	position: relative;
	flex: 1;
	min-height: 0;
}

.rs-ai-floating-assistant__connecting {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 24px;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.rs-ai-connecting-avatar {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background-color: #c28e28;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	font-weight: 700;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.rs-ai-connecting-avatar.rs-ai-chat-avatar--image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: transparent;
}

.rs-ai-floating-assistant__panel.is-found .rs-ai-connecting-avatar {
	opacity: 1;
}

.rs-ai-floating-assistant__connecting .rs-ai-loading {
	margin-top: 0;
}

.rs-ai-floating-assistant__body {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.rs-ai-floating-assistant__panel.is-connected .rs-ai-floating-assistant__connecting {
	opacity: 0;
	pointer-events: none;
}

.rs-ai-floating-assistant__panel.is-connected .rs-ai-floating-assistant__body {
	opacity: 1;
	pointer-events: auto;
}

.rs-ai-floating-assistant .rs-ai-site-assistant {
	max-width: none;
	margin: 0;
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.rs-ai-chat-feed {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 16px 0 !important;
	padding: 0 4px 0 0 !important;
	border-top: 0 !important;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.rs-ai-chat-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.rs-ai-chat-row--bot {
	justify-content: flex-start;
}

.rs-ai-chat-row--user {
	justify-content: flex-end;
}

.rs-ai-chat-row--bot .rs-ai-chat-message {
	background: #f7f2e8;
	color: #222222;
	max-width: calc(100% - 50px);
}

.rs-ai-chat-row--user .rs-ai-chat-message {
	background: #edf4ef;
	color: #222222;
	max-width: 82%;
	margin-left: auto;
}

.rs-ai-chat-row--user .rs-ai-chat-message p {
	margin: 0;
	color: #222222;
}

.rs-ai-chat-row--bot .rs-ai-chat-message p {
	color: #222222;
}

.rs-ai-chat-avatar {
	width: 38px;
	height: 38px;
	background-color: #c28e28;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex: 0 0 38px;
}

.rs-ai-chat-avatar--image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: transparent;
}

.rs-ai-chat-avatar--user {
	background-color: #183932;
	background-image: var(--rs-ai-chat-user-avatar-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.rs-ai-chat-avatar--user::before {
	content: "You";
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.rs-ai-chat-avatar--user[style*="--rs-ai-chat-user-avatar-image"]::before {
	content: "";
}

.rs-ai-chat-message {
	background: #f4f7f8;
	padding: 12px 14px;
	color: #222222;
	font-size: 14px;
	line-height: 1.5;
}

.rs-ai-chat-message p {
	margin: 0 0 8px 0;
}

.rs-ai-chat-message p:last-child {
	margin-bottom: 0;
}

.rs-ai-chat-message--thinking {
	padding: 0;
	background: transparent;
}

.rs-ai-chat-message--thinking .rs-ai-loading {
	margin-top: 0;
}

.rs-ai-suggested-questions {
	margin-top: 12px;
}

.rs-ai-suggested-questions strong {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	line-height: 1.3;
	color: #183932;
}

.rs-ai-chat-message .rs-ai-examples {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 6px;
	margin: 0;
}

.rs-ai-chat-message .rs-ai-examples button {
	display: block !important;
	width: auto !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: auto !important;
	border: 1px solid #d7d7d7;
	background: #ffffff;
	color: #222222;
	padding: 6px 9px;
	font-size: 12px;
	line-height: 1.3;
	text-align: left !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	white-space: normal !important;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rs-ai-chat-message .rs-ai-examples button:hover {
	background: #f7f2e8;
	border-color: #c28e28;
	color: #c28e28;
}

.rs-ai-floating-assistant .rs-ai-site-assistant__search-box {
	display: block;
	border-top: 1px solid #dddddd;
	padding-top: 14px;
}

.rs-ai-floating-assistant textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d7d7d7;
	padding: 12px;
	margin: 0 0 14px 0;
	font-size: 15px;
	line-height: 1.5;
	resize: vertical;
	min-height: 95px;
}

.rs-ai-floating-assistant textarea:focus {
	outline: none;
	border-color: #c28e28;
	box-shadow: 0 0 0 3px rgba(194, 142, 40, 0.18);
}

.rs-ai-floating-assistant #rs-ai-site-submit {
	width: 100%;
	border: 0;
	background: #183932;
	color: #ffffff;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.rs-ai-floating-assistant #rs-ai-site-submit:hover {
	background: #c28e28;
}

.rs-ai-floating-assistant #rs-ai-site-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.rs-ai-floating-assistant #rs-ai-site-result {
	margin-top: 0 !important;
	padding-top: 0 !important;
	border-top: 0 !important;
}

.rs-ai-floating-assistant .rs-ai-answer {
	font-size: 16px;
	line-height: 1.6;
}

.rs-ai-floating-assistant .rs-ai-answer a {
	color: #c28e28;
	font-weight: 700;
	text-decoration: underline;
}

.rs-ai-sources {
	margin-top: 14px;
	font-size: 13px;
}

.rs-ai-sources strong {
	display: block;
	margin-bottom: 6px;
	color: #183932;
}

.rs-ai-sources ul {
	margin: 0;
	padding-left: 18px;
}

.rs-ai-sources li {
	margin-bottom: 4px;
}

.rs-ai-chat-message,
.rs-ai-chat-message * {
	text-align: left !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
}

.rs-ai-feedback-prompt {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.rs-ai-feedback-prompt p {
	margin: 0 0 10px;
}

.rs-ai-feedback-prompt p:last-child {
	font-size: 12px;
	opacity: 0.78;
}

.rs-ai-review-prompt {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.rs-ai-review-prompt p {
	margin: 0 0 10px;
	line-height: 1.5;
}

.rs-ai-review-stars {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 2px;
	margin-bottom: 10px;
}

.rs-ai-star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	padding: 2px;
	font-size: 22px;
	line-height: 1;
	color: #d7d7d7;
	cursor: pointer;
	transition: color 0.15s ease;
}

.rs-ai-star.is-selected {
	color: #c28e28;
}

.rs-ai-star:hover {
	color: #c28e28;
}

.rs-ai-review-comment {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d7d7d7;
	padding: 8px 10px;
	margin: 0 0 10px 0;
	font-size: 13px;
	line-height: 1.4;
	resize: vertical;
}

.rs-ai-review-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rs-ai-submit-review {
	border: 0;
	background: #183932;
	color: #ffffff;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.rs-ai-submit-review:hover {
	background: #c28e28;
}

.rs-ai-submit-review:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.rs-ai-skip-review {
	border: 1px solid #d7d7d7;
	background: #ffffff;
	color: #666666;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.rs-ai-skip-review:hover {
	border-color: #c28e28;
	color: #c28e28;
}

.rs-ai-review-response {
	margin-top: 8px;
	font-size: 12px;
}

.rs-ai-followup-form {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.rs-ai-followup-form p {
	margin: 0 0 10px;
}

.rs-ai-followup-form input,
.rs-ai-followup-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d7d7d7;
	padding: 10px 11px;
	margin: 0 0 12px 0;
	font-size: 13px;
	line-height: 1.4;
}

.rs-ai-followup-form textarea {
	min-height: 90px;
	resize: vertical;
}

.rs-ai-followup-form input:last-of-type,
.rs-ai-followup-form textarea:last-of-type {
	margin-bottom: 14px;
}

.rs-ai-followup-form button {
	border: 0;
	background: #183932;
	color: #ffffff;
	padding: 9px 12px;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.rs-ai-followup-form button:hover {
	background: #c28e28;
}

.rs-ai-form-response {
	margin-top: 8px;
	font-size: 13px;
}

/* Tablet */
@media only screen and (max-width: 1024px) {
	.rs-ai-floating-assistant {
		right: 20px;
		bottom: 80px;
	}

	.rs-ai-floating-assistant__button {
		width: 70px;
		height: 70px;
	}

	.rs-ai-floating-assistant__icon {
		width: 32px !important;
		height: 32px !important;
	}

	.rs-ai-floating-assistant__panel {
		right: 90px;
		bottom: -50px;
		width: min(400px, calc(100vw - 32px));
		height: min(620px, calc(100vh - 90px));
	}
}

/* Mobile */
@media only screen and (max-width: 767px) {
	.rs-ai-floating-assistant {
		right: 14px;
		bottom: 90px;
	}

	.rs-ai-floating-assistant__button {
		width: 60px;
		height: 60px;
	}

	.rs-ai-floating-assistant__icon {
		width: 28px !important;
		height: 28px !important;
	}

	.rs-ai-floating-assistant__panel {
		position: fixed;
		right: 12px;
		left: 12px;
		bottom: 165px;
		width: auto;
		height: calc(100dvh - 210px);
		max-height: 620px;
	}

	.rs-ai-chat-row {
		gap: 10px;
	}

	.rs-ai-chat-avatar {
		width: 34px;
		height: 34px;
		flex: 0 0 34px;
		font-size: 12px;
	}

	.rs-ai-chat-row--bot .rs-ai-chat-message {
		max-width: calc(100% - 44px);
	}

	.rs-ai-chat-message {
		font-size: 13px;
	}

	.rs-ai-floating-assistant textarea {
		font-size: 14px;
	}
}

.rs-ai-feedback-buttons {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
}

.rs-ai-feedback-buttons--secondary {
	margin-top: 6px;
}

.rs-ai-feedback-buttons button {
	margin: 4px;
}

/* Small mobile */
@media only screen and (max-width: 480px) {
	.rs-ai-floating-assistant {
		right: 12px;
		bottom: 85px;
	}

	.rs-ai-floating-assistant__button {
		width: 56px;
		height: 56px;
	}

	.rs-ai-floating-assistant__panel {
		right: 10px;
		left: 10px;
		bottom: 150px;
		height: calc(100dvh - 190px);
		max-height: none;
	}

	.rs-ai-floating-assistant__header {
		padding: 24px 16px;
	}

	.rs-ai-floating-assistant .rs-ai-site-assistant {
		padding: 14px;
	}

	.rs-ai-floating-assistant textarea {
		min-height: 80px;
	}

	.rs-ai-chat-message .rs-ai-examples button {
		font-size: 11px;
		padding: 6px 8px;
	}
}
