@charset "UTF-8";
/**
 * Wap AI page (Ai controller; shop.css is not loaded).
 * (1) Mirror #shop-wap-menubar from shop.css: horizontal sub-nav + theme
 * (2) Card UI uses :root theme vars (getThemeRootVars('Wap'))
 */

/* Merchant sub-nav under top bar (this file is always loaded on AI) */
nav.shop-wap-nav-shell {
	clear: both;
	width: 100% !important;
	max-width: 100%;
	float: none !important;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
#shop-wap-menubar.shop-wap-subnav.shop-mega-tabs {
	position: sticky;
	top: 50px;
	z-index: 998;
	width: 100% !important;
	max-width: 100%;
	float: none !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	list-style: none;
	background: linear-gradient(180deg, var(--theme-color-light) 0%, #fff 62%) !important;
	border-bottom: 1px solid rgba(var(--theme-color-rgb), 0.25) !important;
	box-shadow: 0 2px 10px rgba(var(--theme-color-rgb), 0.1);
}
#shop-wap-menubar.shop-wap-subnav.shop-mega-tabs li {
	flex: 0 0 auto;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	list-style: none;
	margin: 0;
	padding: 0;
}
#shop-wap-menubar.shop-wap-subnav.shop-mega-tabs li a {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 14px;
	min-height: 44px;
	height: 2.2rem;
	line-height: 1.25;
	white-space: nowrap;
	font-size: 15px;
	-webkit-text-size-adjust: 100%;
	color: var(--theme-color) !important;
}
#shop-wap-menubar.shop-wap-subnav.shop-mega-tabs li a.on {
	color: var(--theme-color-dark, var(--theme-color)) !important;
	font-weight: 700;
	border-bottom: 3px solid var(--theme-color) !important;
	margin-bottom: -1px;
	background: rgba(var(--theme-color-rgb), 0.16);
}

