/* =========================================================================
 * rc-account.css —— 注册页版式 + 注册表单控件样式 + 账户中心样式
 * 归属：astra-child 子主题；配色与字体沿用 Astra 全局设置：
 *   主色 #1B9C85 / 深绿 #178E79 / 标题 #0F172A / 正文 #454F5E
 *   浅底 #EDF6EE / 白 #FFFFFF / 深底 #06140C；字体 Montserrat
 *
 * 三段职责：
 *   1. 页面版式：.rc-acc-hero / .rc-acc-main / .rc-acc-side / .rc-acc-trust / .rc-acc-done
 *      （由 steps/rc_build_register_pages.php 生成的页面正文使用）
 *   2. 表单本体：.rc-acc / .rc-acc__*  （由短代码 [rc_register] 输出）
 *   3. 账户中心：.rc-acc-panel / .rc-acc-kv / .rc-acc-table / .rc-acc-form / .rc-acc-entry
 *      （由 inc/rc-account-pages.php 输出，含页头入口短代码 [rc_account_entry]）
 *
 * 加载策略：注册表单页与提交成功页必入队；账户页（woocommerce_myaccount）以及
 *          页头挂了 [rc_account_entry] 时也入队（见 functions.php）。
 *          其它页面不引入这份样式。
 *
 * 命名约定（plan/05 §4）：所有自定义类一律 rc-acc 前缀，不覆盖 Astra 原生类。
 * ========================================================================= */

:root {
	--rc-acc-primary: #1B9C85;
	--rc-acc-primary-dark: #178E79;
	--rc-acc-heading: #0F172A;
	--rc-acc-text: #454F5E;
	--rc-acc-tint: #EDF6EE;
	--rc-acc-line: #E3EDE7;
	--rc-acc-dark: #06140C;
	--rc-acc-alert: #C0392B;
	--rc-acc-warn: #B26A00;
	--rc-acc-radius: 14px;
	--rc-acc-shadow: 0 18px 40px -20px rgba(6, 20, 12, .28);
}

/* ==================================================================== 页头 */
.rc-acc-hero {
	position: relative;
	background-image:
		linear-gradient(115deg, rgba(6, 20, 12, .92) 0%, rgba(15, 90, 74, .86) 58%, rgba(27, 156, 133, .78) 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
}
.rc-acc-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--rc-acc-primary), #6ED8A8, var(--rc-acc-primary));
}
.rc-acc-hero .rc-acc-hero__crumb {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
	margin: 0 0 10px;
}
.rc-acc-hero .rc-acc-hero__title {
	color: #fff;
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.18;
	margin: 0 0 12px;
}
.rc-acc-hero .rc-acc-hero__lead {
	color: rgba(255, 255, 255, .84);
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
	max-width: 760px;
}
.rc-acc-hero .rc-acc-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.rc-acc-hero .rc-acc-hero__tags span {
	display: inline-block;
	font-size: 12.5px;
	line-height: 1;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
}

/* ================================================================== 主体区 */
.rc-acc-main {
	background: #fff;
}
.rc-acc-main .rc-acc-cols {
	gap: 48px;
}
.rc-acc-main h2 {
	color: var(--rc-acc-heading);
	font-size: 26px;
	margin: 0 0 12px;
}

/* 右栏（说明列） */
.rc-acc-side__card {
	background: var(--rc-acc-tint);
	border: 1px solid var(--rc-acc-line);
	border-radius: var(--rc-acc-radius);
	padding: 22px 24px;
	margin: 0 0 18px;
}
.rc-acc-side__card h3 {
	color: var(--rc-acc-heading);
	font-size: 17px;
	margin: 0 0 10px;
}
.rc-acc-side__card p {
	color: var(--rc-acc-text);
	font-size: 14px;
	line-height: 1.8;
	margin: 0 0 10px;
}
.rc-acc-side__card p:last-child {
	margin-bottom: 0;
}
/* 说明列的步骤：只用段落承载，不引入 wp:list（plan/05 §4 约定） */
.rc-acc-side__steps {
	counter-reset: rc-acc-step;
}
.rc-acc-side__step {
	position: relative;
	padding: 0 0 0 34px;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--rc-acc-text);
	counter-increment: rc-acc-step;
}
.rc-acc-side__step::before {
	content: counter(rc-acc-step);
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--rc-acc-primary);
	color: #fff;
	font-size: 12px;
	line-height: 22px;
	text-align: center;
}
.rc-acc-side__step:last-child {
	margin-bottom: 0;
}
.rc-acc-side__contact {
	margin: 0;
	font-size: 14px;
	line-height: 1.9;
	color: var(--rc-acc-text);
}
.rc-acc-side__contact a {
	color: var(--rc-acc-primary-dark);
	text-decoration: none;
}
.rc-acc-side__contact a:hover {
	text-decoration: underline;
}

