/**
 * Urelx 在线客服 - 前台悬浮窗
 * 配色沿用 Woodmart 主题变量，主色 rgb(19,134,112)。
 * 所有选择器均限定在 .urs-widget 内，避免被主题全局 button/textarea 样式覆盖。
 */

/* 新客服替换旧入口：隐藏 Chatway 与旧悬浮联系按钮 */
.chatway--container,
.chatway--trigger-container,
#chatway,
.urelx-float-contact {
	display: none !important;
}

.urs-widget {
	--urs-accent: #138670;
	--urs-accent-light: #17a184;
	--urs-accent-dark: #0b6353;
	--urs-grad: linear-gradient(135deg, #17a184 0%, #0e7561 100%);
	--urs-border: rgba(0, 0, 0, 0.08);
	--urs-muted: #8a8a8a;
	--urs-soft: #f4f8f6;
	--urs-danger: #e04f4f;
	--urs-radius: 16px;
	--urs-shadow: 0 20px 60px rgba(12, 45, 38, 0.18), 0 2px 8px rgba(12, 45, 38, 0.06);
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	font-family: inherit;
	font-size: 14px;
	color: #242424;
}

.urs-widget *,
.urs-widget *::before,
.urs-widget *::after {
	box-sizing: border-box;
}

.urs-widget [hidden] {
	display: none !important;
}

.urs-widget button {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	min-height: 0;
	min-width: 0;
	line-height: normal;
}

.urs-widget textarea {
	font-family: inherit;
}

.urs-widget .urs-toast {
	position: absolute;
	right: 0;
	bottom: 132px;
	max-width: 300px;
	padding: 9px 12px;
	border-radius: 8px;
	background: rgba(28, 28, 28, 0.9);
	color: #fff;
	font-size: 12.5px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.urs-widget .urs-toast.is-show {
	opacity: 1;
	transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* 触发按钮                                                            */
/* ------------------------------------------------------------------ */

.urs-widget .urs-btn {
	position: relative;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--urs-grad);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 26px rgba(14, 117, 97, 0.35);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.urs-widget .urs-btn:hover {
	background: var(--urs-accent-dark);
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(14, 117, 97, 0.42);
}

.urs-widget .urs-btn:focus-visible {
	outline: 3px solid rgba(19, 134, 112, 0.35);
	outline-offset: 3px;
}

.urs-widget .urs-btn svg {
	display: block;
}

.urs-widget .urs-btn.has-unread::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--urs-danger);
	animation: urs-ring 1.4s ease-out infinite;
}

@keyframes urs-ring {
	0% {
		transform: scale(1);
		opacity: 0.9;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

.urs-widget .urs-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--urs-danger);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.urs-widget .urs-tip {
	position: absolute;
	right: 0;
	bottom: 68px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--urs-danger);
	border-radius: 999px;
	background: #fff;
	color: var(--urs-danger);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	cursor: pointer;
}

.urs-widget .urs-tip-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--urs-danger);
	animation: urs-blink 1.2s ease-in-out infinite;
}

.urs-widget .urs-tip.is-teaser {
	border-color: var(--urs-border);
	color: #2b2b2b;
	font-weight: 500;
}

.urs-widget .urs-tip.is-teaser .urs-tip-dot {
	background: var(--urs-accent-light);
	animation: none;
}

@keyframes urs-blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.25;
	}
}

/* ------------------------------------------------------------------ */
/* 面板                                                                */
/* ------------------------------------------------------------------ */

