/* Asistente de Armería Wolf: burbuja y panel */
.wolf-chat {
	--wc-accent: #0675e9;
	--wc-accent-dark: #0458b5;
	--wc-black: #070707;
	--wc-line: #e2e0dc;
	--wc-sand: #f4f3f1;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	font-family: Inter, system-ui, sans-serif;
}
.wolf-chat__fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: var(--wc-accent);
	color: #fff;
	box-shadow: 0 10px 28px rgba(6, 117, 233, .4);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}
.wolf-chat__fab:hover { background: var(--wc-accent-dark); transform: translateY(-2px); }
.wolf-chat.is-open .wolf-chat__fab { transform: scale(.9); }

.wolf-chat__panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	display: flex;
	flex-direction: column;
	width: 380px;
	height: min(600px, calc(100vh - 120px));
	overflow: hidden;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(7, 7, 7, .22);
	animation: wolf-chat-in .25s cubic-bezier(.2, .7, .2, 1);
}
.wolf-chat__panel[hidden] { display: none; }
@keyframes wolf-chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.wolf-chat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: linear-gradient(135deg, #070707 0%, #10233d 100%);
	color: #fff;
}
.wolf-chat__head strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; }
.wolf-chat__head span { font-size: .78rem; color: #9fc9ff; }
.wolf-chat__close { padding: 6px !important; background: transparent !important; border: 0; color: #fff; cursor: pointer; min-height: 0 !important; }

.wolf-chat__log {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	background: var(--wc-sand);
}
.wolf-chat__msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: .93rem;
	line-height: 1.5;
	word-wrap: break-word;
}
.wolf-chat__msg--bot { align-self: flex-start; background: #fff; color: #1c1c1c; border-bottom-left-radius: 4px; }
.wolf-chat__msg--yo { align-self: flex-end; background: var(--wc-accent); color: #fff; border-bottom-right-radius: 4px; }
.wolf-chat__msg a { color: var(--wc-accent); font-weight: 600; }

.wolf-chat__typing { display: inline-flex; gap: 4px; }
.wolf-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: #9a958f; animation: wolf-chat-dot 1s infinite ease-in-out; }
.wolf-chat__typing span:nth-child(2) { animation-delay: .15s; }
.wolf-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wolf-chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.wolf-chat__products { display: grid; gap: 8px; align-self: stretch; }
.wolf-chat__product {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--wc-line);
	border-radius: 10px;
	color: #1c1c1c !important;
	text-decoration: none;
	transition: border-color .15s ease;
}
.wolf-chat__product:hover { border-color: var(--wc-accent); }
.wolf-chat__product img, .wolf-chat__noimg { flex: 0 0 64px; width: 64px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; }
.wolf-chat__noimg { background: var(--wc-sand); }
.wolf-chat__pinfo strong { display: block; font-size: .86rem; line-height: 1.3; }
.wolf-chat__pinfo span { font-size: .8rem; color: #5f5b57; }

.wolf-chat__action {
	align-self: flex-start;
	padding: 10px 16px;
	border-radius: 8px;
	background: #1fa855;
	color: #fff !important;
	font-weight: 700;
	font-size: .88rem;
	text-decoration: none;
}
.wolf-chat__action:hover { background: #178a45; }

.wolf-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--wc-sand); }
.wolf-chat__chips:empty { display: none; }
.wolf-chat__chips button {
	padding: 7px 12px !important;
	min-height: 0 !important;
	border: 1px solid #cfd8e3;
	border-radius: 999px;
	background: #fff;
	color: var(--wc-accent-dark);
	font: 600 .8rem Inter, sans-serif !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
}
.wolf-chat__chips button:hover { border-color: var(--wc-accent); }

.wolf-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--wc-line); background: #fff; }
.wolf-chat__form input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--wc-line);
	border-radius: 10px;
	font-size: .93rem;
}
.wolf-chat__form input:focus { outline: none; border-color: var(--wc-accent); box-shadow: 0 0 0 3px rgba(6, 117, 233, .15); }
.wolf-chat__form button {
	flex: 0 0 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0;
	border-radius: 10px;
	background: var(--wc-accent);
	color: #fff;
	cursor: pointer;
}
.wolf-chat__legal { margin: 0; padding: 0 12px 10px; background: #fff; font-size: .7rem; color: #8a857f; text-align: center; }

@media (max-width: 520px) {
	.wolf-chat { right: 14px; bottom: 14px; }
	.wolf-chat.is-open { inset: 0; }
	.wolf-chat.is-open .wolf-chat__fab { display: none; }
	.wolf-chat__panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; }
}