/* 底部信任带 */
.rc-acc-trust {
	background: var(--rc-acc-dark);
	color: rgba(255, 255, 255, .82);
}
.rc-acc-trust .rc-acc-trust__title {
	color: #fff;
	font-size: 24px;
	margin: 0 0 8px;
}
.rc-acc-trust .rc-acc-trust__sub {
	color: rgba(255, 255, 255, .66);
	margin: 0 0 28px;
}
.rc-acc-trust h3 {
	color: #fff;
	font-size: 16px;
	margin: 0 0 8px;
}
.rc-acc-trust p {
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
	line-height: 1.8;
	margin: 0;
}

/* ============================================================== 表单容器 */
.rc-acc {
	background: #fff;
	border: 1px solid var(--rc-acc-line);
	border-radius: var(--rc-acc-radius);
	box-shadow: var(--rc-acc-shadow);
	padding: 28px 30px 26px;
}
.rc-acc__title {
	color: var(--rc-acc-heading);
	font-size: 22px;
	line-height: 1.3;
	margin: 0 0 8px;
}
.rc-acc__desc {
	color: var(--rc-acc-text);
	font-size: 14px;
	line-height: 1.8;
	margin: 0 0 22px;
}

/* 两列栅格：宽屏两列，窄屏一列 */
.rc-acc__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 22px;
}
.rc-acc__field {
	margin: 0;
	min-width: 0;
}
.rc-acc__field--full {
	grid-column: 1 / -1;
}
.rc-acc__field > label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--rc-acc-heading);
	margin: 0 0 7px;
}
.rc-acc__req {
	color: var(--rc-acc-alert);
	margin-left: 2px;
}

/* 控件
 * number / search / select 是 S7 询价表单引入的：注册表单只用 text/email/tel/url，
 * 但同一套 .rc-acc__field 版式要给两个表单用，控件清单在这里一次写全。 */
.rc-acc__field input[type="text"],
.rc-acc__field input[type="email"],
.rc-acc__field input[type="password"],
.rc-acc__field input[type="tel"],
.rc-acc__field input[type="url"],
.rc-acc__field input[type="number"],
.rc-acc__field input[type="search"],
.rc-acc__field select,
.rc-acc__field textarea {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--rc-acc-line);
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--rc-acc-heading);
	font-family: inherit;
	transition: border-color .16s ease, box-shadow .16s ease;
}
.rc-acc__field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23454F5E' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
}
.rc-acc__field textarea {
	resize: vertical;
	min-height: 96px;
}
.rc-acc__field input:focus,
.rc-acc__field select:focus,
.rc-acc__field textarea:focus {
	outline: none;
	border-color: var(--rc-acc-primary);
	box-shadow: 0 0 0 3px rgba(27, 156, 133, .14);
}
.rc-acc__field input::placeholder,
.rc-acc__field textarea::placeholder {
	color: #a9b3bd;
}

/* 校验态 */
.rc-acc__err {
	display: none;
	margin: 6px 0 0;
	font-size: 12.5px;
	font-style: normal;
	line-height: 1.5;
	color: var(--rc-acc-alert);
}
.rc-acc__err.is-error {
	display: block;
}
.rc-acc__field.is-error input[type="text"],
.rc-acc__field.is-error input[type="email"],
.rc-acc__field.is-error input[type="password"],
.rc-acc__field.is-error input[type="tel"],
.rc-acc__field.is-error input[type="url"],
.rc-acc__field.is-error input[type="number"],
.rc-acc__field.is-error input[type="search"],
.rc-acc__field.is-error select,
.rc-acc__field.is-error textarea {
	border-color: var(--rc-acc-alert);
	background: #fffaf9;
}