.urs-widget .urs-panel {
	position: absolute;
	right: 0;
	bottom: 74px;
	width: 378px;
	height: min(640px, calc(100vh - 120px));
	border: 1px solid var(--urs-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--urs-shadow);
	overflow: hidden;
	transform-origin: bottom right;
	animation: urs-pop 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes urs-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.urs-widget .urs-view {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.urs-widget .urs-top {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 15px 16px;
	background: #fff;
	border-bottom: 1px solid var(--urs-border);
	flex: none;
}

.urs-widget .urs-top-main {
	background: var(--urs-grad);
	border-bottom: 0;
	padding: 17px 16px;
}

.urs-widget .urs-head-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.urs-widget .urs-title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	color: #1c1c1c;
}

.urs-widget .urs-top-main .urs-title {
	color: #fff;
}

.urs-widget .urs-subtitle {
	font-size: 12px;
	line-height: 1.4;
	color: var(--urs-muted);
}

.urs-widget .urs-top-main .urs-subtitle {
	color: rgba(255, 255, 255, 0.82);
}

.urs-widget .urs-head-icon {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(19, 134, 112, 0.1);
	color: var(--urs-accent);
}

.urs-widget .urs-top-main .urs-head-icon {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.urs-widget .urs-head-icon svg {
	width: 21px;
	height: 21px;
}

.urs-widget .urs-close {
	flex: none;
	margin-left: auto;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--urs-muted);
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.urs-widget .urs-close:hover {
	background: var(--urs-soft);
	color: #242424;
}

.urs-widget .urs-top-main .urs-close {
	color: rgba(255, 255, 255, 0.75);
}

.urs-widget .urs-top-main .urs-close:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* 客服分组列表                                                        */
/* ------------------------------------------------------------------ */

.urs-widget .urs-agents {
	flex: 0 1 auto;
	min-height: 0;
	max-height: 62%;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--urs-soft);
}

/* 联系我们：填充客服列表下方剩余空间 */
.urs-widget .urs-contact {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 15px 16px 17px;
	background: #fff;
	border-top: 1px dashed var(--urs-border);
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.urs-widget .urs-contact-note {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.65;
	color: #6f7775;
}

.urs-widget .urs-contact-list {
	list-style: none;
	margin: 2px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.urs-widget .urs-contact-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 11px;
	border-radius: 10px;
	background: var(--urs-soft);
	font-size: 13px;
}

.urs-widget .urs-contact-k {
	flex: none;
	color: #7b8582;
	font-size: 12px;
}

.urs-widget .urs-contact-v {
	color: #1c1c1c;
	font-weight: 600;
	text-align: right;
	word-break: break-all;
}

.urs-widget .urs-nw {
	white-space: nowrap;
}

.urs-widget .urs-contact-foot {
	margin: auto 0 0;
	padding-top: 6px;
	font-size: 11.5px;
	line-height: 1.6;
	color: #98a29f;
}

/* 低高度屏幕：压缩联系区块，保证一屏内完整显示 */
@media (max-height: 720px) {
	.urs-widget .urs-agents {
		max-height: 55%;
		padding: 11px;
		gap: 8px;
	}

	.urs-widget .urs-contact {
		padding: 9px 13px 6px;
		gap: 4px;
	}

	.urs-widget .urs-contact-note {
		font-size: 11.5px;
		line-height: 1.55;
	}

	.urs-widget .urs-contact-list {
		gap: 4px;
	}

	.urs-widget .urs-contact-list li {
		padding: 5px 8px;
		font-size: 12px;
	}

	.urs-widget .urs-agent {
		padding: 10px 12px;
		gap: 10px;
	}

	.urs-widget .urs-avatar {
		width: 38px;
		height: 38px;
	}

	.urs-widget .urs-avatar svg {
		width: 19px;
		height: 19px;
	}

	.urs-widget .urs-contact-foot {
		padding-top: 4px;
		font-size: 11px;
	}
}

.urs-widget .urs-agent {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--urs-border);
	border-radius: 14px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(12, 45, 38, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.urs-widget .urs-agent:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
	border-color: rgba(19, 134, 112, 0.35);
}

.urs-widget .urs-agent.has-unread {
	border-color: var(--urs-danger);
}

.urs-widget .urs-avatar {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(19, 134, 112, 0.1);
	color: var(--urs-accent);
}

.urs-widget .urs-avatar svg {
	width: 21px;
	height: 21px;
}

.urs-widget .urs-avatar.sm {
	width: 32px;
	height: 32px;
}

.urs-widget .urs-avatar.sm svg {
	width: 17px;
	height: 17px;
}

.urs-widget .urs-agent-main {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1;
}

.urs-widget .urs-agent-name {
	font-weight: 600;
	color: #1c1c1c;
	font-size: 15px;
}

.urs-widget .urs-agent-descr {
	color: var(--urs-muted);
	font-size: 12px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.urs-widget .urs-agent-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--urs-muted);
	font-size: 12px;
}

.urs-widget .urs-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c4c4c4;
}

.urs-widget .urs-dot.on {
	background: #3bb273;
}

