/* MW Akció Asszisztens */
.mwas, .mwas *, .mwas *::before, .mwas *::after { box-sizing: border-box; }
.mwas {
	--mwas-accent: #F07D00;
	--mwas-accent-dark: #ad5a00;
	--mwas-ink: #23272b;
	--mwas-muted: #6b7178;
	--mwas-line: #e6e8eb;
	--mwas-soft: #f5f6f7;
	position: fixed; right: 20px; bottom: 20px; z-index: 99999;
	font-family: inherit; font-size: 15px; line-height: 1.45; color: var(--mwas-ink);
}
.mwas button { font-family: inherit; cursor: pointer; }

/* Lebegő gomb */
.mwas-fab {
	width: 62px; height: 62px; border-radius: 50%; border: 0;
	background: var(--mwas-accent); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.12);
	transition: transform .18s ease, box-shadow .18s ease;
	margin-left: auto;
}
.mwas-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.mwas-fab:focus-visible { outline: 3px solid var(--mwas-accent-dark); outline-offset: 3px; }

/* Buborék-tipp */
.mwas-tip {
	position: absolute; right: 0; bottom: 76px;
	display: flex; align-items: flex-start; gap: 4px;
	background: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 8px 10px 14px;
	box-shadow: 0 8px 24px rgba(0,0,0,.16); width: max-content; max-width: 260px;
	opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.mwas-tip.is-show { opacity: 1; transform: none; pointer-events: auto; }
.mwas-tip-txt { background: none; border: 0; padding: 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--mwas-ink); }
.mwas-tip-x { background: none; border: 0; padding: 2px; color: var(--mwas-muted); line-height: 0; }

/* Panel */
.mwas-panel {
	position: absolute; right: 0; bottom: 78px;
	width: 390px; height: min(600px, calc(100vh - 120px));
	background: #fff; border-radius: 18px; overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.1);
	display: flex; flex-direction: column;
	opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
	pointer-events: none; visibility: hidden;
	transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.mwas.is-open .mwas-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s ease, transform .2s ease; }

.mwas-head {
	display: flex; align-items: center; gap: 4px;
	background: var(--mwas-accent); color: #fff; padding: 14px 10px 14px 18px;
}
.mwas-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mwas-title strong { font-size: 17px; font-weight: 700; }
.mwas-title span { font-size: 12.5px; opacity: .92; }
.mwas-ico { background: transparent; border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mwas-ico:hover { background: rgba(255,255,255,.18); }
.mwas-ico:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.mwas-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--mwas-soft); overscroll-behavior: contain; }

.mwas-msg { margin: 0 0 10px; max-width: 92%; word-wrap: break-word; }
.mwas-user {
	margin-left: auto; width: fit-content;
	background: var(--mwas-accent-dark); color: #fff;
	padding: 9px 13px; border-radius: 16px 16px 4px 16px;
}
.mwas-bot .mwas-text {
	background: #fff; border: 1px solid var(--mwas-line);
	padding: 10px 13px; border-radius: 16px 16px 16px 4px; width: fit-content; max-width: 100%;
}

/* Találati kártyák */
.mwas-items { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mwas-card {
	display: flex; gap: 11px; background: #fff; border: 1px solid var(--mwas-line);
	border-radius: 12px; padding: 10px; transition: border-color .15s;
}
.mwas-card:hover { border-color: var(--mwas-accent); }
.mwas-thumb { width: 58px; height: 58px; object-fit: contain; flex: 0 0 58px; border-radius: 8px; background: var(--mwas-soft); }
.mwas-cbody { flex: 1; min-width: 0; }
.mwas-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.mwas-tags span { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; line-height: 1.4; letter-spacing: .02em; }
.mwas-brand { background: #2f3337; color: #fff; }
.mwas-num { background: var(--mwas-soft); color: var(--mwas-ink); border: 1px solid var(--mwas-line); }
.mwas-new { background: #d32f2f; color: #fff; }
.mwas-ctitle { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.mwas-sub { font-size: 12.5px; color: var(--mwas-muted); margin-top: 1px; }
.mwas-desc {
	font-size: 13px; margin-top: 4px; color: #3a3f44;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mwas-gift { font-size: 13px; font-weight: 700; color: var(--mwas-accent-dark); margin-top: 4px; }
.mwas-price { font-size: 13px; font-weight: 700; margin-top: 4px; }
.mwas-link {
	display: inline-block; margin-top: 7px; font-size: 13px; font-weight: 700;
	color: var(--mwas-accent-dark) !important; text-decoration: none !important;
}
.mwas-link:hover { text-decoration: underline !important; }

/* Chipek */
.mwas-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.mwas-chip {
	background: #fff; border: 1.5px solid var(--mwas-accent); color: var(--mwas-accent-dark);
	font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; line-height: 1.2;
	transition: background .15s, color .15s;
}
.mwas-chip:hover, .mwas-chip:focus-visible { background: var(--mwas-accent-dark); border-color: var(--mwas-accent-dark); color: #fff; outline: none; }
.mwas-chip-more { background: var(--mwas-accent-dark); border-color: var(--mwas-accent-dark); color: #fff; }

/* Gépel… */
.mwas-typing { display: flex; gap: 4px; background: #fff; border: 1px solid var(--mwas-line); width: 58px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; }
.mwas-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b4b9be; animation: mwas-b 1s infinite ease-in-out; }
.mwas-typing span:nth-child(2) { animation-delay: .15s; }
.mwas-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mwas-b { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

/* Beviteli sor */
.mwas-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--mwas-line); background: #fff; margin: 0; }
.mwas-input {
	flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--mwas-line) !important; border-radius: 12px !important;
	padding: 0 14px !important; font-size: 16px !important; font-family: inherit; color: var(--mwas-ink); background: #fff !important; box-shadow: none !important;
}
.mwas-input:focus { border-color: var(--mwas-accent) !important; outline: none; }
.mwas-send {
	width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 12px;
	background: var(--mwas-accent-dark); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0;
}
.mwas-send:hover { filter: brightness(1.08); }

/* Mobil: teljes képernyő */
@media (max-width: 600px) {
	.mwas { right: 14px; bottom: 14px; }
	.mwas-fab { width: 56px; height: 56px; }
	.mwas-tip { bottom: 68px; }
	.mwas-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: auto; right: auto; }
	.mwas.is-open .mwas-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mwas *, .mwas *::before { transition: none !important; animation: none !important; }
}