/* 蜜罐：正常浏览者看不到，爬虫会填 */
.rc-acc__hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 同意条款 */
.rc-acc__field--consent {
	padding: 14px 16px;
	background: var(--rc-acc-tint);
	border: 1px solid var(--rc-acc-line);
	border-radius: 10px;
}
.rc-acc__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--rc-acc-text);
	line-height: 1.7;
	cursor: pointer;
	margin: 0;
}
.rc-acc__check input[type="checkbox"] {
	margin: 3px 0 0;
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	accent-color: var(--rc-acc-primary);
	cursor: pointer;
}
.rc-acc__field--consent.is-error {
	border-color: var(--rc-acc-alert);
	background: #fffaf9;
}

/* 附件 */
.rc-acc__field--file .rc-acc__filewrap {
	display: block;
	position: relative;
	padding: 16px 16px 14px;
	border: 1px dashed #bfd4c8;
	border-radius: 10px;
	background: #fbfdfc;
	transition: border-color .16s ease, background .16s ease;
}
.rc-acc__field--file .rc-acc__filewrap:hover {
	border-color: var(--rc-acc-primary);
	background: var(--rc-acc-tint);
}
.rc-acc__field--file input[type="file"] {
	display: block;
	width: 100%;
	font-size: 13.5px;
	color: var(--rc-acc-text);
	font-family: inherit;
}
.rc-acc__field--file input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: var(--rc-acc-primary);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}
.rc-acc__field--file input[type="file"]::file-selector-button:hover {
	background: var(--rc-acc-primary-dark);
}
.rc-acc__fileinfo {
	display: block;
	margin: 9px 0 0;
	font-size: 12.5px;
	font-style: normal;
	line-height: 1.6;
	color: #6c7885;
	word-break: break-all;
}
.rc-acc__fileinfo.is-error {
	color: var(--rc-acc-alert);
}
.rc-acc__hint {
	display: block;
	margin: 7px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: #8a949f;
}
.rc-acc__field--file.is-error .rc-acc__filewrap {
	border-color: var(--rc-acc-alert);
	background: #fffaf9;
}

/* ============================================================== 提交按钮 */
.rc-acc__actions {
	margin: 24px 0 0;
	padding: 20px 0 0;
	border-top: 1px dashed var(--rc-acc-line);
}
.rc-acc__submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 200px;
	padding: 13px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--rc-acc-primary);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .16s ease, transform .16s ease;
}
.rc-acc__submit:hover:not(:disabled) {
	background: var(--rc-acc-primary-dark);
	transform: translateY(-1px);
}
.rc-acc__submit:disabled {
	opacity: .72;
	cursor: not-allowed;
}
.rc-acc__spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rc-acc-spin .7s linear infinite;
}
.rc-acc__submit.is-loading .rc-acc__spinner {
	display: inline-block;
}
@keyframes rc-acc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* 提示条 */
.rc-acc__msg {
	display: none;
	margin: 18px 0 0;
	padding: 13px 16px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.7;
}
.rc-acc__msg.is-ok {
	display: block;
	color: #0f5a4a;
	background: var(--rc-acc-tint);
	border: 1px solid #bfe0cf;
}
.rc-acc__msg.is-err {
	display: block;
	color: #8c2a20;
	background: #fdf3f2;
	border: 1px solid #f0cdc8;
}

/* ------------------------------------------------- 提交等待面板（plan/09 §P5-UX）
   场景：注册 / 询价提交后，后台要落库并同步发信，用户会干等几秒。
   做法：点下去的瞬间就显示「正在提交」+ 转圈 + 走秒，超时再升级一句"别刷新"。
   配色沿用站点主色（#1B9C85 / 浅底 #EDF6EE），不引入新的视觉语言。
   进度条是**不确定型**（来回滑动）而不是百分比 —— 拿不到真实进度就不假装有。 */
