.apo-chat {
	--apo-primary: #0b4f8d;
	--apo-primary-dark: #083a68;
	--apo-gray: #f1f3f5;
	--apo-border: #dde2e6;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.apo-chat * {
	box-sizing: border-box;
}

.apo-trigger {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--apo-primary);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.apo-trigger:hover {
	transform: scale(1.06);
}

.apo-trigger svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

.apo-bubble {
	display: none;
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 370px;
	max-width: calc(100vw - 32px);
	height: 640px;
	max-height: calc(100vh - 48px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	flex-direction: column;
	z-index: 999;
}

.apo-chat.apo-open .apo-bubble {
	display: flex;
}

.apo-header {
	background: var(--apo-primary);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.apo-header strong {
	font-size: 15px;
}

.apo-header .apo-status-label {
	font-size: 12px;
	opacity: 0.9;
	display: block;
}

.apo-close {
	margin-left: auto;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

.apo-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background:
		radial-gradient(circle at 20% 0%, #fdf6ec 0%, transparent 45%),
		radial-gradient(circle at 100% 100%, #eaf2fb 0%, transparent 50%),
		#f7f8fa;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.apo-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	max-width: 92%;
}

.apo-row.apo-bot {
	align-self: flex-start;
}

.apo-row.apo-user {
	align-self: flex-end;
	margin-left: auto;
	max-width: 80%;
}

.apo-avatar {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--apo-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(11, 79, 141, 0.35);
}

.apo-avatar svg {
	width: 17px;
	height: 17px;
	fill: #fff;
}

.apo-msg {
	flex: 0 1 auto;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.apo-msg.apo-bot {
	background: #fff;
	border: 1px solid var(--apo-border);
	border-bottom-left-radius: 4px;
	color: #24303c;
	font-size: 14px;
	line-height: 1.6;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.apo-msg.apo-bot p {
	margin: 0 0 8px;
}

.apo-msg.apo-bot p:last-child {
	margin-bottom: 0;
}

.apo-msg.apo-bot strong {
	color: var(--apo-primary-dark);
}

.apo-msg.apo-bot a {
	color: var(--apo-primary);
	font-weight: 600;
	text-decoration: underline;
}

.apo-msg.apo-bot a:hover {
	color: var(--apo-primary-dark);
}

.apo-list {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.apo-list li {
	position: relative;
	padding: 4px 0 4px 22px;
}

.apo-list li:before {
	content: "";
	position: absolute;
	left: 4px;
	top: 13px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--apo-primary);
	opacity: 0.75;
}

.apo-msg.apo-user {
	background: var(--apo-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.apo-msg.apo-welcome {
	background: #e8f2fc;
	border: 1px solid #bcd9f2;
	border-bottom-left-radius: 4px;
	border-left: 4px solid var(--apo-primary);
	font-size: 14px;
}

.apo-options {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: 6px;
	align-self: flex-start;
	width: 100%;
	max-width: 100%;
}

.apo-options-title {
	flex: 0 0 auto;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-size: 11px;
	font-weight: 700;
	color: #6b7683;
	padding-bottom: 2px;
}

.apo-chat .apo-option {
	width: 100%;
	background: #fff;
	border: 1px solid #c9d6e8;
	color: var(--apo-primary);
	padding: 9px 13px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.apo-chat .apo-option:hover,
.apo-chat .apo-option:focus {
	background: var(--apo-primary) !important;
	border-color: var(--apo-primary) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.apo-chat .apo-option.apo-back {
	width: auto;
	background: transparent;
	border-style: dashed;
	border-color: #a9b8cb;
	color: #6b7683;
	font-weight: 600;
	margin-top: 4px;
	align-self: flex-start;
}

.apo-chat .apo-option.apo-back:hover,
.apo-chat .apo-option.apo-back:focus {
	background: #eef2f7 !important;
	border-color: #8fa1b8 !important;
	color: var(--apo-primary) !important;
	transform: none;
}

.apo-option:hover {
	background: var(--apo-gray);
}

.apo-hint {
	font-size: 12px;
	color: #7a838c;
	background: #eef1f4;
	padding: 6px 10px;
	border-radius: 8px;
	align-self: flex-start;
	max-width: 92%;
	margin-left: 40px;
}

.apo-input-wrap {
	display: flex;
	border-top: 1px solid var(--apo-border);
	background: #fff;
}

.apo-input {
	flex: 1;
	border: none;
	padding: 12px 14px;
	font-size: 14px;
	outline: none;
}

.apo-send {
	background: var(--apo-primary);
	border: none;
	color: #fff;
	padding: 0 16px;
	cursor: pointer;
	font-size: 15px;
}

.apo-send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.apo-contact {
	background: #eef7ff;
	border: 1px solid #cfe4f7;
	color: #12405f;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	align-self: flex-start;
	max-width: 92%;
	margin-left: 40px;
	white-space: pre-wrap;
}

.apo-inline .apo-bubble {
	display: flex;
	position: relative;
	bottom: auto;
	right: auto;
	width: 100%;
	height: 660px;
	box-shadow: none;
	border: 1px solid var(--apo-border);
	margin: 12px 0;
	z-index: auto;
}

body .ovamenu_shrink.active_fixed,
body .ovamenu_shrink_mobile.active_fixed {
	z-index: 1000;
}

.apo-inline .apo-trigger,
.apo-inline .apo-close {
	display: none;
}

@media (max-width: 480px) {
	.apo-bubble {
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		border-radius: 0;
		height: 100vh;
		max-height: 100vh;
	}
	.apo-inline .apo-bubble {
		height: calc(100vh - 80px);
		max-height: 660px;
	}
	.apo-header strong {
		font-size: 13px;
		line-height: 1.25;
	}
	.apo-trigger {
		bottom: 16px;
		right: 16px;
	}
}