.urs-widget .urs-agent-last {
	color: var(--urs-muted);
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.urs-widget .urs-agent-unread {
	color: var(--urs-danger);
	font-weight: 600;
}

.urs-widget .urs-agent-badge {
	flex: none;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--urs-danger);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.urs-widget .urs-chevron {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(19, 134, 112, 0.08);
	color: var(--urs-accent);
	font-size: 18px;
	line-height: 1;
}

.urs-widget .urs-empty {
	padding: 36px 12px;
	margin: 0;
	text-align: center;
	color: var(--urs-muted);
	font-size: 13px;
}

.urs-widget .urs-empty::before {
	content: '';
	display: block;
	width: 40px;
	height: 40px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: rgba(19, 134, 112, 0.08);
}

/* ------------------------------------------------------------------ */
/* 会话窗口                                                            */
/* ------------------------------------------------------------------ */

.urs-widget .urs-chat-top {
	gap: 9px;
	padding: 13px 14px 13px 10px;
}

.urs-widget .urs-chat-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.urs-widget .urs-back {
	flex: none;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1c1c1c;
	font-size: 24px;
	line-height: 26px;
	text-align: center;
	box-shadow: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.urs-widget .urs-back:hover {
	background: var(--urs-soft);
}

.urs-widget .urs-chat-agent {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	color: #1c1c1c;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.urs-widget .urs-chat-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--urs-muted);
	font-size: 12px;
	line-height: 1.4;
}

.urs-widget .urs-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--urs-soft);
}

.urs-widget .urs-msg {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.urs-widget .urs-msg.mine {
	justify-content: flex-end;
}

.urs-widget .urs-msg-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 78%;
}

.urs-widget .urs-msg.mine .urs-msg-main {
	align-items: flex-end;
}

.urs-widget .urs-bubble {
	padding: 10px 13px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--urs-border);
	color: #242424;
	font-size: 14px;
	line-height: 1.55;
	word-break: break-word;
	white-space: pre-wrap;
	box-shadow: 0 1px 2px rgba(12, 45, 38, 0.04);
}

.urs-widget .urs-msg.mine .urs-bubble {
	background: var(--urs-accent);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 2px 8px rgba(19, 134, 112, 0.22);
}

.urs-widget .urs-bubble.is-image {
	padding: 0;
	border: 0;
	background: transparent;
}

.urs-widget .urs-img {
	display: block;
	max-width: 220px;
	max-height: 220px;
	min-width: 60px;
	border-radius: 10px;
	cursor: zoom-in;
	object-fit: cover;
}

.urs-widget .urs-time {
	color: var(--urs-muted);
	font-size: 11px;
}

.urs-widget .urs-user-avatar {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--urs-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* 输入区                                                              */
/* ------------------------------------------------------------------ */

.urs-widget .urs-input {
	flex: none;
	padding: 10px 12px 12px;
	background: #fff;
	border-top: 1px solid var(--urs-border);
	position: relative;
}

.urs-widget .urs-field {
	border: 1px solid #e4eae7;
	border-radius: 14px;
	padding: 6px 10px 6px;
	background: #fff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.urs-widget .urs-field:focus-within {
	border-color: rgba(19, 134, 112, 0.45);
	box-shadow: 0 0 0 3px rgba(19, 134, 112, 0.1);
}

.urs-widget textarea.urs-text {
	display: block;
	width: 100%;
	height: auto;
	min-height: 26px;
	max-height: 96px;
	padding: 2px;
	margin: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	resize: none;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #242424;
	overflow-y: auto;
}

.urs-widget textarea.urs-text:focus {
	border: 0;
	box-shadow: none;
	background: transparent;
}

.urs-widget textarea.urs-text::placeholder {
	color: #b3b9b7;
}

.urs-widget .urs-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
}

.urs-widget .urs-tool {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--urs-muted);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.urs-widget .urs-tool:hover {
	background: var(--urs-soft);
	color: var(--urs-accent);
}

.urs-widget .urs-tool[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.urs-widget .urs-send {
	margin-left: auto;
	height: 32px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--urs-accent);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 32px;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}

.urs-widget .urs-send:hover {
	background: var(--urs-accent-dark);
	color: #fff;
}

.urs-widget .urs-send:active {
	transform: scale(0.97);
}

.urs-widget .urs-send[disabled],
.urs-widget .urs-send[disabled]:hover {
	background: #eef3f1;
	color: #9fb0aa;
	opacity: 1 !important;
	cursor: not-allowed;
	transform: none;
}

.urs-widget .urs-emoji {
	position: absolute;
	left: 10px;
	bottom: 96px;
	display: grid;
	grid-template-columns: repeat(8, 28px);
	gap: 2px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--urs-border);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
	z-index: 2;
}

.urs-widget .urs-emoji-item {
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	border-radius: 6px;
}

.urs-widget .urs-emoji-item:hover {
	background: var(--urs-soft);
}

/* ------------------------------------------------------------------ */
/* 图片预览（在 .urs-widget 之外）                                     */
/* ------------------------------------------------------------------ */

