/* eTutun Chatbot — stiluri widget */
#etc-root { position: fixed; bottom: 20px; right: 20px; z-index: 99999; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
#etc-root * { box-sizing: border-box; }
.etc-hidden { display: none !important; }

#etc-bubble {
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--etc-accent, #10171e); color: #fff; border: none; cursor: pointer;
	font-size: 26px; box-shadow: 0 4px 14px rgba(0,0,0,.3);
	transition: transform .15s ease;
}
#etc-bubble:hover { transform: scale(1.07); }

#etc-window {
	width: 360px; max-width: calc(100vw - 30px);
	height: 780px; max-height: calc(100vh - 40px);
	background: #fff; border-radius: 14px; overflow: hidden;
	box-shadow: 0 8px 30px rgba(0,0,0,.35);
	display: flex; flex-direction: column;
}

#etc-header {
	background: var(--etc-accent, #10171e); color: #fff; padding: 12px 16px;
	display: flex; justify-content: space-between; align-items: center;
	font-weight: 600; font-size: 15px;
}
#etc-close, #etc-reset {
	background: none; border: none; color: #fff;
	font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px;
}
#etc-reset { font-size: 17px; opacity: .85; margin-right: 6px; }
#etc-reset:hover { opacity: 1; }

#etc-messages { flex: 1; overflow-y: auto; padding: 14px; background: #f7f4f1; }
.etc-msg {
	max-width: 85%; margin-bottom: 10px; padding: 9px 13px;
	border-radius: 12px; font-size: 13px; font-weight: 400; line-height: 1.45;
	white-space: pre-wrap; word-wrap: break-word;
}
.etc-user { background: var(--etc-accent, #10171e); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.etc-assistant { background: #fff; color: #222; border: 1px solid #e5ddd5; border-bottom-left-radius: 4px; }

/* Carduri de produs */
.etc-products { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.etc-card {
	display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid #e5ddd5; border-radius: 10px;
	padding: 8px; text-decoration: none; color: #222;
	transition: box-shadow .15s ease, transform .15s ease;
}
.etc-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); transform: translateY(-1px); }
.etc-card img {
	width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
	flex-shrink: 0; background: #f0ece8;
}
.etc-card-info { min-width: 0; }
.etc-card-name {
	font-size: 13px; font-weight: 600; line-height: 1.3;
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.etc-card-price { font-size: 13px; color: var(--etc-accent, #10171e); font-weight: 700; margin-top: 3px; }
.etc-card-old { color: #999; font-weight: 400; text-decoration: line-through; margin-right: 6px; font-size: 12px; }
.etc-card-stock { color: #c0392b; font-weight: 400; font-size: 11px; margin-left: 6px; }

#etc-typing { padding: 4px 16px 8px; font-size: 12px; color: #8a7a6d; background: #f7f4f1; font-style: italic; }

#etc-form { display: flex; border-top: 1px solid #e5ddd5; background: #fff; }
#etc-input {
	flex: 1; border: none; padding: 12px 14px; font-size: 14px; outline: none;
}
#etc-send {
	border: none; background: var(--etc-accent, #10171e); color: #fff; padding: 0 18px;
	cursor: pointer; font-size: 14px; font-weight: 600;
}
#etc-send:hover { filter: brightness(1.25); }

#etc-disclaimer {
	font-size: 10px; color: #999; text-align: center;
	padding: 5px; background: #fff; border-top: 1px solid #f0ece8;
}

@media (max-width: 480px) {
	#etc-window { width: calc(100vw - 20px); height: 70vh; }
	#etc-root { bottom: 10px; right: 10px; }
}