.rc-acc__wait {
	display: none;
	margin: 18px 0 0;
	padding: 14px 16px;
	align-items: flex-start;
	gap: 14px;
	background: var(--rc-acc-tint);
	border: 1px solid #bfe0cf;
	border-radius: 10px;
}
.rc-acc__wait.is-on {
	display: flex;
	animation: rc-acc-wait-in .28s ease both;
}
@keyframes rc-acc-wait-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.rc-acc__wait-spin {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 2px solid rgba(27, 156, 133, .26);
	border-top-color: var(--rc-acc-primary);
	border-radius: 50%;
	animation: rc-acc-spin .7s linear infinite;
}
.rc-acc__wait-body {
	flex: 1 1 auto;
	min-width: 0;
}
.rc-acc__wait-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--rc-acc-heading);
}
.rc-acc__wait-meta {
	margin: 3px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: #6b7a70;
	font-variant-numeric: tabular-nums;
}
.rc-acc__wait-bar {
	display: block;
	position: relative;
	overflow: hidden;
	height: 3px;
	margin: 10px 0 0;
	border-radius: 999px;
	background: #d7e8de;
}
.rc-acc__wait-bar::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40%;
	width: 40%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--rc-acc-primary), #6ED8A8);
	animation: rc-acc-wait-slide 1.3s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes rc-acc-wait-slide {
	0% {
		left: -40%;
	}
	100% {
		left: 100%;
	}
}
.rc-acc__wait-note {
	display: none;
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--rc-acc-warn);
}
.rc-acc__wait.is-long .rc-acc__wait-note {
	display: block;
}
@media (prefers-reduced-motion: reduce) {
	.rc-acc__wait.is-on {
		animation: none;
	}
	.rc-acc__wait-spin {
		animation-duration: 2s;
	}
	.rc-acc__wait-bar::after {
		animation-duration: 3.4s;
	}
}
.rc-acc__noscript {
	margin: 16px 0 0;
	padding: 12px 14px;
	background: #fff8e8;
	border: 1px solid #f0dcae;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--rc-acc-warn);
}

/* ============================================================== 完成页 */
.rc-acc-done {
	background: #fff;
	border: 1px solid var(--rc-acc-line);
	border-radius: var(--rc-acc-radius);
	box-shadow: var(--rc-acc-shadow);
	padding: 34px 34px 30px;
	max-width: 760px;
	margin: 0 auto;
}
.rc-acc-done__icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--rc-acc-tint);
	color: var(--rc-acc-primary);
	font-size: 26px;
	line-height: 54px;
	text-align: center;
	margin: 0 0 16px;
}
.rc-acc-done__title {
	color: var(--rc-acc-heading);
	font-size: 24px;
	margin: 0 0 10px;
}
.rc-acc-done__lead {
	color: var(--rc-acc-text);
	font-size: 15px;
	line-height: 1.85;
	margin: 0 0 20px;
}
.rc-acc-done__steps {
	counter-reset: rc-acc-done-step;
	margin: 0 0 22px;
}
.rc-acc-done__step {
	position: relative;
	padding: 0 0 0 36px;
	margin: 0 0 14px;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--rc-acc-text);
	counter-increment: rc-acc-done-step;
}
.rc-acc-done__step::before {
	content: counter(rc-acc-done-step);
	position: absolute;
	left: 0;
	top: 1px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--rc-acc-primary);
	color: #fff;
	font-size: 12.5px;
	line-height: 24px;
	text-align: center;
}
.rc-acc-done__step:last-child {
	margin-bottom: 0;
}
.rc-acc-done__note {
	margin: 0;
	padding: 18px 20px;
	background: var(--rc-acc-tint);
	border: 1px solid var(--rc-acc-line);
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.85;
	color: var(--rc-acc-text);
}
.rc-acc-done__note a {
	color: var(--rc-acc-primary-dark);
	text-decoration: none;
}
.rc-acc-done__note a:hover {
	text-decoration: underline;
}
.rc-acc-done__actions {
	margin: 24px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.rc-acc-done__btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--rc-acc-primary);
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .16s ease;
}
.rc-acc-done__btn:hover {
	background: var(--rc-acc-primary-dark);
	color: #fff;
}
.rc-acc-done__btn--ghost {
	background: transparent;
	color: var(--rc-acc-primary-dark);
	border: 1px solid var(--rc-acc-line);
}
.rc-acc-done__btn--ghost:hover {
	background: var(--rc-acc-tint);
	color: var(--rc-acc-primary-dark);
}

