/* Seville VTC — 右侧悬浮栏（.svf- 前缀） */
.svtc-float { --svf-dark: #0f172a; --svf-gold: #c8a45a; position: fixed; right: 14px; bottom: 90px; z-index: 99990; font-family: inherit; font-size: 14px; }
.svtc-float * { box-sizing: border-box; }
.svf-bar { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.svf-btn { position: relative; display: flex; align-items: center; gap: 8px; height: 50px; min-width: 50px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
	color: #fff; font: inherit; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); transition: transform .15s; }
.svf-btn:hover { transform: translateY(-2px); color: #fff; }
.svf-btn svg { width: 24px; height: 24px; flex: 0 0 auto; }
.svf-btn--wa { background: #25d366; }
.svf-btn--wc { background: #07c160; }
.svf-btn--ai { background: var(--svf-dark); }
.svf-btn--ai svg { color: var(--svf-gold); }
.svf-dot { position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #fff; }

.svf-panel { position: absolute; right: 0; bottom: 0; width: 300px; background: #fff; color: #0f172a; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); padding: 18px; }
.svf-panel[hidden] { display: none; }
.svf-panel h4 { margin: 0 0 10px; font-size: 16px; }
.svf-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #64748b; }
.svf-qr { display: block; width: 200px; height: 200px; margin: 0 auto; object-fit: contain; border-radius: 8px; border: 1px solid #e2e8f0; }
.svf-muted { text-align: center; color: #64748b; font-size: 12px; margin: 6px 0 10px; }
.svf-wcid { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: #f1f5f9; border-radius: 10px; padding: 8px 10px; }
.svf-wcid code { font-size: 15px; font-weight: 700; background: none; }
.svf-copy { border: 0; border-radius: 8px; background: #07c160; color: #fff; padding: 7px 10px; cursor: pointer; font: inherit; font-size: 13px; }

.svf-panel--ai { width: 370px; height: 560px; max-height: calc(100vh - 120px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.svf-panel--ai[hidden] { display: none; }
.svf-ai__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--svf-dark); color: #fff; }
.svf-ai__head small { display: block; font-weight: 400; opacity: .7; font-size: 12px; }
.svf-ai__head .svf-x { position: static; color: #fff; }
.svf-ai__log { flex: 1; overflow-y: auto; padding: 14px; background: #f8fafc; display: flex; flex-direction: column; gap: 8px; }
.svf-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; line-height: 1.5; word-wrap: break-word; }
.svf-msg a { color: inherit; text-decoration: underline; }
.svf-msg--assistant { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.svf-msg--user { align-self: flex-end; background: var(--svf-dark); color: #fff; border-bottom-right-radius: 4px; }
.svf-msg.is-typing { color: #94a3b8; font-style: italic; }
.svf-msg.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.svf-ai__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #f8fafc; }
.svf-ai__chips[hidden] { display: none; }
.svf-ai__chips button { border: 1px solid var(--svf-gold); background: #fffbeb; color: #92400e; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.svf-ai__links { display: flex; gap: 12px; padding: 8px 14px; font-size: 12px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.svf-ai__links a { color: #0f172a; text-decoration: none; font-weight: 600; }
.svf-ai__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e2e8f0; background: #fff; }
.svf-ai__form textarea { flex: 1; resize: none; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 10px; font: inherit; max-height: 90px; }
.svf-ai__form button { border: 0; border-radius: 10px; background: var(--svf-dark); color: #fff; padding: 0 14px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 600px) {
	.svtc-float { right: 10px; bottom: 76px; }
	.svf-btn { height: 46px; min-width: 46px; padding: 0 12px; }
	.svf-btn span { display: none; }
	.svf-panel--ai { position: fixed; inset: auto 8px 8px 8px; width: auto; height: 78vh; }
}

/* ---------- 兼容 Hello Elementor 等主题的按钮悬停样式 ---------- */
.svtc-float button { text-transform: none; letter-spacing: normal; }
.svtc-float .svf-btn:hover, .svtc-float .svf-btn:focus { color: #fff; }
.svtc-float .svf-btn--wc:hover, .svtc-float .svf-btn--wc:focus { background: #07c160; }
.svtc-float .svf-btn--ai:hover, .svtc-float .svf-btn--ai:focus { background: var(--svf-dark); }
.svtc-float .svf-x:hover, .svtc-float .svf-x:focus { background: none; color: #0f172a; }
.svtc-float .svf-ai__head .svf-x:hover, .svtc-float .svf-ai__head .svf-x:focus { color: #fff; }
.svtc-float .svf-copy:hover, .svtc-float .svf-copy:focus { background: #06a552; color: #fff; }
.svtc-float .svf-ai__chips button:hover, .svtc-float .svf-ai__chips button:focus { background: #fef3c7; color: #92400e; }
.svtc-float .svf-ai__form button:hover, .svtc-float .svf-ai__form button:focus { background: #1e293b; color: #fff; }
/* 手机上：保存二维码 / 打开微信 */
.svtc-float a.svf-save, .svtc-float a.svf-openwx { display: block; text-align: center; text-decoration: none; margin-top: 8px; padding: 10px; }
.svtc-float a.svf-openwx { background: #0f172a; }
