/* PriyaMart Chat Assistant */
#pmca-root, #pmca-root * { box-sizing: border-box; }
#pmca-root { position: fixed; right: 18px; bottom: 96px; z-index: 99990; font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #e9ecff; }
#pmca-root button, #pmca-root input, #pmca-root a { all: unset; box-sizing: border-box; cursor: pointer; }
#pmca-root input { cursor: text; }
#pmca-root a:focus-visible, #pmca-root button:focus-visible, #pmca-root input:focus-visible { outline: 2px solid #ffc800; outline-offset: 2px; }

/* launcher */
#pmca-root .pmca-launch { position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #1f3cff, #6c3df4); box-shadow: 0 10px 28px rgba(31, 60, 255, .45); color: #fff; transition: transform .2s; }
#pmca-root .pmca-launch:hover { transform: scale(1.07); }
#pmca-root .pmca-launch svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#pmca-root .pmca-dot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; background: #ffc800; border: 2px solid #fff; border-radius: 50%; }
#pmca-root .pmca-tip { position: absolute; right: 68px; bottom: 10px; background: #fff; color: #14183a; padding: 8px 14px; border-radius: 14px; font-weight: 600; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: pmca-pop .35s ease; }
#pmca-root.pmca-open .pmca-launch, #pmca-root.pmca-open .pmca-tip { display: none; }
@keyframes pmca-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* panel */
#pmca-root .pmca-panel { display: none; flex-direction: column; width: 390px; height: min(640px, calc(100vh - 130px)); background: #12152b; border: 1px solid rgba(124, 140, 255, .25); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(5, 8, 30, .55); }
#pmca-root.pmca-open .pmca-panel { display: flex; animation: pmca-pop .25s ease; }
#pmca-root .pmca-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, #1a2a9c, #5b3bd6); color: #fff; }
#pmca-root .pmca-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-weight: 700; font-size: 18px; }
#pmca-root .pmca-title { flex: 1; min-width: 0; }
#pmca-root .pmca-name { display: block; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pmca-root .pmca-status { display: block; font-size: 12px; opacity: .9; }
#pmca-root .pmca-status:before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #58e08a; }
#pmca-root .pmca-close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 20px; line-height: 1; }
#pmca-root .pmca-close:hover { background: rgba(255, 255, 255, .3); }

/* messages */
#pmca-root .pmca-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
#pmca-root .pmca-body::-webkit-scrollbar { width: 6px; }
#pmca-root .pmca-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 6px; }
#pmca-root .pmca-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-line; }
#pmca-root .pmca-bot { align-self: flex-start; background: #1d2245; border-bottom-left-radius: 5px; color: #e9ecff; }
#pmca-root .pmca-user { align-self: flex-end; background: linear-gradient(135deg, #2c47ff, #6c3df4); border-bottom-right-radius: 5px; color: #fff; }
#pmca-root .pmca-msg a.pmca-inline { color: #ffd84d; text-decoration: underline; }
#pmca-root .pmca-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
#pmca-root .pmca-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8b97ff; animation: pmca-bounce 1s infinite; }
#pmca-root .pmca-typing i:nth-child(2) { animation-delay: .15s; }
#pmca-root .pmca-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pmca-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* chips + links */
#pmca-root .pmca-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
#pmca-root .pmca-chip { padding: 7px 13px; border: 1px solid rgba(124, 140, 255, .5); border-radius: 18px; color: #b9c2ff; font-weight: 600; font-size: 13px; background: transparent; transition: background .15s, color .15s; }
#pmca-root .pmca-chip:hover { background: rgba(124, 140, 255, .2); color: #fff; }
#pmca-root .pmca-links { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
#pmca-root .pmca-link { padding: 8px 14px; border-radius: 18px; background: #ffc800; color: #1a1d3a; font-weight: 700; font-size: 13px; text-decoration: none; }
#pmca-root .pmca-link:hover { background: #ffd84d; }
#pmca-root .pmca-link.pmca-wa { background: #25d366; color: #fff; }

/* product cards */
#pmca-root .pmca-cards { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
#pmca-root .pmca-card { display: flex; gap: 10px; padding: 9px; background: #181c3c; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; }
#pmca-root .pmca-thumb { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 10px; background: #0d1030 center / cover no-repeat; }
#pmca-root .pmca-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#pmca-root .pmca-pname { font-weight: 600; font-size: 13px; line-height: 1.35; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#pmca-root .pmca-cat { font-size: 11px; color: #96a2ff; }
#pmca-root .pmca-price { font-size: 13px; font-weight: 700; color: #ffd84d; }
#pmca-root .pmca-price s { margin-left: 6px; font-weight: 400; color: #8c93c9; }
#pmca-root .pmca-acts { display: flex; gap: 6px; margin-top: 3px; }
#pmca-root .pmca-btn { padding: 5px 11px; border-radius: 12px; font-size: 12px; font-weight: 700; border: 1px solid rgba(124, 140, 255, .55); color: #c9d0ff; text-decoration: none; }
#pmca-root .pmca-btn.pmca-buy { background: #ffc800; border-color: #ffc800; color: #1a1d3a; }

/* input */
#pmca-root .pmca-foot { padding: 10px 12px 8px; border-top: 1px solid rgba(255, 255, 255, .08); background: #101328; }
#pmca-root .pmca-form { display: flex; gap: 8px; align-items: center; }
#pmca-root .pmca-input { flex: 1; min-width: 0; padding: 11px 16px; background: #181c3c; border: 1px solid rgba(124, 140, 255, .28); border-radius: 24px; color: #fff; font-size: 14px; }
#pmca-root .pmca-input::placeholder { color: #8087b8; }
#pmca-root .pmca-send { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #2c47ff, #6c3df4); color: #fff; }
#pmca-root .pmca-send svg { width: 19px; height: 19px; fill: #fff; }
#pmca-root .pmca-note { margin-top: 6px; text-align: center; font-size: 11px; color: #858cc0; }
#pmca-root .pmca-note a { color: #b9c2ff; text-decoration: underline; }

/* mobile */
@media (max-width: 560px) {
	#pmca-root { right: 12px; bottom: 150px; }
	#pmca-root.pmca-open { right: 0; bottom: 0; left: 0; top: 0; }
	#pmca-root.pmca-open .pmca-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
	#pmca-root .pmca-launch { width: 54px; height: 54px; }
	#pmca-root .pmca-tip { right: 62px; }
}
@media (prefers-reduced-motion: reduce) { #pmca-root * { animation: none !important; transition: none !important; } }
