#exertpro-chat-root {
	position: fixed;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.exertpro-bubble {
    position: fixed;
    width: 65px;
    height: 65px;
    border-radius: 50% !important;
    background: var(--exertpro-primary, #8a6d3b) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    z-index: 999999;
    border: none !important;
    transition: transform .15s ease;
    padding: 0 !important;
}
.exertpro-bubble:hover { 
	transform: scale(1.06);
	background: var(--exertpro-primary, #8a6d3b) !important;
}
.exertpro-bubble svg { width: 28px; height: 28px; }

.exertpro-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #e64949;
	border: 2px solid #fff;
}

.exertpro-teaser {
	position: fixed;
	z-index: 999998;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	color: #26232a;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,.18);
	padding: 12px 34px 12px 12px;
	max-width: 260px;
	cursor: pointer;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}
.exertpro-teaser.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.exertpro-teaser-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--exertpro-primary, #8a6d3b);
	flex-shrink: 0;
	position: relative;
}
.exertpro-teaser-avatar::after {
	content: "";
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #4ade80;
	border: 2px solid #fff;
}
.exertpro-teaser-text {
	font-size: 13.5px;
	line-height: 1.35;
}
.exertpro-teaser-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 21px !important;
    height: 21px !important;
    border-radius: 50% !important;
    background: var(--exertpro-primary, #8a6d3b) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.exertpro-window {
	position: fixed;
	width: 360px;
	max-width: calc(100vw - 24px);
	height: 520px;
	max-height: calc(100vh - 120px);
	background: var(--exertpro-bg, #fff);
	color: var(--exertpro-fg, #1e1e1e);
	border-radius: var(--exertpro-radius, 16px);
	box-shadow: 0 12px 40px rgba(0,0,0,.25);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 999999;
}
.exertpro-window.is-open { display: flex; }

.exertpro-window.theme-dark { --exertpro-bg: #202225; --exertpro-fg: #f2f2f2; }
.exertpro-window.theme-dark .exertpro-input-row { background: #2b2d31; border-top-color: #3a3b3f; }
.exertpro-window.theme-dark .exertpro-input-row input { background: #1e1f22; color: #fff; border-color: #3a3b3f; }

.exertpro-header {
	background: var(--exertpro-primary, #8a6d3b);
	color: var(--exertpro-primary-text, #fff);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.exertpro-header img {
	width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.3);
}
.exertpro-header .exertpro-title { font-weight: 600; line-height: 1.2; color: var(--exertpro-name-color, inherit); font-size: var(--exertpro-name-size, 15px); }
.exertpro-header .exertpro-status { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 4px; }
.exertpro-status::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block;
}
.exertpro-header .exertpro-close {
    margin-left: auto;
    background: #fff !important;
    border: none;
    cursor: pointer;
    font-size: 20px;
    opacity: .85;
    padding: 7px 10px !important;
    color: var(--exertpro-primary, #8a6d3b) !important;
    border-radius: 5px !important;
}
.exertpro-header .exertpro-close:hover { 
	opacity: 1;
	border: none !important; 
}

.exertpro-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.exertpro-msg {
	max-width: 82%;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.exertpro-msg.bot { align-self: flex-start; background: var(--exertpro-bot-bg, #f1f0ee); color: var(--exertpro-bot-text, inherit); border-bottom-left-radius: 4px; }
.exertpro-msg.user { align-self: flex-end; background: var(--exertpro-primary, #8a6d3b); color: #fff; border-bottom-right-radius: 4px; }
.exertpro-msg.typing { align-self: flex-start; background: var(--exertpro-bot-bg, #f1f0ee); }
.exertpro-msg .exertpro-time { display: block; font-size: 10px; opacity: .6; margin-top: 3px; }

.exertpro-suggested {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: flex-end;
	max-width: 90%;
}
.exertpro-suggested button {
    background: var(--exertpro-primary, #8a6d3b) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    text-align: left !important;
    cursor: pointer !important;
    font-size: 13px !important;
}
.exertpro-suggested button:hover { opacity: .9; }

.exertpro-contact-btn {
	align-self: flex-start;
	background: transparent;
	border: 1px solid var(--exertpro-primary, #8a6d3b);
	color: var(--exertpro-primary, #8a6d3b);
	border-radius: 10px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	margin-top: 4px;
	display: inline-block;
	text-decoration: none;
}

.exertpro-typing-dots span {
	display: inline-block; width: 6px; height: 6px; margin-right: 3px;
	background: #999; border-radius: 50%; animation: exertpro-bounce 1s infinite;
}
.exertpro-typing-dots span:nth-child(2) { animation-delay: .15s; }
.exertpro-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes exertpro-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.exertpro-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid #eee;
	background: #fff;
}
.exertpro-input-row input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 14px;
	outline: none;
}
.exertpro-input-row button {
    background: var(--exertpro-primary, #8a6d3b) !important;
    border: none !important;
    color: #fff !important;
    width: 36px;
    height: 36px;
    border-radius: 5px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px !important;
}
.exertpro-input-row button:disabled { opacity: .5; cursor: default; }

.exertpro-footer {
	text-align: center;
	font-size: 11px;
	color: #999;
	padding: 6px 0 10px;
}

@media (max-width: 480px) {
	.exertpro-window {
		width: calc(100vw - 20px);
		height: calc(100vh - 100px);
	}
}
