/* Valtero Chat Widget - Black & Gold Theme */
:root {
	--vcw-black: #0f0f0f;
	--vcw-black-soft: #1a1a1a;
	--vcw-gold: #c9a44c;
	--vcw-gold-light: #e4c775;
	--vcw-white: #f7f5f0;
	--vcw-whatsapp: #25D366;
}

.vcw-root, .vcw-root * {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vcw-root {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999999;
}

/* Launcher button */
.vcw-launcher {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--vcw-black), var(--vcw-black-soft));
	border: 1.5px solid var(--vcw-gold);
	color: var(--vcw-gold-light);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0,0,0,0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vcw-launcher:hover {
	transform: scale(1.06);
	box-shadow: 0 8px 26px rgba(0,0,0,0.45);
}
.vcw-launcher .vcw-icon-close { display: none; }
.vcw-root.vcw-open .vcw-launcher .vcw-icon-chat { display: none; }
.vcw-root.vcw-open .vcw-launcher .vcw-icon-close { display: flex; }

/* Options bubble menu */
.vcw-options {
	position: absolute;
	right: 4px;
	bottom: 74px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.vcw-root.vcw-open .vcw-options {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.vcw-option {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--vcw-black);
	color: var(--vcw-white);
	border: 1px solid var(--vcw-gold);
	border-radius: 30px;
	padding: 10px 18px;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 14px rgba(0,0,0,0.3);
	transition: background 0.2s ease, transform 0.15s ease;
}
.vcw-option:hover {
	transform: translateX(-2px);
	background: var(--vcw-black-soft);
}
.vcw-option-whatsapp .vcw-option-icon { color: var(--vcw-whatsapp); }
.vcw-option-ai .vcw-option-icon { color: var(--vcw-gold-light); }
.vcw-option-icon { display: flex; align-items: center; }

/* AI Chat panel */
.vcw-ai-panel {
	position: absolute;
	right: 0;
	bottom: 74px;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 460px;
	max-height: 70vh;
	background: var(--vcw-white);
	border-radius: 14px;
	overflow: hidden;
	display: none;
	flex-direction: column;
	box-shadow: 0 12px 34px rgba(0,0,0,0.35);
	border: 1px solid var(--vcw-gold);
}
.vcw-ai-panel.vcw-visible {
	display: flex;
}

.vcw-ai-header {
	background: var(--vcw-black);
	color: var(--vcw-white);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 2px solid var(--vcw-gold);
}
.vcw-ai-logo {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--vcw-gold);
}
.vcw-ai-header-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	flex: 1;
}
.vcw-ai-header-text strong {
	font-size: 14px;
	color: var(--vcw-white);
	letter-spacing: 0.3px;
}
.vcw-ai-header-text span {
	font-size: 11px;
	color: var(--vcw-gold-light);
	text-transform: uppercase;
	letter-spacing: 1px;
}
.vcw-ai-close {
	background: transparent;
	border: none;
	color: var(--vcw-white);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
.vcw-ai-close:hover { color: var(--vcw-gold-light); }

.vcw-ai-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fdfcf9;
}

.vcw-msg {
	max-width: 85%;
	padding: 9px 13px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.45;
	white-space: pre-line;
	word-wrap: break-word;
}
.vcw-msg-bot {
	align-self: flex-start;
	background: #efe9db;
	color: var(--vcw-black);
	border-bottom-left-radius: 4px;
}
.vcw-msg-user {
	align-self: flex-end;
	background: var(--vcw-black);
	color: var(--vcw-gold-light);
	border-bottom-right-radius: 4px;
}
.vcw-msg-typing {
	align-self: flex-start;
	background: #efe9db;
	color: #999;
	font-style: italic;
}

.vcw-ai-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e3ddc9;
	background: var(--vcw-white);
}
.vcw-ai-input-row input {
	flex: 1;
	border: 1px solid #d8d0b8;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 13.5px;
	outline: none;
}
.vcw-ai-input-row input:focus {
	border-color: var(--vcw-gold);
}
.vcw-ai-input-row button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: var(--vcw-black);
	color: var(--vcw-gold-light);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.vcw-ai-input-row button:hover {
	background: var(--vcw-black-soft);
}

.vcw-ai-footer {
	text-align: center;
	font-size: 11px;
	color: #8a8368;
	padding: 6px 10px 10px;
	background: var(--vcw-white);
}
.vcw-ai-footer a {
	color: var(--vcw-gold);
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 480px) {
	.vcw-ai-panel {
		width: calc(100vw - 30px);
		right: -6px;
	}
}
