/*
 * user-registration 登录 / 注册 / 账户页面 —— Puock 主题适配
 *
 * 由 mu-plugins/xm-user-registration-theme.php 以优先级 999 加载（在插件 CSS 之后）。
 * 颜色、圆角、阴影全部读取主题变量，因此：
 *   - 浅色 / 深色 / 深色换色板（puock-dark-palette-*）自动切换
 *   - 主题设置里改主色后，表单按钮、链接自动跟随
 * 插件或主题升级都不会覆盖本文件。
 *
 * 用到的主题变量：
 *   --pk-bg-card / --pk-bg-box        卡片背景
 *   --pk-c-input-bg                   输入框背景
 *   --pk-c-font / --pk-c-sub          正文 / 次要文字
 *   --pk-c-primary                    主色
 *   --pk-c-border / --bs-border-color 边框
 *   --pk-g-box-radius                 圆角
 *   --pk-c-block-shadow               阴影
 *   --pk-c-danger / --pk-c-success    状态色
 */

/* ============================================================
   0. 把插件自己的配色变量接到主题主色上
   插件会在 :root 输出 --ur-primary-color / --ur-button-background-*
   等变量（默认紫蓝 #475bb2）。在 body 上重新赋值后，
   按钮、弹窗确认键、链接全部变成站点主色，改主题色时自动跟随。
   ============================================================ */
