/* Cybercom AI Chat widget */
:root {
	--ccb-primary: #0a1931;
	--ccb-accent: #00c2ff;
	--ccb-bot: #16243d;
	--ccb-user: #00c2ff;
	--ccb-text: #e8f1ff;
}

#ccb-root, #ccb-root * { box-sizing: border-box; }

.ccb-launcher {
	position: fixed;
	bottom: 22px;
	z-index: 999990;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 14px;
	border: none;
	border-radius: 50px;
	background: var(--ccb-accent);
	color: #04121f;
	font: 600 15px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(0,0,0,.28);
	transition: transform .15s ease, box-shadow .15s ease;
}
.ccb-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.34); }
.ccb-pos-right { right: 22px; }
.ccb-pos-left  { left: 22px; }
.ccb-launcher svg { width: 22px; height: 22px; flex: 0 0 auto; }
.ccb-launcher .ccb-dot {
	position: absolute; top: 8px; right: 12px;
	width: 10px; height: 10px; border-radius: 50%;
	background: #ff4d6d; border: 2px solid #fff;
}

.ccb-panel {
	position: fixed;
	bottom: 22px;
	z-index: 999991;
	width: 380px;
	max-width: calc(100vw - 32px);
	height: 600px;
	max-height: calc(100vh - 44px);
	display: none;
	flex-direction: column;
	overflow: hidden;
	border-radius: 18px;
	background: #0e1726;
	box-shadow: 0 24px 60px rgba(0,0,0,.45);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	animation: ccb-in .22s ease;
}
.ccb-panel.ccb-open { display: flex; }
@keyframes ccb-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ccb-header {
	background: var(--ccb-primary);
	color: var(--ccb-text);
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.ccb-header .ccb-logo {
	width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
	background: rgba(255,255,255,.1); flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; color: var(--ccb-accent);
}
.ccb-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ccb-header p { margin: 2px 0 0; font-size: 12px; opacity: .8; }
.ccb-header .ccb-status { font-size: 11px; display: flex; align-items: center; gap: 5px; opacity: .85; }
.ccb-header .ccb-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #28d17c; }
.ccb-close {
	margin-left: auto; background: transparent; border: none;
	color: var(--ccb-text); font-size: 22px; line-height: 1; cursor: pointer; opacity: .8;
}
.ccb-close:hover { opacity: 1; }

.ccb-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px;
	background: #0e1726;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ccb-msg { display: flex; gap: 8px; max-width: 85%; }
.ccb-msg .ccb-av {
	width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
	background: var(--ccb-accent); color: #04121f; font-weight: 700; font-size: 12px;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ccb-msg .ccb-av img { width: 100%; height: 100%; object-fit: cover; }
.ccb-bubble {
	padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45;
	color: #dce8f7; background: var(--ccb-bot); border-top-left-radius: 4px;
	white-space: pre-wrap; word-wrap: break-word;
}
.ccb-bot { align-self: flex-start; }
.ccb-user { align-self: flex-end; flex-direction: row-reverse; }
.ccb-user .ccb-bubble { background: var(--ccb-user); color: #04121f; border-top-left-radius: 14px; border-top-right-radius: 4px; }
.ccb-user .ccb-av { background: #24344d; color: #cfe2f7; }

.ccb-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ccb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #6f86a6; animation: ccb-bounce 1.2s infinite; }
.ccb-typing span:nth-child(2) { animation-delay: .2s; }
.ccb-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ccb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.ccb-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px 36px; }
.ccb-chip {
	background: transparent; border: 1px solid var(--ccb-accent); color: var(--ccb-accent);
	padding: 7px 14px; border-radius: 50px; font-size: 13px; cursor: pointer; transition: .15s;
}
.ccb-chip:hover { background: var(--ccb-accent); color: #04121f; }
.ccb-trigger-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--ccb-accent); color: #04121f; border: none;
	padding: 12px 22px; border-radius: 50px; font-weight: 600; font-size: 15px;
	cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.ccb-trigger-btn:hover { filter: brightness(1.05); }
.ccb-picker { align-items: center; }
.ccb-dt {
	background: #111c2e; border: 1px solid #243349; color: #e6eefb;
	border-radius: 10px; padding: 8px 10px; font-size: 13px; font-family: inherit;
}
.ccb-dt::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

.ccb-footer { padding: 12px; background: #0b1320; border-top: 1px solid rgba(255,255,255,.06); }
.ccb-inputrow { display: flex; gap: 8px; align-items: flex-end; }
.ccb-input {
	flex: 1 1 auto; resize: none; border: 1px solid #243349; background: #111c2e;
	color: #e6eefb; border-radius: 12px; padding: 11px 12px; font-size: 14px; max-height: 96px;
	font-family: inherit; line-height: 1.4;
}
.ccb-input:focus { outline: none; border-color: var(--ccb-accent); }
.ccb-input::placeholder { color: #5d7088; }
.ccb-send {
	flex: 0 0 auto; width: 42px; height: 42px; border: none; border-radius: 12px;
	background: var(--ccb-accent); color: #04121f; cursor: pointer; display: flex;
	align-items: center; justify-content: center;
}
.ccb-send:disabled { opacity: .5; cursor: default; }
.ccb-send svg { width: 20px; height: 20px; }
.ccb-branding { text-align: center; font-size: 11px; color: #5d7088; margin-top: 8px; }
.ccb-branding a { color: #5d7088; text-decoration: none; }

@media (max-width: 480px) {
	.ccb-panel { width: 100vw; height: 100vh; max-height: 100vh; bottom: 0; right: 0; left: 0; border-radius: 0; }
	.ccb-pos-left { left: 16px; } .ccb-pos-right { right: 16px; }
}
