.bvi-chat-wrapper {
	--bvi-button-bg: var(--e-global-color-primary, #0f5b91);
	--bvi-button-hover: var(--e-global-color-accent, #c62828);
	--bvi-link-hover: #0f5b91;
	--bvi-text-color: #111111;
	--bvi-muted-color: #4f5d6b;
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 0;
}

.bvi-chat-conversation {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bvi-chat-message {
	display: flex;
	width: 100%;
}

.bvi-chat-message-user {
	justify-content: flex-end;
}

.bvi-chat-message-system {
	justify-content: flex-start;
}

.bvi-chat-message-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(100%, 1120px);
}

.bvi-chat-message-user .bvi-chat-message-body {
	align-items: flex-end;
}

.bvi-chat-message-system .bvi-chat-message-body {
	align-items: flex-start;
}

.bvi-chat-bubble {
	max-width: 760px;
	padding: 14px 18px;
	border: 1px solid #d9dee7;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
	color: #16202a;
	line-height: 1.6;
}

.bvi-chat-bubble.is-loading {
	opacity: 0.85;
}

.bvi-chat-message-user .bvi-chat-bubble {
	background: #11263c;
	border-color: #11263c;
	color: #ffffff;
}

.bvi-results-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
}

.bvi-vehicle-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid #e5eaf1;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.bvi-vehicle-card-image {
	aspect-ratio: 4 / 3;
	background: #ffffff;
	border-radius: 12px !important;
	overflow: hidden !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bvi-vehicle-card-image-link {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border-radius: 12px !important;
	overflow: hidden !important;
}

.bvi-vehicle-card-image img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: 12px !important;
}

.bvi-vehicle-card-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
}

.bvi-chat-wrapper .bvi-vehicle-card-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.35;
	color: var(--bvi-text-color) !important;
}

.bvi-chat-wrapper .bvi-vehicle-card-title-link,
.bvi-chat-wrapper .bvi-vehicle-card-title-link:visited,
.bvi-chat-wrapper .bvi-vehicle-card-title-link:active {
	color: var(--bvi-text-color) !important;
	text-decoration: none !important;
}

.bvi-chat-wrapper .bvi-vehicle-card-title-link:hover,
.bvi-chat-wrapper .bvi-vehicle-card-title-link:focus {
	color: var(--bvi-link-hover) !important;
	text-decoration: none !important;
}

.bvi-chat-wrapper .bvi-vehicle-card-price {
	font-weight: 700;
	font-size: 12px !important;
	line-height: 1.4 !important;
	color: var(--bvi-text-color) !important;
}

.bvi-chat-wrapper .bvi-vehicle-card-meta {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12px !important;
	line-height: 1.4 !important;
	color: var(--bvi-text-color) !important;
}

.bvi-chat-wrapper .bvi-vehicle-card-meta li {
	font-size: 12px !important;
	line-height: 1.4 !important;
}

.bvi-chat-wrapper .bvi-vehicle-card-price,
.bvi-chat-wrapper .bvi-vehicle-card-meta,
.bvi-chat-wrapper .bvi-vehicle-card-meta li {
	color: var(--bvi-text-color) !important;
}

.bvi-chat-wrapper .bvi-card-button,
.bvi-chat-wrapper .bvi-card-button:visited,
.bvi-chat-wrapper .bvi-card-button:hover,
.bvi-chat-wrapper .bvi-card-button:focus,
.bvi-chat-wrapper .bvi-card-button:active,
.bvi-chat-wrapper .bvi-vehicle-card-button,
.bvi-chat-wrapper .bvi-vehicle-card-button:visited,
.bvi-chat-wrapper .bvi-vehicle-card-button:hover,
.bvi-chat-wrapper .bvi-vehicle-card-button:focus,
.bvi-chat-wrapper .bvi-vehicle-card-button:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 11px 16px;
	border-radius: 999px;
	background: var(--bvi-button-bg) !important;
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: none !important;
}

.bvi-chat-wrapper .bvi-card-button:hover,
.bvi-chat-wrapper .bvi-card-button:focus,
.bvi-chat-wrapper .bvi-card-button:active,
.bvi-chat-wrapper .bvi-vehicle-card-button:hover,
.bvi-chat-wrapper .bvi-vehicle-card-button:focus,
.bvi-chat-wrapper .bvi-vehicle-card-button:active {
	background: var(--bvi-button-hover) !important;
	color: #ffffff !important;
	text-decoration: none !important;
}

.bvi-chat-wrapper .bvi-chat-info-link {
	align-self: flex-start;
	margin-top: 0 !important;
}

.bvi-refine-search {
	margin-top: 28px;
	padding: 0;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.bvi-chat-reset-row {
	margin-top: 12px;
}

.bvi-chat-wrapper .bvi-chat-reset-button,
.bvi-chat-wrapper .bvi-chat-reset-button:visited,
.bvi-chat-wrapper .bvi-chat-reset-button:hover,
.bvi-chat-wrapper .bvi-chat-reset-button:focus,
.bvi-chat-wrapper .bvi-chat-reset-button:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0 !important;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--bvi-button-bg) !important;
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
}

.bvi-chat-wrapper .bvi-chat-reset-button:hover,
.bvi-chat-wrapper .bvi-chat-reset-button:focus,
.bvi-chat-wrapper .bvi-chat-reset-button:active {
	background: var(--bvi-button-hover) !important;
	color: #ffffff !important;
	text-decoration: none !important;
}

.bvi-refine-search-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 999px;
	background: #cccccc;
}

.bvi-refine-search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 56px;
	padding: 16px 20px;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 999px !important;
	background: #cccccc !important;
	color: #111111 !important;
}

.bvi-refine-search input[type="text"]::placeholder {
	color: #555555;
	opacity: 1;
}

.bvi-refine-search input[type="text"]:focus {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: #cccccc !important;
}

.bvi-refine-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 56px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--bvi-button-bg);
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
}

.bvi-refine-search button:hover,
.bvi-refine-search button:focus {
	background: var(--bvi-button-hover);
}

@media (max-width: 1024px) {
	.bvi-results-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bvi-chat-wrapper {
		padding: 18px 0;
	}

	.bvi-chat-bubble {
		max-width: 100%;
	}

	.bvi-results-grid {
		grid-template-columns: 1fr;
	}

	.bvi-refine-search-row {
		flex-direction: row;
	}

	.bvi-refine-search button {
		width: auto;
	}
}