html body {
    --ur-primary-color: var(--pk-c-primary, #1c60f3);
    --ur-primary-dark: var(--pk-c-primary, #1c60f3);
    --ur-primary-light: var(--pk-c-font, #343a40);
    --ur-button-background-normal-color: var(--pk-c-primary, #1c60f3);
    --ur-button-background-hover-color: var(--pk-c-primary, #1c60f3);
    --ur-button-text-normal-color: #ffffff;
    --ur-button-text-hover-color: #ffffff;
}

/* 插件 5.x 给输入框写的是 var(--pk-c-input-bg)，外加一条超长选择器 + !important
   把背景锁死（单写 background-color 压不过）。这里在表单容器上就近把变量
   再钉一次深色值：即使主题换色板、或插件将来把变量内联到别的层级，
   表单里的输入框、下拉、hover 底色也不会被带回浅色。 */
body.puock-dark .ur-frontend-form,
html[data-bs-theme="dark"] .ur-frontend-form,
body.puock-dark #user-registration,
html[data-bs-theme="dark"] #user-registration {
    --pk-c-input-bg: #212529;
}

/* ============================================================
   1. 表单外层：去掉插件写死的白底
   插件规则： #user-registration{background:#fff}
            .ur-frontend-form.login{background:#fff}
   ============================================================ */
html body #user-registration,
html body .user-registration,
html body .ur-frontend-form:not(.login) {
    background-color: transparent !important;
}

/* 登录卡片（/myuser/ 未登录时） */
html body .ur-frontend-form.login {
    background: var(--pk-bg-card, #ffffff) !important;
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
    border-radius: var(--pk-g-box-radius, 8px) !important;
    box-shadow: 0 4px 16px var(--pk-c-block-shadow, rgba(0, 0, 0, 0.08)) !important;
}

/* 注册表单（/register/）本身只有边框和 padding */
html body .ur-frontend-form {
    border-color: var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
}

/* ============================================================
   2. 文字层级
   ============================================================ */
html body #user-registration p,
html body .ur-frontend-form label,
html body .ur-frontend-form .ur-label,
html body .ur-frontend-form legend,
html body .ur-frontend-form .user-registration-form__label,
html body .user-registration-login-title,
html body .user-registration-registration-title,
html body .user-registration-MyAccount-content h1,
html body .user-registration-MyAccount-content h2,
html body .user-registration-MyAccount-content h3 {
    color: var(--pk-c-font, #343a40) !important;
}

html body .user-registration-login-description,
html body .ur-frontend-form .user-registration-tips,
html body .ur-frontend-form .ur-description,
html body .ur-frontend-form .description,
html body .user-registration-MyAccount-content p {
    color: var(--pk-c-sub, #808695) !important;
}

/* 必填星号沿用主题警示色 */
html body .ur-frontend-form .required {
    color: var(--pk-c-danger, #dc3545) !important;
}

/* ============================================================
   3. 输入框 / 下拉 / 文本域
   ============================================================ */
html body .ur-frontend-form input[type="text"],
html body .ur-frontend-form input[type="email"],
html body .ur-frontend-form input[type="password"],
html body .ur-frontend-form input[type="tel"],
html body .ur-frontend-form input[type="url"],
html body .ur-frontend-form input[type="number"],
html body .ur-frontend-form input[type="search"],
html body .ur-frontend-form input[type="date"],
html body .ur-frontend-form .input-text,
html body .ur-frontend-form .ur-frontend-field,
html body .ur-frontend-form .user-registration-Input,
html body .ur-frontend-form select,
html body .ur-frontend-form textarea,
html body #user-registration select,
html body #user-registration textarea {
    background-color: var(--pk-c-input-bg, #f8f8f9) !important;
    border: 1px solid var(--bs-border-color, #dee2e6) !important;
    color: var(--pk-c-font, #343a40) !important;
    border-radius: var(--pk-g-box-radius, 5px) !important;
    box-shadow: none !important;
}

html body .ur-frontend-form input::placeholder,
html body .ur-frontend-form textarea::placeholder {
    color: var(--pk-c-sub, #808695) !important;
    opacity: 1;
}

/* 聚焦：主色描边 + 同色柔和光晕 */
html body .ur-frontend-form input:focus,
html body .ur-frontend-form select:focus,
html body .ur-frontend-form textarea:focus,
html body .ur-frontend-form .ur-frontend-field:focus {
    border-color: var(--pk-c-primary, #1c60f3) !important;
    box-shadow: 0 0 0 0.2rem rgba(28, 96, 243, 0.25) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--pk-c-primary, #1c60f3) 25%, transparent) !important;
    outline: none;
}

/* 下拉展开的选项（浏览器默认是白底黑字） */
html body .ur-frontend-form select option {
    background-color: var(--pk-bg-card, #ffffff);
    color: var(--pk-c-font, #343a40);
}

/* 浏览器自动填充：避免深色下变白底蓝字 */
html body .ur-frontend-form input:-webkit-autofill,
html body .ur-frontend-form input:-webkit-autofill:hover,
html body .ur-frontend-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--pk-c-font, #343a40);
    -webkit-box-shadow: 0 0 0 1000px var(--pk-c-input-bg, #f8f8f9) inset;
    caret-color: var(--pk-c-font, #343a40);
    transition: background-color 99999s ease-in-out 0s;
}

/* 复选框 / 单选 */
html body .ur-frontend-form input[type="checkbox"],
html body .ur-frontend-form input[type="radio"] {
    accent-color: var(--pk-c-primary, #1c60f3);
}

/* ============================================================
   4. 按钮：统一为主题主色
   ============================================================ */
html body .ur-frontend-form .ur-submit-button,
html body .ur-frontend-form .user-registration-Button,
html body .ur-frontend-form button[type="submit"],
html body .ur-frontend-form input[type="submit"],
html body #user-registration .button-primary {
    background-color: var(--pk-c-primary, #1c60f3) !important;
    border: 1px solid var(--pk-c-primary, #1c60f3) !important;
    color: #ffffff !important;
    border-radius: var(--pk-g-box-radius, 5px) !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

html body .ur-frontend-form .ur-submit-button:hover,
html body .ur-frontend-form .user-registration-Button:hover,
html body .ur-frontend-form button[type="submit"]:hover,
html body .ur-frontend-form input[type="submit"]:hover {
    filter: brightness(1.08);
    color: #ffffff !important;
}

/* 密码显示/隐藏等次要按钮 */
html body .ur-frontend-form .user-registration-toggle-password,
html body .ur-frontend-form .show-password-input {
    color: var(--pk-c-sub, #808695) !important;
    background: transparent !important;
    border: none !important;
}

/* ============================================================
   5. 表单内链接（忘记密码、登录/注册互跳）
   ============================================================ */
html body #user-registration a,
html body .ur-frontend-form a,
html body #user-registration .user-registration-MyAccount-content a {
    color: var(--pk-c-primary, #1c60f3) !important;
    text-decoration: none;
}

html body #user-registration a:hover,
html body .ur-frontend-form a:hover,
html body #user-registration .user-registration-MyAccount-content a:hover {
    color: var(--pk-c-primary, #1c60f3) !important;
    text-decoration: underline;
}

/* ============================================================
   6. 提示 / 错误信息
   ============================================================ */
html body .ur-frontend-form .user-registration-error,
html body #user-registration .user-registration-error,
html body .ur-frontend-form .user-registration-message,
html body #user-registration .user-registration-message,
html body .ur-frontend-form .user-registration-info {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.35) !important;
    color: var(--pk-c-font, #343a40) !important;
    border-radius: var(--pk-g-box-radius, 5px) !important;
}

html body .ur-frontend-form .user-registration-message,
html body #user-registration .user-registration-message,
html body .ur-frontend-form .user-registration-info {
    background-color: rgba(0, 183, 74, 0.1) !important;
    border-color: rgba(0, 183, 74, 0.35) !important;
}

/* ============================================================
   7. 登录后的账户页（[user_registration_my_account]）
   ============================================================ */
/* 7.1 外层：限宽居中，导航在上、内容在下（插件默认是左右分栏） */
html body #user-registration.user-registration-MyAccount {
    display: block !important;
    max-width: 880px !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 7.2 导航：独立卡片 + 横向胶囊标签页 */
html body #user-registration .user-registration-MyAccount-navigation {
    background-color: var(--pk-bg-card, #ffffff) !important;
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    margin: 0 0 16px !important;
    width: 100% !important;
    float: none !important;
    box-shadow: 0 2px 10px var(--pk-c-block-shadow, rgba(0, 0, 0, 0.05)) !important;
}

html body #user-registration .user-registration-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow-x: auto !important;
    scrollbar-width: none;
}

html body #user-registration .user-registration-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
}

html body #user-registration .user-registration-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    border: none !important;
    background: none !important;
}

html body #user-registration .user-registration-MyAccount-navigation a {
    display: inline-flex !important;
    align-items: center !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 9px !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--pk-c-sub, #6c757d) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color 0.16s ease, color 0.16s ease;
}

html body #user-registration .user-registration-MyAccount-navigation a:hover {
    background-color: var(--pk-c-input-bg, #f8f8f9) !important;
    color: var(--pk-c-font, #343a40) !important;
}

html body #user-registration .user-registration-MyAccount-navigation .is-active > a,
html body #user-registration .user-registration-MyAccount-navigation .is-active a {
    background-color: var(--pk-c-primary, #1c60f3) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--pk-c-primary, #1c60f3) 28%, transparent) !important;
}

html body #user-registration .user-registration-MyAccount-navigation .is-active a:hover {
    background-color: var(--pk-c-primary, #1c60f3) !important;
    color: #ffffff !important;
}

/* 「注销」用警示色区分，避免和普通栏目混淆 */
html body #user-registration .user-registration-MyAccount-navigation-link--user-logout > a:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

/* 深色下非激活标签文字：
   导航卡片变成 #343a40 后，原来浅色模式的灰字对比度只有 4.3:1，看着发糊。
   注意必须是 li:not(.is-active)，否则会把激活态的白色文字一起压掉。 */
html body.puock-dark #user-registration .user-registration-MyAccount-navigation li:not(.is-active) a,
html[data-bs-theme="dark"] body #user-registration .user-registration-MyAccount-navigation li:not(.is-active) a {
    color: #ced4da !important;
}

html body.puock-dark #user-registration .user-registration-MyAccount-navigation li:not(.is-active) a:hover,
html[data-bs-theme="dark"] body #user-registration .user-registration-MyAccount-navigation li:not(.is-active) a:hover {
    color: #f8f9fa !important;
}

/* 7.3 内容卡片 */
html body #user-registration .user-registration-MyAccount-content {
    background-color: var(--pk-bg-card, #ffffff) !important;
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
    border-radius: 14px !important;
    padding: 28px !important;
    width: 100% !important;
    float: none !important;
    box-shadow: 0 4px 16px var(--pk-c-block-shadow, rgba(0, 0, 0, 0.06)) !important;
}

/* wpautop 留下的空段落，会让卡片下部出现大片空白 */
html body #user-registration .user-registration-MyAccount-content__body > p:empty {
    display: none !important;
}

/* 7.4 「Welcome, xxx」标题 */
html body #user-registration .user-registration-MyAccount-content__body > h2 {
    margin: 0 0 20px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
    color: var(--pk-c-font, #343a40) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* 7.5 头像 + 昵称信息条 */
html body #user-registration .user-registration-profile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: auto !important;
    float: none !important;
    margin: 0 0 20px !important;
    padding: 14px 16px !important;
    background-color: var(--pk-c-input-bg, #f8f8f9) !important;
    border-radius: 12px !important;
}

html body #user-registration .user-registration-profile-header .user-registration-img-container {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    flex: 0 0 auto !important;
}

html body #user-registration .user-registration-profile-header img.profile-preview {
    display: block !important;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--pk-bg-card, #ffffff) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

html body #user-registration .user-registration-profile-header header {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

html body #user-registration .user-registration-profile-header header h3 {
    margin: 0 !important;
    color: var(--pk-c-font, #343a40) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

html body #user-registration .user-registration-profile-header br,
html body #user-registration .user-registration-profile-header .user-registration-img-container p:empty {
    display: none !important;
}

/* 7.6 正文与链接 */
html body #user-registration .user-registration-MyAccount-content__body > p {
    margin: 0 0 12px !important;
    color: var(--pk-c-sub, #6c757d) !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
}

html body #user-registration .user-registration-MyAccount-content__body a {
    color: var(--pk-c-primary, #1c60f3) !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: border-color 0.16s ease;
}

html body #user-registration .user-registration-MyAccount-content__body a:hover {
    border-bottom-color: currentColor;
}

html body #user-registration .user-registration-MyAccount-content__body strong {
    font-weight: 400 !important;
}

/* 「不是 xxx？退出」做成小按钮 */
html body #user-registration .user-registration-MyAccount-content__body a.ur-logout {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(220, 53, 69, 0.35) !important;
    background-color: rgba(220, 53, 69, 0.08) !important;
    color: #dc3545 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

html body #user-registration .user-registration-MyAccount-content__body a.ur-logout:hover {
    background-color: rgba(220, 53, 69, 0.16) !important;
    border-bottom-color: rgba(220, 53, 69, 0.35) !important;
}

/* 7.7 账户页里的资料表格 */
html body #user-registration .user-registration-MyAccount-content table,
html body #user-registration .user-registration-MyAccount-content th,
html body #user-registration .user-registration-MyAccount-content td {
    color: var(--pk-c-font, #343a40) !important;
    border-color: var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
}

/* 7.8 移动端收紧 */
@media (max-width: 768px) {
    html body #user-registration .user-registration-MyAccount-content {
        padding: 20px 16px !important;
    }

    html body #user-registration .user-registration-MyAccount-content__body > h2 {
        font-size: 19px !important;
    }

    html body #user-registration .user-registration-MyAccount-navigation {
        padding: 6px !important;
    }
}

/* ============================================================
   8. 弹窗（登录失败 / 退出确认 / 修改密码提示，sweetalert2）
   变量定义在 body 上，弹窗也挂在 body 下，本可继承；但插件自带
   CSS 优先级很高，这里统一用确定色值，避免变量缺失时回落成
   「深色页面 + 纯白弹窗」。
   ============================================================ */

/* 8.1 弹窗本体 */
.swal2-popup {
    padding: 24px 22px 20px !important;
    background-color: #ffffff !important;
    color: #343a40 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18) !important;
    font-family: inherit !important;
}

/* 8.2 标题与正文 */
.swal2-title {
    margin: 0 !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #343a40 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

/* 只有正文、没有标题时不留下多余的分隔线 */
.swal2-title:empty {
    display: none !important;
}

/* 注销弹窗：标题是「退出?」，正文是「你确定要退出登录吗？」，两句话说的是同一件事，
   只留正文。限定在注销弹窗，改密码、校验失败等其他弹窗的标题不受影响。 */
.user-registration-logout-swal2-container .swal2-title {
    display: none !important;
}

.user-registration-logout-swal2-container .swal2-html-container {
    padding-top: 0 !important;
}

.swal2-html-container {
    margin: 0 !important;
    padding: 14px 0 0 !important;
    color: #6c757d !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.swal2-title + .swal2-html-container:empty,
.swal2-html-container:empty {
    display: none !important;
}

/* 8.3 按钮组 */
.swal2-actions {
    width: 100% !important;
    margin: 22px auto 0 !important;
    gap: 10px !important;
    justify-content: center !important;
}

.swal2-styled {
    margin: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: filter 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.swal2-popup .swal2-actions .swal2-confirm {
    background-color: var(--pk-c-primary, #1c60f3) !important;
    border: 1px solid var(--pk-c-primary, #1c60f3) !important;
    color: #ffffff !important;
}

.swal2-popup .swal2-actions .swal2-confirm:hover {
    filter: brightness(1.08);
}

.swal2-popup .swal2-actions .swal2-confirm:active {
    filter: brightness(0.95);
}

.swal2-popup .swal2-actions .swal2-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f1f3f5 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #495057 !important;
    font-size: 0 !important; /* 隐藏插件输出的 Cancel 原文 */
}

.swal2-popup .swal2-actions .swal2-cancel::after {
    content: '取消';
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: inherit !important;
}

.swal2-popup .swal2-actions .swal2-cancel:hover {
    background-color: #e9ecef !important;
}

/* 8.4 遮罩 */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-shown {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* 8.5 弹窗内的输入框（修改密码等） */
.swal2-popup .swal2-input,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-select {
    height: 42px !important;
    margin: 4px 0 12px !important;
    padding: 0 12px !important;
    background-color: #f8f8f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    border-radius: 10px !important;
    color: #343a40 !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.swal2-popup .swal2-input:focus,
.swal2-popup .swal2-textarea:focus {
    outline: none !important;
    border-color: var(--pk-c-primary, #1c60f3) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pk-c-primary, #1c60f3) 18%, transparent) !important;
}

.swal2-popup .swal2-validation-message {
    margin: 0 0 12px !important;
    padding: 10px 12px !important;
    background-color: rgba(220, 53, 69, 0.08) !important;
    border-radius: 8px !important;
    color: #dc3545 !important;
    font-size: 13px !important;
}

/* 8.6 深色模式
   html:has(body.puock-dark) 是为了兜住「弹窗被挂到 html 下」的情况 */
body.puock-dark .swal2-popup,
html[data-bs-theme="dark"] .swal2-popup,
html:has(body.puock-dark) .swal2-popup {
    background-color: #343a40 !important;
    color: #dee2e6 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55) !important;
}

body.puock-dark .swal2-title,
html[data-bs-theme="dark"] .swal2-title,
html:has(body.puock-dark) .swal2-title {
    color: #dee2e6 !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

body.puock-dark .swal2-html-container,
html[data-bs-theme="dark"] .swal2-html-container,
html:has(body.puock-dark) .swal2-html-container {
    color: rgba(222, 226, 230, 0.75) !important;
}

/* 按钮栏：插件 my-account-layout.css 给
   .user-registration-logout-swal2-container .swal2-modal .swal2-actions 刷了 #f4f4f4，
   深色下会留下一条浅灰底，这里提到 (0,4,0) 盖掉 */
body.puock-dark .swal2-container .swal2-popup .swal2-actions,
html[data-bs-theme="dark"] .swal2-container .swal2-popup .swal2-actions,
html:has(body.puock-dark) .swal2-container .swal2-popup .swal2-actions {
    background-color: transparent !important;
}

/* 取消按钮：插件那条是
   .user-registration-logout-swal2-container .swal2-modal .swal2-actions button.swal2-cancel
   特异性 (0,4,1) 且带 !important，又比本文件后加载，和白底规则打平后插件赢，
   结果就是「白底 + 浅灰字」看不清。多挂一层 .swal2-container 提到 (0,5,2) 才压得住。 */
body.puock-dark .swal2-container .swal2-popup .swal2-actions button.swal2-cancel,
html[data-bs-theme="dark"] .swal2-container .swal2-popup .swal2-actions button.swal2-cancel,
html:has(body.puock-dark) .swal2-container .swal2-popup .swal2-actions button.swal2-cancel {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #dee2e6 !important;
}

body.puock-dark .swal2-container .swal2-popup .swal2-actions button.swal2-cancel:hover,
html[data-bs-theme="dark"] .swal2-container .swal2-popup .swal2-actions button.swal2-cancel:hover,
html:has(body.puock-dark) .swal2-container .swal2-popup .swal2-actions button.swal2-cancel:hover {
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #f8f9fa !important;
}

body.puock-dark .swal2-input,
body.puock-dark .swal2-textarea,
body.puock-dark .swal2-select,
html[data-bs-theme="dark"] .swal2-input,
html[data-bs-theme="dark"] .swal2-textarea,
html:has(body.puock-dark) .swal2-input,
html:has(body.puock-dark) .swal2-textarea {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #dee2e6 !important;
}

/* 深色下 warning / info 图标的浅色描边会发白，压一档 */
body.puock-dark .swal2-icon,
html[data-bs-theme="dark"] .swal2-icon,
html:has(body.puock-dark) .swal2-icon {
    border-color: currentColor !important;
    background-color: transparent !important;
}

/* ============================================================
   9. 布局与按钮：现代化重排
   插件原本：卡片 30px 大圆角 + 60px 内边距、输入框 2px 圆角、
   按钮 14px 小字号且宽度随内容、模板里还夹带大量 <br /> 造成空行。
   ============================================================ */

/* 9.1 去掉模板里多余的换行（Elementor 自动分段插入的 <br />） */
html body .ur-frontend-form br {
    display: none !important;
}

/* 9.2 卡片：统一圆角，登录页限宽居中，注册页卡片化 */
html body div.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge {
    border-radius: 14px !important;
}

/* 只作用于登录页，编辑资料页同样带 .login 类，必须排除 */
html body .ur-frontend-form.login:not(.ur-edit-profile) {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    padding: 38px 34px !important;
}

html body .ur-frontend-form:not(.login) {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--pk-bg-card, #ffffff) !important;
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
    border-radius: 14px !important;
    padding: 30px 26px !important;
    box-shadow: 0 4px 16px var(--pk-c-block-shadow, rgba(0, 0, 0, 0.08)) !important;
}

/* 9.3 网格去掉插件的负边距 / 10px 内边距，让内容与卡片对齐。
   编辑资料页靠 inline width 做两列，不能用 100% 覆盖 */
html body .ur-frontend-form:not(.ur-edit-profile) .ur-form-row {
    margin: 0 !important;
}

html body .ur-frontend-form:not(.ur-edit-profile) .ur-form-grid {
    padding: 0 !important;
    width: 100% !important;
}

html body .ur-frontend-form.ur-edit-profile .ur-form-row {
    margin: 0 !important;
}

html body .ur-frontend-form.ur-edit-profile .ur-form-grid {
    padding: 0 8px 0 0 !important;
}

/* 9.4 标题与副标题 */
html body #user-registration .user-registration-login-title,
html body .ur-frontend-form .user-registration-login-title {
    display: block !important;
    color: var(--pk-c-font, #343a40) !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    margin: 0 0 10px !important;
}

html body #user-registration .user-registration-login-description,
html body .ur-frontend-form .user-registration-login-description {
    color: var(--pk-c-sub, #808695) !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 0 0 28px !important;
}

/* 9.5 字段间距与 label */
html body .ur-frontend-form .user-registration-form-row,
html body .ur-frontend-form .ur-field-item {
    margin-bottom: 18px !important;
}

html body .ur-frontend-form .user-registration-form-row > label,
html body .ur-frontend-form .ur-field-item .ur-label,
html body .ur-frontend-form .user-registration-form-row label:not(.user-registration-form__label):not(.ur-label) {
    display: block !important;
    margin: 0 0 8px !important;
    color: var(--pk-c-font, #343a40) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
}

/* 9.6 输入框：统一 46px 高、10px 圆角、主题边框。
   选择器全量对齐插件的 .ur-frontend-form--rounded-edge 规则以保证覆盖。 */
html body .ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input:is(.input-text, .ur-frontend-field):not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    background-color: var(--pk-c-input-bg, #f8f8f9) !important;
    /* 主题的 --bs-border-color 是 #f3f3f3，几乎看不见，改用半透明边框 */
    border: 1px solid var(--bs-border-color-translucent, #ced4da) !important;
    border-radius: 10px !important;
    color: var(--pk-c-font, #343a40) !important;
    font-size: 14px !important;
    line-height: 44px !important;
    box-shadow: none !important;
}

html body .ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input:is(.input-text, .ur-frontend-field):focus {
    border-color: var(--pk-c-primary, #1c60f3) !important;
    box-shadow: 0 0 0 3px rgba(28, 96, 243, 0.18) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pk-c-primary, #1c60f3) 18%, transparent) !important;
}

/* 密码框右侧留出眼睛图标的点击区域。
   选择器要保持和 9.6 输入框同层级，否则 padding:0 14px 会盖掉这里的 46px。 */
html body .ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid .hide_show_password .password-input-group input:is(.input-text, .ur-frontend-field),
html body .ur-frontend-form .password-input-group input:is(.input-text, .ur-frontend-field) {
    padding-right: 46px !important;
}

/* 眼睛图标的定位基准。.password-input-group 默认是 inline，
   绝对定位的包含块高度会塌陷成一行文字高（20px），而输入框是 46px；
   Chrome 用行内包含块勉强算得准，Firefox 严格按规范算，图标就贴到上方了。
   改成 block 让包含块等于输入框，再用 top:50% 居中。 */
html body .ur-frontend-form .password-input-group {
    display: block !important;
    position: relative !important;
}

html body .ur-frontend-form .password-input-group .password_preview {
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .ur-frontend-form .password_preview {
    right: 12px !important;
    width: 20px;
    height: 20px;
    color: var(--pk-c-sub, #808695) !important;
    font-size: 20px !important;
    text-decoration: none !important;
    opacity: 0.75;
}

html body .ur-frontend-form .password_preview:hover {
    color: var(--pk-c-primary, #1c60f3) !important;
    opacity: 1;
}

/* 9.7 记住我靠左、忘记密码靠右 */
html body .ur-frontend-form .user-registration-before-login-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 10px;
    margin: 4px 0 0 !important;
    padding: 0 !important;
}

html body .ur-frontend-form .user-registration-before-login-btn > div {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    float: none !important;
}

/* wpautop 会在这里塞一个空 <p>，作为 flex 项抢走右侧空间 */
html body .ur-frontend-form .user-registration-before-login-btn > p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 忘记密码：固定贴右，不受插件浮动 / 块级宽度影响 */
html body .ur-frontend-form .user-registration-LostPassword,
html body .ur-frontend-form .lost_password {
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
    float: none !important;
    width: auto !important;
}

html body .ur-frontend-form .user-registration-LostPassword > label,
html body .ur-frontend-form .lost_password > label {
    justify-content: flex-end !important;
    text-align: right !important;
}

html body .ur-frontend-form .user-registration-LostPassword a {
    white-space: nowrap;
}

html body .ur-frontend-form .user-registration-form__label-for-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    cursor: pointer;
}

html body .ur-frontend-form .user-registration-form__label-for-checkbox input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    flex: none;
}

/* 9.8 提交按钮：整行、48px 高、主色、按下有反馈 */
html body .ur-frontend-form .ur-button-container {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
}

html body .ur-frontend-form [data-field="login-button"] {
    margin-top: 24px !important;
}

/* 选择器对齐插件的 .ur-frontend-form--rounded 规则层级，
   否则按钮的 border-radius:25px!important 会盖住这里的设置 */
html body .ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid button.ur-submit-button,
html body .ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-button-container button.ur-submit-button,
html body .ur-frontend-form .user-registration-Button,
html body .ur-frontend-form .ur-submit-button,
html body .ur-frontend-form button[type="submit"],
html body .ur-frontend-form input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    background-color: var(--pk-c-primary, #1c60f3) !important;
    border: 1px solid var(--pk-c-primary, #1c60f3) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 1.5px;
    text-shadow: none !important;
    box-shadow: 0 3px 10px rgba(28, 96, 243, 0.25) !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--pk-c-primary, #1c60f3) 25%, transparent) !important;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

html body .ur-frontend-form .user-registration-Button:hover,
html body .ur-frontend-form .ur-submit-button:hover,
html body .ur-frontend-form button[type="submit"]:hover,
html body .ur-frontend-form input[type="submit"]:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #ffffff !important;
}

html body .ur-frontend-form .user-registration-Button:active,
html body .ur-frontend-form .ur-submit-button:active,
html body .ur-frontend-form button[type="submit"]:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

html body .ur-frontend-form .ur-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 9.9 底部「还没有账号？现在注册」 */
html body .ur-frontend-form .user-registration-register {
    display: block !important;
    margin: 20px 0 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
    text-align: center !important;
    font-size: 13.5px !important;
    color: var(--pk-c-sub, #808695) !important;
    line-height: 1.6 !important;
}

/* 9.10 注册页「隐私政策」勾选行 */
html body .ur-frontend-form .ur-field-item.field-privacy_policy .form-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px;
}

html body .ur-frontend-form .ur-field-item.field-privacy_policy .ur-label.checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    cursor: pointer;
}

html body .ur-frontend-form .ur-field-item.field-privacy_policy input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    flex: none;
}

/* 9.11 注册页密码强度提示 */
html body .ur-frontend-form .user-registration-password-strength,
html body .ur-frontend-form .ur-password-strength,
html body .ur-frontend-form .password-strength-meter {
    margin-top: 8px !important;
    font-size: 12px !important;
    color: var(--pk-c-sub, #808695) !important;
}

/* 9.12 移动端收紧留白 */
@media (max-width: 600px) {
    html body .ur-frontend-form.login:not(.ur-edit-profile) {
        padding: 28px 20px !important;
        border-radius: 12px !important;
    }

    html body .ur-frontend-form:not(.login) {
        padding: 24px 18px !important;
        border-radius: 12px !important;
    }

    html body .ur-frontend-form .user-registration-login-title {
        font-size: 22px !important;
    }

    html body .ur-frontend-form .user-registration-login-description {
        margin-bottom: 22px !important;
    }

    html body .ur-frontend-form .ur-submit-button {
        height: 46px !important;
        min-height: 46px !important;
    }
}

/* ============================================================
   10. 表单控件兜底：input / select / textarea 直接用确定色值
   部分环境（浏览器自动填充、无头渲染）下表单控件的背景色
   不跟随 var() 或内联 !important，这里给出浅 / 深两套确定值。
   ============================================================ */
/* 新版 UR 的文本输入框只带 .ur-frontend-field，老版本才是 .input-text，
   这里用 :is() 把所有 type 一次收口，两个类名都保留，升级回落都能覆盖 */
html body .ur-frontend-form input:is([type="text"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"], [type="search"], [type="date"]),
html body .ur-frontend-form input:is(.input-text, .ur-frontend-field),
html body .ur-frontend-form input.ur-frontend-field,
html body .ur-frontend-form select,
html body .ur-frontend-form textarea {
    background: #f8f8f9 !important;
    color: #343a40 !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
}

html body .ur-frontend-form input:is(.input-text, .ur-frontend-field)::placeholder,
html body .ur-frontend-form input.ur-frontend-field::placeholder,
html body .ur-frontend-form textarea::placeholder {
    color: #808695 !important;
}

/* 深色下主题的 --pk-c-input-bg 不会跟着变，必须写死底色；
   background-image 一起给，否则自动填充的浅黄底会透出来 */
body.puock-dark .ur-frontend-form input:is([type="text"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"], [type="search"], [type="date"]),
body.puock-dark .ur-frontend-form input:is(.input-text, .ur-frontend-field),
body.puock-dark .ur-frontend-form input.ur-frontend-field,
body.puock-dark .ur-frontend-form select,
body.puock-dark .ur-frontend-form textarea,
html[data-bs-theme="dark"] .ur-frontend-form input:is([type="text"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"], [type="search"], [type="date"]),
html[data-bs-theme="dark"] .ur-frontend-form input:is(.input-text, .ur-frontend-field),
html[data-bs-theme="dark"] .ur-frontend-form input.ur-frontend-field,
html[data-bs-theme="dark"] .ur-frontend-form select,
html[data-bs-theme="dark"] .ur-frontend-form textarea {
    /* 必须用 background 简写：插件里有一条 background 简写规则带 !important，
       单写 background-color 压不住，会出现"深色渐变 + 浅色底"的混搭 */
    background: #212529 !important;
    color: #dee2e6 !important;
    border-color: #495057 !important;
    -webkit-text-fill-color: #dee2e6;
    caret-color: #dee2e6;
}

body.puock-dark .ur-frontend-form input:is(.input-text, .ur-frontend-field):focus,
body.puock-dark .ur-frontend-form input.ur-frontend-field:focus,
html[data-bs-theme="dark"] .ur-frontend-form input:is(.input-text, .ur-frontend-field):focus,
html[data-bs-theme="dark"] .ur-frontend-form input.ur-frontend-field:focus {
    border-color: var(--pk-c-primary, #1c60f3) !important;
}

body.puock-dark .ur-frontend-form select option,
html[data-bs-theme="dark"] .ur-frontend-form select option {
    background-color: #212529 !important;
    color: #dee2e6 !important;
}

/* 密码可见按钮是链接，避免被通用 a 规则染成主色 */
html body .ur-frontend-form a.password_preview {
    color: var(--pk-c-sub, #808695) !important;
}

/* ============================================================
   11. 编辑资料页（.ur-edit-profile）
   该页的根节点同样带 .login 类，上面的 420px 卡片规则已排除它。
   ============================================================ */

/* 11.1 去掉插件给表单的独立外观，融入账户内容卡片 */
html body .ur-edit-profile.ur-frontend-form {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 11.2 顶部提示条 */
html body .ur-frontend-form .user-registration-myaccount-notice-box {
    margin: 0 0 22px !important;
    padding: 14px 16px !important;
    background-color: color-mix(in srgb, var(--pk-c-primary, #1c60f3) 7%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--pk-c-primary, #1c60f3) 22%, transparent) !important;
    border-radius: 12px !important;
}

html body .ur-frontend-form .user-registration-myaccount-notice-box--title {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
}

html body .ur-frontend-form .user-registration-myaccount-notice-box .notice-icon {
    color: var(--pk-c-primary, #1c60f3) !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 1px 0 0 !important;
}

html body .ur-frontend-form .user-registration-myaccount-notice-box h2 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    color: var(--pk-c-font, #343a40) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

html body .ur-frontend-form .user-registration-myaccount-notice-box p {
    margin: 0 0 6px !important;
    color: var(--pk-c-sub, #6c757d) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

html body .ur-frontend-form .user-registration-myaccount-notice-box p:last-child {
    margin-bottom: 0 !important;
}

/* 11.3 表单标题 */
html body .ur-frontend-form .user-registration-profile-fields > h2 {
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
    color: var(--pk-c-font, #343a40) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* 11.4 头像区与上传按钮 */
html body .ur-frontend-form .user-registration-profile-fields .user-registration-profile-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    min-height: 0 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
}

/* 图片容器只负责包住头像：里层 wpautop 空段落曾把它撑到 120px 高 */
html body .ur-frontend-form .user-registration-profile-fields .user-registration-img-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
}

html body .ur-frontend-form .user-registration-profile-fields .user-registration-img-container > p,
html body .ur-frontend-form .user-registration-profile-fields .user-registration-img-container > br {
    display: none !important;
}

html body .ur-frontend-form .user-registration-profile-fields img.profile-preview {
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1)) !important;
}

/* 提示文字若显示，独占一行放到头像下方 */
html body .ur-frontend-form .user-registration-tips {
    flex: 0 0 100% !important;
    margin: 4px 0 0 !important;
    color: var(--pk-c-sub, #808695) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* 「上传」和「去掉」排成一行，等高、等圆角 */
html body .ur-frontend-form .user-registration-profile-fields .button-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    float: none !important;
    /* 插件把按钮组 absolute 定位到 header 外面，header 因此高度塌陷成 0，
       按钮和头像错位；拉回文档流后由 flex 对齐 */
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
}

html body .ur-frontend-form .user-registration-profile-fields .button-group > br,
html body .ur-frontend-form .user-registration-profile-fields .button-group > p {
    display: none !important;
}

/* :not([style*="display:none"]) 是关键：
   「删除头像」按钮初始带内联 display:none，只有上传过自定义头像才由 JS 显示，
   不排除的话会被下面的 inline-flex !important 顶出来，多出一个按钮 */
html body .ur-frontend-form .user-registration-profile-fields .button-group button.button:not([style*="display:none"]):not([style*="display: none"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.15)) !important;
    border-radius: 8px !important;
    background-color: var(--pk-bg-card, #ffffff) !important;
    color: var(--pk-c-sub, #808695) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
    flex: 0 0 auto !important;
    vertical-align: middle !important;
    transition: color 0.16s ease, border-color 0.16s ease;
}

/* 「去掉」带文字：保持同高、水平内边距对称、不换行 */
html body .ur-frontend-form .user-registration-profile-fields .button-group button.profile-pic-remove {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

html body .ur-frontend-form .user-registration-profile-fields .button-group button.button:hover {
    border-color: var(--pk-c-primary, #1c60f3) !important;
    color: var(--pk-c-primary, #1c60f3) !important;
}

html body .ur-frontend-form .user-registration-profile-fields .button-group button.profile-pic-remove:hover {
    border-color: rgba(220, 53, 69, 0.4) !important;
    color: #dc3545 !important;
}

html body .ur-frontend-form .user-registration-profile-fields .button-group button.button svg,
html body .ur-frontend-form .user-registration-profile-fields .button-group button.button i {
    width: 15px !important;
    height: 15px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* 11.5 字段块间距 */
html body .ur-frontend-form .user-registration-profile-fields__field-wrapper > .ur-form-row {
    display: flex !important;
    flex-wrap: wrap !important;
}

html body .ur-frontend-form .user-registration-profile-fields .ur-field-item {
    margin-bottom: 16px !important;
}

html body .ur-frontend-form .user-registration-profile-fields .ur-field-item .form-row {
    margin: 0 !important;
}
