#tmcb-root { position: fixed; bottom: 20px; right: 20px; z-index: 999999; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

#tmcb-bubble {
	width: 58px; height: 58px; border-radius: 50%; border: none;
	background: linear-gradient(135deg, #4b7bc2, #395f99); color: #fff; font-size: 24px; cursor: pointer;
	box-shadow: 0 6px 20px rgba(57,95,153,.35);
	transition: transform .15s ease, box-shadow .15s ease;
}
#tmcb-bubble:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(57,95,153,.45); }

#tmcb-panel {
	position: absolute; bottom: 74px; right: 0;
	width: 360px; max-width: calc(100vw - 40px); height: 480px; max-height: 72vh;
	background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(20,30,50,.2);
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid rgba(0,0,0,.04);
}
#tmcb-panel.tmcb-hidden { display: none; }

#tmcb-header {
	background: linear-gradient(135deg, #4b7bc2, #395f99); color: #fff; padding: 14px 16px;
	display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px;
}
#tmcb-header button { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; opacity: .85; }
#tmcb-header button:hover { opacity: 1; }

#tmcb-body { flex: 1; overflow-y: auto; padding: 14px; background: #f4f6fa; }

.tmcb-msg { max-width: 82%; margin-bottom: 10px; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.tmcb-bot { background: #fff; color: #222; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-bottom-left-radius: 4px; }
.tmcb-user { background: linear-gradient(135deg, #4b7bc2, #395f99); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.tmcb-typing { opacity: .55; font-style: italic; }

.tmcb-email-capture { max-width: 100%; }
.tmcb-email-row { display: flex; gap: 6px; margin-top: 8px; }
.tmcb-email-input { flex: 1; border: 1px solid #dde2ea; border-radius: 8px; padding: 7px 10px; font-size: 13px; outline: none; }
.tmcb-email-input:focus { border-color: #4b7bc2; }
.tmcb-email-submit { background: #395f99; color: #fff; border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.tmcb-email-submit:disabled { opacity: .5; cursor: default; }

#tmcb-input-row { display: flex; border-top: 1px solid #ececf0; padding: 10px; gap: 8px; background: #fff; }
#tmcb-input { flex: 1; border: 1px solid #dde2ea; border-radius: 22px; padding: 9px 14px; font-size: 14px; outline: none; }
#tmcb-input:focus { border-color: #4b7bc2; }
#tmcb-input:disabled { background: #f4f6fa; color: #999; }
#tmcb-send { background: #395f99; color: #fff; border: none; border-radius: 22px; padding: 9px 18px; cursor: pointer; font-size: 14px; font-weight: 500; }
#tmcb-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 480px) {
	#tmcb-panel { width: calc(100vw - 40px); }
}