.urs-preview {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(0, 0, 0, 0.72);
	cursor: zoom-out;
}

.urs-preview[hidden] {
	display: none !important;
}

.urs-preview img {
	max-width: min(760px, 92vw);
	max-height: 82vh;
	border-radius: 10px;
	object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* 移动端                                                              */
/* ------------------------------------------------------------------ */

/* 主题滚动置顶按钮与客服按钮错开，避免重叠 */
.scrollToTop {
	right: 24px !important;
	bottom: 96px !important;
}

@media (max-width: 640px) {
	.urs-widget {
		right: 14px;
		bottom: 16px;
	}

	.urs-widget .urs-btn {
		width: 54px;
		height: 54px;
	}

	.urs-widget .urs-panel {
		position: fixed;
		right: 8px;
		left: 8px;
		bottom: 82px;
		width: auto;
		height: min(640px, calc(100vh - 96px));
		height: min(640px, calc(100dvh - 96px));
		border-radius: 16px;
	}

	.urs-widget .urs-tip {
		bottom: 66px;
	}

	.scrollToTop {
		bottom: 88px !important;
	}
}

/* 日期分隔 / 系统消息 / 撤回 */
.urs-widget .urs-day {
	align-self: center;
	margin: 2px 0;
	padding: 2px 10px;
	border-radius: 999px;
	background: #eef1f0;
	color: #93a09c;
	font-size: 11px;
}

.urs-widget .urs-system {
	align-self: center;
	max-width: 84%;
	padding: 4px 12px;
	border-radius: 999px;
	background: #f4f6f5;
	color: #93a09c;
	font-size: 11.5px;
	text-align: center;
}

.urs-widget .urs-bubble.is-recalled {
	background: #f2f5f4;
	color: #a3afab;
	font-style: italic;
}

/* 输入中提示 */
.urs-widget .urs-typing {
	display: flex;
	flex: none;
	align-items: center;
	gap: 6px;
	padding: 0 18px 6px;
	color: var(--urs-muted);
	font-size: 11.5px;
}

.urs-widget .urs-typing-dots {
	display: inline-flex;
	gap: 3px;
}

.urs-widget .urs-typing-dots i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #9fb0aa;
	animation: urs-typing-blink 1.2s infinite;
}

.urs-widget .urs-typing-dots i:nth-child(2) {
	animation-delay: 0.18s;
}

.urs-widget .urs-typing-dots i:nth-child(3) {
	animation-delay: 0.36s;
}

@keyframes urs-typing-blink {
	0%, 80%, 100% { opacity: 0.25; }
	40% { opacity: 1; }
}

/* 评价 */
.urs-widget .urs-rate-btn {
	flex: none;
	height: 24px;
	margin-left: auto;
	margin-right: 6px;
	padding: 0 10px;
	border: 1px solid var(--urs-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--urs-accent);
	font-size: 11px;
	line-height: 22px;
	cursor: pointer;
}

.urs-widget .urs-rate-btn:hover {
	border-color: rgba(19, 134, 112, 0.4);
	background: #fff;
}

.urs-widget .urs-rate {
	flex: none;
	padding: 12px 18px 14px;
	border-top: 1px solid var(--urs-border);
	background: #fbfdfc;
	text-align: center;
}

.urs-widget .urs-rate-title {
	margin: 0 0 8px;
	color: #4a5551;
	font-size: 12.5px;
}

.urs-widget .urs-rate-stars {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
}

.urs-widget .urs-rate-stars button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #d8dedb;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s, transform 0.15s;
}

.urs-widget .urs-rate-stars button:hover {
	transform: scale(1.08);
}

.urs-widget .urs-rate-stars button.is-on {
	color: #f0b429;
}

.urs-widget .urs-rate-foot {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.urs-widget .urs-rate-cancel,
.urs-widget .urs-rate-submit {
	height: 30px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 28px;
	cursor: pointer;
}

.urs-widget .urs-rate-cancel {
	border: 1px solid var(--urs-border);
	background: #fff;
	color: #6b7773;
}

.urs-widget .urs-rate-submit {
	border: 1px solid transparent;
	background: var(--urs-grad);
	color: #fff;
	font-weight: 600;
}

.urs-widget .urs-rate-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* 图片消息：可放大提示 */
.urs-widget .urs-bubble.is-image {
	position: relative;
	line-height: 0;
}
.urs-widget .urs-bubble.is-image::after {
	content: "⤢";
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	pointer-events: none;
}
.urs-widget .urs-img:active {
	opacity: 0.85;
}