/* ================================================================ 窄屏 */
/* 区块内联内边距优先级高于外部 CSS，窄屏要收紧必须带 !important（plan/05 §4）。 */
@media (max-width: 781px) {
	/* 窄屏：正文顺序本就是「表单在前、说明在后」，直接单列即可（plan/05 §4） */
	.rc-acc-main .rc-acc-cols {
		flex-direction: column;
	}
	.rc-acc-main .rc-acc-cols > .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}
	.rc-acc__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.rc-acc {
		padding: 22px 18px 20px;
		border-radius: 12px;
	}
	.rc-acc-done {
		padding: 26px 20px 22px;
	}
	.rc-acc__submit {
		width: 100%;
	}
	.rc-acc-hero,
	.rc-acc-main,
	.rc-acc-trust {
		padding-left: 18px !important;
		padding-right: 18px !important;
	}
	.rc-acc-trust {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}
}

/* ======================================================== 账户中心（S5）
 * 由 inc/rc-account-pages.php 输出：
 *   1. 账户中心子页：.rc-acc-panel / .rc-acc-kv / .rc-acc-table / .rc-acc-form
 *   2. 页头入口短代码 [rc_account_entry]：.rc-acc-entry*
 * 入队条件见 functions.php（账户页，或页头挂了入口短代码）。
 * ==================================================================== */

/* ---- 卡片与标题 ---- */
.rc-acc-panel {
	background: #fff;
	border: 1px solid var(--rc-acc-line);
	border-radius: var(--rc-acc-radius);
	box-shadow: 0 10px 30px -24px rgba(6, 20, 12, .35);
	padding: 26px 24px 24px;
}
.rc-acc-panel__head {
	margin: 0 0 14px;
}
.rc-acc-panel__title {
	margin: 0 0 8px;
	color: var(--rc-acc-heading);
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.25;
}
.rc-acc-panel__lead {
	margin: 0;
	color: var(--rc-acc-text);
	font-size: 15px;
	line-height: 1.65;
}
.rc-acc-panel__sub {
	margin: 22px 0 10px;
	color: var(--rc-acc-heading);
	font-size: 16px;
}
.rc-acc-panel__note {
	margin: 10px 0 0;
	color: var(--rc-acc-text);
	font-size: 14px;
	line-height: 1.7;
}
.rc-acc-note {
	margin: 0 0 12px;
	padding: 12px 14px;
	background: var(--rc-acc-tint);
	border-left: 3px solid var(--rc-acc-primary);
	border-radius: 0 8px 8px 0;
	color: var(--rc-acc-text);
	font-size: 14px;
	line-height: 1.7;
	white-space: pre-line;
}
.rc-acc-link {
	color: var(--rc-acc-primary-dark);
	text-decoration: underline;
}
.rc-acc-badge {
	display: inline-block;
	margin: 12px 0 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--rc-acc-tint);
	color: var(--rc-acc-primary-dark);
	font-size: 12px;
	letter-spacing: .04em;
}

/* ---- 提示条 ---- */
.rc-acc-notice {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.6;
}
.rc-acc-notice--ok {
	background: var(--rc-acc-tint);
	border: 1px solid #BFE3D2;
	color: #14654F;
}
.rc-acc-notice--bad {
	background: #FDF1EF;
	border: 1px solid #F0CDC6;
	color: var(--rc-acc-alert);
}

/* ---- 键值表 ---- */
.rc-acc-kv {
	display: grid;
	grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
	gap: 8px 16px;
	margin: 16px 0 0;
	padding: 0;
}
.rc-acc-kv__k {
	margin: 0;
	color: #6B7280;
	font-size: 13px;
	font-weight: 600;
}
.rc-acc-kv__v {
	margin: 0;
	color: var(--rc-acc-heading);
	font-size: 14px;
	line-height: 1.6;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* ---- 快捷入口 ---- */
.rc-acc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rc-acc-card {
	margin: 0;
}
.rc-acc-card__link {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--rc-acc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--rc-acc-heading);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .18s ease, transform .18s ease;
}
.rc-acc-card__link:hover,
.rc-acc-card__link:focus {
	border-color: var(--rc-acc-primary);
	transform: translateY(-1px);
}

/* ---- 步骤与范围说明 ---- */
.rc-acc-steps {
	margin: 0;
	padding-left: 20px;
	color: var(--rc-acc-text);
	font-size: 14px;
	line-height: 1.8;
}
.rc-acc-steps__item {
	margin: 0 0 4px;
}
.rc-acc-scope {
	margin: 18px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #F7FAF8;
	color: #4B5563;
	font-size: 13px;
	line-height: 1.65;
}