/* AI chat layout */
.ai-wap-page {
	padding: 10px 10px 60px;
	background: linear-gradient(180deg, rgba(var(--theme-color-rgb), 0.06) 0%, #f4f5fb 40%);
}
.ai-wap-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(var(--theme-color-rgb), 0.12);
	overflow: hidden;
	border: 1px solid rgba(var(--theme-color-rgb), 0.12);
}
.ai-wap-header {
	padding: 10px 14px;
	border-bottom: 1px solid rgba(var(--theme-color-rgb), 0.14);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(90deg, rgba(var(--theme-color-rgb), 0.08) 0%, #fff 55%);
}
.ai-wap-title {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ai-wap-title-icon {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--theme-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.35);
}
.ai-wap-title-text {
	font-size: 15px;
	font-weight: 600;
	color: var(--theme-color-dark, var(--theme-color));
}
.ai-wap-subtitle {
	font-size: 11px;
	color: rgba(var(--theme-color-rgb), 0.68);
}
.ai-wap-chat {
	max-height: calc(100vh - 210px);
	overflow-y: auto;
	padding: 10px 12px;
	background:
		radial-gradient(circle at top left, rgba(var(--theme-color-rgb), 0.12), transparent),
		radial-gradient(circle at bottom right, rgba(var(--theme-color-rgb), 0.08), transparent),
		#f9fafb;
}
.ai-wap-empty {
	margin-top: 40px;
	text-align: center;
	color: rgba(var(--theme-color-rgb), 0.72);
	font-size: 13px;
}
.ai-wap-empty h3 {
	font-size: 16px;
	margin-bottom: 6px;
	color: var(--theme-color);
	font-weight: 600;
}
.ai-wap-chip {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(var(--theme-color-rgb), 0.28);
	background: rgba(var(--theme-color-rgb), 0.06);
	color: var(--theme-color-dark, var(--theme-color));
	font-size: 11px;
	margin: 3px;
}
.ai-wap-msg {
	display: flex;
	margin-bottom: 10px;
	max-width: 88%;
}
.ai-wap-msg-user {
	flex-direction: row-reverse;
	margin-left: auto;
}
.ai-wap-avatar {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--theme-color-hover), var(--theme-color));
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	margin: 0 6px;
}
.ai-wap-avatar-ai {
	background: var(--theme-gradient);
}
.ai-wap-bubble {
	padding: 8px 10px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.6;
	background: #fff;
	color: rgba(var(--theme-color-rgb), 0.92);
	border: 1px solid rgba(var(--theme-color-rgb), 0.12);
	box-shadow: 0 2px 6px rgba(var(--theme-color-rgb), 0.08);
	white-space: pre-wrap;
}
.ai-wap-msg-user .ai-wap-bubble {
	background: var(--theme-gradient);
	color: #fff !important;
	border-color: transparent;
}
.ai-wap-meta {
	margin-top: 3px;
	font-size: 10px;
	color: rgba(var(--theme-color-rgb), 0.55);
}
.ai-wap-footer {
	border-top: 1px solid rgba(var(--theme-color-rgb), 0.14);
	padding: 8px 10px 10px;
	background: #fff;
}
.ai-wap-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
	font-size: 11px;
	color: rgba(var(--theme-color-rgb), 0.65);
}
.ai-wap-tools-model {
	color: rgba(var(--theme-color-rgb), 0.62) !important;
}
.ai-wap-tool-btn {
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid rgba(var(--theme-color-rgb), 0.28);
	background: rgba(var(--theme-color-rgb), 0.06);
	font-size: 11px;
	color: var(--theme-color-dark, var(--theme-color));
}
.ai-wap-tool-btn:active {
	border-color: var(--theme-color);
	color: var(--theme-color);
	background: rgba(var(--theme-color-rgb), 0.12);
}
.ai-wap-tool-file {
	display: none;
}
.ai-wap-model-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 11px;
	color: rgba(var(--theme-color-rgb), 0.68);
}
.ai-wap-model-row span {
	color: rgba(var(--theme-color-rgb), 0.72);
}
.ai-wap-model-select {
	font-size: 12px;
	border-radius: 999px;
	border: 1px solid rgba(var(--theme-color-rgb), 0.28);
	padding: 4px 8px;
	background: #fff;
	color: var(--theme-color-dark, var(--theme-color));
}
.ai-wap-input-row {
	display: flex;
	gap: 6px;
	align-items: flex-end;
}
.ai-wap-input {
	flex: 1;
	min-height: 42px;
	max-height: 120px;
	padding: 6px 8px;
	border-radius: 10px;
	border: 1px solid rgba(var(--theme-color-rgb), 0.25);
	font-size: 13px;
	line-height: 1.5;
	resize: vertical;
	color: rgba(var(--theme-color-rgb), 0.95);
}
.ai-wap-input::placeholder {
	color: rgba(var(--theme-color-rgb), 0.45);
}
.ai-wap-input:focus {
	outline: none;
	border-color: var(--theme-color);
	box-shadow: 0 0 0 1px rgba(var(--theme-color-rgb), 0.22);
}
.ai-wap-send-btn {
	padding: 8px 10px;
	border-radius: 999px;
	border: none;
	background: var(--theme-gradient);
	color: #fff !important;
	font-size: 13px;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.35);
}
.ai-wap-send-btn[disabled] {
	opacity: 0.7;
	box-shadow: none;
}
.ai-wap-status {
	margin-top: 4px;
	font-size: 10px;
	color: rgba(var(--theme-color-rgb), 0.58);
}
.ai-wap-typing span {
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 1px;
	border-radius: 999px;
	background: var(--theme-color);
	animation: ai-wap-bounce 1s infinite ease-in-out;
}
.ai-wap-typing span:nth-child(2) {
	animation-delay: 0.12s;
}
.ai-wap-typing span:nth-child(3) {
	animation-delay: 0.24s;
}
@keyframes ai-wap-bounce {
	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.4;
	}
	40% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

#ai-wap-upload-status {
	font-size: 11px;
	color: rgba(var(--theme-color-rgb), 0.75);
	margin-left: 4px;
}