/* ---- 表单 ---- */
.rc-acc-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
	margin-top: 18px;
}
.rc-acc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rc-acc-field--full {
	grid-column: 1 / -1;
}
.rc-acc-field__label {
	color: var(--rc-acc-heading);
	font-size: 13px;
	font-weight: 600;
}
.rc-acc-req {
	color: var(--rc-acc-alert);
}
.rc-acc-field__input,
.rc-acc-field__file {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--rc-acc-line);
	border-radius: 8px;
	background: #fff;
	color: var(--rc-acc-heading);
	font-size: 14px;
	line-height: 1.5;
}
.rc-acc-field__input:focus {
	border-color: var(--rc-acc-primary);
	outline: 2px solid rgba(27, 156, 133, .18);
	outline-offset: 0;
}
.rc-acc-field__file {
	padding: 8px 10px;
	font-size: 13px;
}
.rc-acc-field__static {
	padding: 10px 12px;
	border: 1px dashed var(--rc-acc-line);
	border-radius: 8px;
	background: #F7FAF8;
	color: #6B7280;
	font-size: 14px;
}
.rc-acc-field__hint {
	color: #6B7280;
	font-size: 12px;
	line-height: 1.6;
}
.rc-acc-form__foot {
	grid-column: 1 / -1;
}
.rc-acc-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.rc-acc-btn--primary {
	background: var(--rc-acc-primary);
	color: #fff;
}
.rc-acc-btn--primary:hover,
.rc-acc-btn--primary:focus {
	background: var(--rc-acc-primary-dark);
	color: #fff;
}

/* ---- 资质文件表 ---- */
.rc-acc-tablewrap {
	margin-top: 16px;
	overflow-x: auto;
}
.rc-acc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.rc-acc-table th,
.rc-acc-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--rc-acc-line);
	text-align: left;
	vertical-align: middle;
}
.rc-acc-table th {
	background: #F7FAF8;
	color: var(--rc-acc-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	white-space: nowrap;
}
.rc-acc-table__file {
	overflow-wrap: anywhere;
}
.rc-acc-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	white-space: nowrap;
}
.rc-acc-pill--pending {
	background: #FFF6E5;
	color: var(--rc-acc-warn);
}
.rc-acc-pill--ok {
	background: var(--rc-acc-tint);
	color: #14654F;
}
.rc-acc-pill--invalid {
	background: #FDF1EF;
	color: var(--rc-acc-alert);
}

/* ---- 页头入口（[rc_account_entry]，Astra 头部构建器 HTML-2 位 = 右上角）---- */
/*
 * 入口与语言切换器**共用同一位**（免费版 Astra 头部构建器的 HTML 位只有 html-1/html-2，
 * html-3 不渲染；详见 steps/rc_build_account_pages.php 第二节）。
 * 两者分别输出 `.rc-acc-entry`（inline-flex）与 `.rc-lang`（inline-block），本身就是行内级，
 * 但 Astra 那层 `.ast-builder-html-element` 是块级——改成 flex 才能真正保证横向并排 + 垂直居中。
 * 间距用 margin-right 而不是 gap：万一哪天 flex 被主题样式盖掉退回行内流，间距仍在。
 */
.ast-header-html-2 .ast-builder-html-element {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.ast-header-html-2 .rc-acc-entry {
	margin-right: 16px;
}

.rc-acc-entry {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
}
.rc-acc-entry a {
	text-decoration: none;
}
.rc-acc-entry__link {
	color: var(--rc-acc-heading);
	font-weight: 600;
}
.rc-acc-entry__link:hover,
.rc-acc-entry__link:focus {
	color: var(--rc-acc-primary-dark);
}
.rc-acc-entry__sep {
	color: var(--rc-acc-line);
}
.rc-acc-entry__reg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.rc-acc-entry__label {
	color: var(--rc-acc-text);
}
.rc-acc-entry__sub {
	color: var(--rc-acc-primary-dark);
	font-weight: 600;
}
.rc-acc-entry__sub + .rc-acc-entry__sub::before {
	content: "/";
	margin-right: 8px;
	color: var(--rc-acc-line);
	font-weight: 400;
}
.rc-acc-entry__name {
	color: var(--rc-acc-text);
}
/* 「待审核」小标：挂在页头用户名后，把未认证身份一眼标出来（见 rc-account-pages.php 入口短代码）。 */
.rc-acc-entry__tag {
	display: inline-block;
	font-size: 11px;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 999px;
	background: #FFF4E5;
	border: 1px solid #F2C879;
	color: var(--rc-acc-warn);
	white-space: nowrap;
}
.rc-acc-entry__out {
	color: #6B7280;
}

/* ---- 窄屏 ---- */
@media (max-width: 781px) {
	.rc-acc-entry {
		gap: 8px;
		font-size: 13px;
	}
	.rc-acc-entry__reg {
		gap: 6px;
	}
	.rc-acc-entry__sub + .rc-acc-entry__sub::before {
		margin-right: 6px;
	}
	.rc-acc-panel {
		padding: 20px 16px 18px;
	}
	.rc-acc-form {
		grid-template-columns: minmax(0, 1fr);
	}
	.rc-acc-kv {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px 0;
	}
	.rc-acc-kv__k {
		margin-top: 8px;
	}
}

/* ============================================ 账户资料页（问题 2 的 WC 覆盖模板）
 * 覆盖 `woocommerce/myaccount/form-edit-account.php` 之后，公司名这一项是
 * 「只读输入框 + 锁标识 + 说明 + 联系我们链接」，原本没有对应样式。
 * 只加这一页用得到的几条，通用版式仍走上面的 .rc-acc__field / .rc-acc__hint。 */
.rc-acc__lock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
	padding: 1px 8px 1px 6px;
	border-radius: 999px;
	background: #EEF4F1;
	color: #5B6B66;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
}
.rc-acc__lock svg {
	width: 11px;
	height: 11px;
}
.woocommerce-EditAccountForm input.rc-acc__input--locked[readonly] {
	border-color: #DDE3E1;
	background: #F4F6F5;
	color: #4B5563;
	cursor: default;
}
.woocommerce-EditAccountForm .rc-acc__hint {
	margin-top: 7px;
}

/* ============================================ 密码区（问题 3 / P3 的渐进展开） */
.rc-acc__pw {
	margin: 18px 0 6px;
	padding: 16px 18px 12px;
	border: 1px solid var(--rc-acc-line);
	border-radius: 12px;
	background: #FBFCFB;
}
.rc-acc__pw-legend {
	padding: 0 8px;
	color: var(--rc-acc-heading);
	font-size: 15px;
	font-weight: 700;
}
.rc-acc__pw-hint {
	margin: 0 0 12px;
	color: var(--rc-acc-text);
	font-size: 12.5px;
	line-height: 1.65;
}
.rc-acc__pw-actions {
	margin: 0 0 10px;
}
.rc-acc__pw-toggle,
.rc-acc__pw-cancel {
	font-size: 13px;
}
.rc-acc__pw-cancel {
	border-color: var(--rc-acc-line);
	background: #FFF;
	color: var(--rc-acc-text);
}
.rc-acc__pw-fields {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--rc-acc-line);
}
/* 重要：有些主题/重置样式会把 [hidden] 的 display:none 顶掉，这里钉死。
   收起状态必须真的不可见，否则浏览器/密码管理器又会来填。 */
.rc-acc__pw-fields[hidden] {
	display: none !important;
}
.woocommerce-EditAccountForm .rc-acc__pwrow {
	margin-bottom: 12px;
}
/* 密码框自己补外观 —— 因为去掉了 woocommerce-Input 类（去掉它才能让 WC 的
   眼睛按钮 JS 选择器不命中），WC 自带样式就不再作用于这三个框。 */
.woocommerce-EditAccountForm input.rc-acc__pwinput {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--rc-acc-line);
	border-radius: 9px;
	background: #FFF;
	color: var(--rc-acc-heading);
	font-size: 14px;
	line-height: 1.4;
}
.woocommerce-EditAccountForm input.rc-acc__pwinput:focus {
	border-color: var(--rc-acc-primary);
	box-shadow: 0 0 0 3px rgba(27, 156, 133, .14);
	outline: none;
}
/* 视觉保险：万一还有残留的眼睛按钮，不显示。（JS 也会把它从 DOM 里删掉） */
.rc-acc__pw .show-password-input {
	display: none !important;
}

/* 「选填」小标签：与 .rc-acc__lock 同款，但更淡（用于姓氏 —— 注册时从未采集，
   却曾被 WC 当必填拦住整表提交，见 rc_acc_make_last_name_optional()）。 */
.rc-acc__optional {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #F1F4F3;
	color: #6B7A76;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
}
