/* ============================================================
 * 商品详情页（Single Product）- NUVAROX 风格
 * 使用自定义模板 woocommerce/content-single-product.php
 * 外层结构：.nuv-wrapper > .nuv-layout > (.nuv-gallery | .nuv-summary)
 * ============================================================ */

/* ---- 整体包裹：白卡片，限宽居中，上下留白 ---- */
.nuv-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* ---- 左右分栏：图片 55% : 信息 45% ---- */
.nuv-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.nuv-gallery {
    width: 55%;
    flex: 0 0 55%;
}
.nuv-summary {
    width: 45%;
    flex: 0 0 45%;
}

/* ---- 标题：粗体无衬线，约 38px ---- */
.nuv-title {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #111111;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
}

/* ---- 价格：24px 黑色，横向排列含折扣 ---- */
.nuv-price {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
/* 现价 */
.nuv-price ins,
.nuv-price > .woocommerce-Price-amount,
.nuv-price .price .amount {
    font-weight: 700;
    color: #111111;
    text-decoration: none;
}
.nuv-price .amount,
.nuv-price del .amount,
.nuv-price ins .amount {
    font-weight: 600;
    color: #111111;
}
/* 原价：划线、灰色、小一号 */
.nuv-price del {
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
    opacity: 1;
}
.nuv-price del .amount {
    color: #999999;
    text-decoration: line-through;
}
/* 红色折扣徽标 */
.nuv-discount {
    background: #e02b2b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    line-height: 1;
}

/* ---- 描述：行高 1.8，浅灰色 ---- */
.nuv-desc {
    color: #777777;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ---- 数量选择器与加入购物车并排 ---- */
.nuv-cart form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px;
}
/* 顶部数量行里的默认 ADD TO CART 按钮已无用，隐藏（保留数量输入框与表单） */
.nuv-cart .single_add_to_cart_button,
.nuv-cart button[type="submit"] {
    display: none !important;
}
.nuv-cart .quantity {
    flex: 0 0 auto;
}
/* 数量步进：[-] [输入框] [+] 组成一个有边框的组 */
.nuv-cart .quantity {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    overflow: hidden;
}
.nuv-qty-btn {
    width: 48px;
    height: 56px;
    padding: 0;
    border: none;
    background: #ffffff;
    color: #111111;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}
.nuv-qty-btn:hover {
    background: #f2f2f2;
    color: #111111;
}
.nuv-cart .quantity input.qty {
    width: 64px;
    height: 56px;
    padding: 6px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    box-sizing: border-box;
    -moz-appearance: textfield;
    outline: none;
}
.nuv-cart .quantity input.qty::-webkit-outer-spin-button,
.nuv-cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---- ADD TO CART 按钮：黑底白字，无圆角，悬停变深灰 ---- */
.nuv-cart .single_add_to_cart_button {
    flex: 1;
    display: inline-block;
    background-color: #111111 !important;
    color: #ffffff !important;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: auto;
    height: 56px;
    padding: 0 30px !important;
    line-height: 56px;
    border: 1px solid #111111;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.nuv-cart .single_add_to_cart_button:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

/* ---- 隐藏多余元素：WooCommerce 星评 + 社交分享 ---- */
.woocommerce-product-rating,
.nuv-summary .star-rating,
.nuv-summary .woocommerce-review-link,
.social-share,
.product-share,
.nuv-summary .product_meta {
    display: none !important;
}
.woocommerce-breadcrumb,
.breadcrumb {
    display: none !important;
}

/* ---- 放大镜图标：白色背景圆形 ---- */
.woocommerce-product-gallery__trigger {
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.woocommerce-product-gallery__trigger img,
.woocommerce-product-gallery__trigger .fa,
.woocommerce-product-gallery__trigger i {
    color: #111111 !important;
}

/* ---- 图片区圆角、细节 ---- */
.nuv-gallery .woocommerce-product-gallery {
    margin: 0;
}
.nuv-gallery .woocommerce-product-gallery figure,
.nuv-gallery .woocommerce-product-gallery img {
    border-radius: 4px;
}

/* ---- 主图下方缩略图：横向排列，一行最多 5 张 ---- */
.nuv-gallery .woocommerce-product-gallery .flex-control-thumbs,
.nuv-gallery .woocommerce-product-gallery ol.flex-control-thumbs,
.nuv-gallery .woocommerce-product-gallery .thumbnails,
.nuv-gallery .woocommerce-product-gallery .product-thumbnails {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    list-style: none !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
}
.nuv-gallery .woocommerce-product-gallery .flex-control-thumbs li,
.nuv-gallery .woocommerce-product-gallery .thumbnails li,
.nuv-gallery .woocommerce-product-gallery .product-thumbnails li {
    flex: 0 0 calc(20% - 9.6px) !important; /* 5 列，扣掉 gap */
    box-sizing: border-box !important;
    margin: 0 !important;
}
.nuv-gallery .woocommerce-product-gallery .flex-control-thumbs li img,
.nuv-gallery .woocommerce-product-gallery .thumbnails li img,
.nuv-gallery .woocommerce-product-gallery .product-thumbnails li img {
    width: 100% !important;
    object-fit: cover !important;
    cursor: pointer !important;
}

/* ---- 移动端：分栏改为纵向堆叠 ---- */
@media (max-width: 768px) {
    .nuv-layout {
        flex-direction: column;
        gap: 30px;
    }
    .nuv-gallery,
    .nuv-summary {
        width: 100% !important;
        flex: 0 0 100%;
    }
    .nuv-title {
        font-size: 30px;
    }
    .nuv-cart form.cart {
        flex-wrap: wrap;
    }
}

/* ============================================================
 * 站点头部（Header）- NUVAROX 风格
 * 结构：header.php > .nuv-header > .nuv-header-inner
 *       左导航 / 中 logo / 右工具区
 * ============================================================ */

/* ---- 头部容器：白底、下边框、限宽居中 ---- */
.nuv-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
}
.nuv-header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* ---- 左：导航（店铺 / 新的 / 活的）---- */
.nuv-header-nav .nuv-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}
.nuv-header-nav .nuv-nav-menu li {
    margin: 0;
}
.nuv-header-nav .nuv-nav-menu a {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    line-height: 1.4;
}
.nuv-header-nav .nuv-nav-menu a:hover {
    color: #666666;
}

/* ---- 去掉头部导航展开的下拉/巨型菜单（仅保留一级链接）---- */
.nuv-header-nav .nuv-nav-menu .sub-menu,
.nuv-header-nav .nuv-nav-menu ul ul,
.nuv-header-nav .nuv-nav-menu .dropdown-menu,
.nuv-header-nav .nuv-nav-menu .mega-menu,
.nuv-header-nav .nuv-nav-menu .wpb-megamenu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* 去掉子菜单项的 hover 展开与箭头 */
.nuv-header-nav .nuv-nav-menu .menu-item-has-children,
.nuv-header-nav .nuv-nav-menu li {
    position: static;
}
.nuv-header-nav .nuv-nav-menu .menu-item-has-children > a::after,
.nuv-header-nav .nuv-nav-menu .menu-item-has-children > a:after {
    display: none !important;
    content: none !important;
}

/* ---- 中：品牌 Logo ---- */
.nuv-header-logo {
    text-align: center;
}
.nuv-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #111111;
    text-decoration: none;
}

/* SS 字母图形标：细线条、无底色，与文字同色 */
.nuv-logo-mark {
    display: inline-flex;
    flex: none;
    color: inherit;
}
.nuv-logo-mark svg {
    display: block;
}

/* ---- 右：工具区（货币 / 搜索 / 登录 / 心愿单 / 购物车）---- */
.nuv-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}
.nuv-tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #111111;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.nuv-tool:hover {
    color: #666666;
}
.nuv-tool svg {
    display: block;
}
.nuv-chevron {
    margin-left: 2px;
    opacity: 0.6;
}
.nuv-currency-code {
    font-size: 13px;
}
.nuv-currency-symbol {
    font-size: 14px;
}

/* 语言下拉框：点击旗标展开 */
.nuv-tool-language {
    position: relative;
    cursor: pointer;
}
.nuv-language-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}
.nuv-language-flag {
    font-size: 18px;
    line-height: 1;
}
.nuv-language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    max-width: 320px;
    max-height: min(420px, calc(100vh - 160px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    z-index: 999;
}
.nuv-tool-language.is-open .nuv-language-dropdown {
    display: block;
}
.nuv-tool-language.is-open::after {
    content: '';
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #e6e6e6;
    border-top: 1px solid #e6e6e6;
    z-index: 1002;
}
.nuv-language-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background-color .15s;
}
.nuv-language-opt:hover {
    background-color: #f5f5f5;
}
.nuv-language-opt.is-active {
    font-weight: 700;
    color: #111;
    background-color: #f9f9f9;
}
.nuv-language-opt-flag {
    width: 24px;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}
.nuv-language-opt-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nuv-language-opt-native {
    color: #333;
    font-size: 13px;
    line-height: 1.3;
}
.nuv-language-opt-en {
    color: #999;
    font-size: 11px;
    line-height: 1.2;
}

/* 货币下拉框：点击 USD 展开 */
.nuv-tool-currency {
    position: relative;
    cursor: pointer;
}
.nuv-currency-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}
.nuv-currency-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    z-index: 999;
}
.nuv-tool-currency.is-open .nuv-currency-dropdown {
    display: block;
}
.nuv-currency-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #e6e6e6;
    border-top: 1px solid #e6e6e6;
}
.nuv-currency-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background-color .15s;
}
.nuv-currency-opt:hover {
    background-color: #f5f5f5;
}
.nuv-currency-opt.is-active {
    font-weight: 700;
    color: #111;
}
.nuv-currency-opt-sym {
    width: 24px;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}
.nuv-currency-opt-code {
    font-weight: 700;
}
.nuv-currency-opt-name {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.nuv-currency-opt-zh {
    color: #333;
    font-size: 13px;
}
.nuv-currency-opt-en {
    color: #999;
    font-size: 11px;
}

/* 底部语言切换下拉框（向上展开） */
.nuv-footer-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 0;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.nuv-langsw {
    position: relative;
}
.nuv-langsw-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}
.nuv-langsw-globe { font-size: 14px; }
.nuv-langsw-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 220px;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .15);
    z-index: 999;
}
.nuv-langsw.is-open .nuv-langsw-dropdown {
    display: block;
}
.nuv-langsw-opt {
    display: block;
    padding: 7px 14px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nuv-langsw-opt:hover {
    background: #f0f6ff;
    color: #0066cc;
}
.nuv-langsw-opt.is-active {
    background: #0066cc;
    color: #fff;
}
/* 下拉框窄屏也右对齐，方便操作 */
@media (max-width: 768px) {
    .nuv-langsw-dropdown { left: auto; right: 0; }
}

/* 购物车角标 */
.nuv-tool-cart {
    position: relative;
}
.nuv-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background-color: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
}

/* ---- 移动端头部 ---- */
@media (max-width: 768px) {
    .nuv-header-inner {
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
        padding: 16px 14px;
    }
    .nuv-header-nav {
        display: none; /* 小屏隐藏导航，保持居中 logo 布局 */
    }
    .nuv-header-tools {
        gap: 12px;
    }
    .nuv-tool-label {
        display: none;
    }
    .nuv-logo-link {
        font-size: 20px;
    }
}

/* ============================================================
 * 购买面板（Purchase Panel）组件
 * 对应 content-single-product.php 的信息区：卖点 / 件数 / BuyNow / PayPal
 * ============================================================ */

/* ---- 价值卖点：绿色勾 + 灰色小字 ---- */
.nuv-perks {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.nuv-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    line-height: 1.4;
}
.nuv-perks li + li {
    margin-top: 10px;
}
.nuv-perks li::before {
    content: none;
}
.nuv-perk-ico {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: #374151;
}

/* ---- 件数选择：标签 + 两个切换块 ---- */
.nuv-bundle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 24px;
}
.nuv-bundle-label {
    font-size: 14px;
    color: #111111;
    font-weight: 500;
}
.nuv-bundle-opt {
    display: inline-block;
    min-width: 56px;
    padding: 8px 14px;
    text-align: center;
    font-size: 14px;
    color: #999999;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
}
.nuv-bundle-opt.is-active {
    color: #111111;
    background: #ffffff;
    border-color: #111111;
}

/* ---- 立即购买：描边空心按钮，全宽 ---- */
.nuv-buynow {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 15px 30px;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.nuv-buynow:hover {
    background: #111111;
    color: #ffffff;
}

/* ---- 面板下方的“添加到购物车”按钮：黑底白字全宽，无圆角 ---- */
.nuv-addtocart {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 15px 30px;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
    background: #111111;
    border: 1px solid #111111;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.nuv-addtocart:hover {
    background: #333333;
    border-color: #333333;
}

/* ---- 快速结账分隔线 ---- */
.nuv-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
}
.nuv-divider::before,
.nuv-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}
.nuv-divider span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    color: #111111;
    white-space: nowrap;
}

/* ---- PayPal 按钮：黄色，全宽，双色文案 ---- */
.nuv-paypal {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 15px 30px;
    text-align: center;
    background: #ffc439;
    border: 1px solid #ffc439;
    border-radius: 0;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: opacity 0.25s ease;
}
.nuv-paypal:hover {
    opacity: 0.9;
}
.nuv-paypal .paypal-logo {
    display: inline-block;
    height: 22px;
    width: auto;
    vertical-align: middle;
}

/* ============================================================
 * 主图下方商品描述区
 * content-single-product.php > .nuv-gallery > .nuv-product-desc
 * 内容取自商品描述字段（数据库）
 * ============================================================ */
.nuv-product-desc {
    margin: 28px 0 0;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
}
.nuv-desc-title {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 14px;
}
.nuv-desc-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555555;
}
.nuv-desc-content p {
    margin: 0 0 14px;
}
.nuv-desc-content h1,
.nuv-desc-content h2,
.nuv-desc-content h3,
.nuv-desc-content h4 {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #111111;
    margin: 18px 0 10px;
}
.nuv-desc-content img {
    max-width: 100%;
    height: auto;
}

/* ---- 描述下方大图区：全宽堆叠，取自商品相册图片 ---- */
.nuv-gallery-detail {
    margin: 28px 0 0;
}
.nuv-gallery-detail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.nuv-gallery-detail img + img {
    margin-top: 12px;
}

/* ---- 相关产品区 ---- */
.nuv-related {
    margin: 48px 0 0;
}
.nuv-related-title {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 24px;
}
.nuv-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.nuv-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.nuv-rc-img {
    position: relative;
    background: #f7f7f7;
    margin-bottom: 14px;
    overflow: hidden;
}
.nuv-rc-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
.nuv-rc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e02b2b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
}
.nuv-rc-brand {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 4px;
}
.nuv-rc-title {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nuv-rc-title:hover {
    color: #555555;
}
/* 价格：划线原价灰色 + 现价橙色 */
.nuv-rc-price {
    font-size: 16px;
    font-weight: 700;
    color: #e67e22;
}
.nuv-rc-price del {
    font-size: 13px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
    margin-right: 8px;
}
.nuv-rc-price del .amount {
    color: #999999;
    text-decoration: line-through;
}
.nuv-rc-price .amount {
    color: #e67e22;
}
.nuv-rc-price ins {
    text-decoration: none;
}
.nuv-rc-price ins .amount {
    color: #e67e22;
}

/* 响应式：相关产品 4 栏 → 2 栏 → 1 栏 */
@media (max-width: 992px) {
    .nuv-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .nuv-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* ---- 商品大图点击放大：Lightbox 遮罩（参照截图：白卡 + 红框 X 关闭） ---- */
/* 关闭 WooCommerce 默认的放大镜缩放层与灯箱触发按钮，避免拦截我们的点击 */
.woocommerce-product-gallery__image .zoomImg,
.woocommerce-product-gallery__trigger {
    display: none !important;
}
/* 主图/详细大图此时可点击放大的提示 */
.nuv-gallery .woocommerce-product-gallery__image img,
.nuv-gallery-detail img {
    cursor: zoom-in;
}
.nuv-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.62); /* 半透明深灰遮罩，保留页面上下文 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 40px;
    box-sizing: border-box;
}
.nuv-lightbox-inner {
    position: relative;
    background: #ffffff; /* 白色卡片容器 */
    max-width: 70vw;
    max-height: 85vh;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.nuv-lightbox-inner img {
    display: block;
    max-width: calc(70vw - 48px);
    max-height: calc(85vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
}
/* 红框 X 关闭按钮（右上角） */
.nuv-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 40px;
    height: 40px;
    border: 2px solid #e02b2b;
    background: #ffffff;
    color: #e02b2b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.nuv-lightbox-close:hover {
    background: #e02b2b;
    color: #ffffff;
}

/* ---- 详情页最底部：4 栏深色信息区块（全宽） ---- */
.nuv-footer-band {
    width: 100%;
    background-color: #2a2a2a; /* 深炭灰底 */
    padding: 56px 20px;
    box-sizing: border-box;
    margin-top: 60px;
}
.nuv-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.nuv-footer-title {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nuv-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nuv-footer-links li {
    margin-bottom: 12px;
}
.nuv-footer-links a {
    color: #b6b6b6;
    font-size: 15px;
    text-decoration: none;
    line-height: 1.6;
    transition: color .2s ease;
}
.nuv-footer-links a:hover {
    color: #ffffff;
}
.nuv-footer-email {
    display: inline-block;
    color: #b6b6b6;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 14px;
    line-height: 1.5;
    transition: color .2s ease;
}
.nuv-footer-email:hover {
    color: #ffffff;
}
.nuv-footer-note {
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}
/* 支付图标：使用 icon 文件夹内的真实品牌图标，横向单排、紧凑小尺寸 */
.nuv-pay-row {
    display: flex;
    flex-wrap: nowrap; /* 强制单行不换行 */
    align-items: center;
    gap: 8px;
}
.nuv-pay-icon {
    height: 22px;       /* 小而清晰可见（5px 会看不见，故取可见小尺寸） */
    width: auto;
    max-width: 56px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 3px;
    padding: 3px;
    box-sizing: border-box;
}
/* 「我们接受」组合图：215×26 的整条卡组织标识，保持原始比例、不裁切 */
.nuv-pay-methods {
    display: block;
    width: auto;
    max-width: 100%;
    height: 26px;
    object-fit: contain;
}

/* 响应式：4 栏 → 2 栏 → 1 栏 */
@media (max-width: 992px) {
    .nuv-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .nuv-footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   极客重构：首页纯代码样式
   ========================================== */

/* 1. 全局通用 */
.geek-home-main { background-color: #fff !important; }
.section-title { font-size: 32px !important; font-weight: 800 !important; text-align: center !important; margin: 60px 0 40px !important; color: #111 !important; }

/* 2. Hero 区域 */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?q=80&w=2000') center/cover no-repeat !important;
    height: 600px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 60px !important;
}
.hero-content h1 { font-size: 56px !important; color: #fff !important; font-weight: 800 !important; margin-bottom: 20px !important; letter-spacing: -1px !important; }
.hero-content p { font-size: 18px !important; color: #eee !important; margin-bottom: 30px !important; }
.btn-primary { display: inline-block !important; background: #fff !important; color: #111 !important; padding: 15px 40px !important; text-decoration: none !important; font-weight: bold !important; transition: 0.3s !important; }
.btn-primary:hover { background: #000 !important; color: #fff !important; }

/* 3. 分类卡片 */
.category-grid { display: flex !important; gap: 20px !important; max-width: 1200px !important; margin: 0 auto !important; justify-content: center !important; padding: 0 20px !important; }
.category-card { width: 25% !important; background: #f8f9fa !important; padding: 40px 20px !important; text-align: center !important; text-decoration: none !important; transition: 0.3s !important; }
.category-card:hover { background: #111 !important; }
.category-card:hover h3 { color: #fff !important; }
.cat-icon { font-size: 40px !important; margin-bottom: 15px !important; }
.category-card h3 { font-size: 18px !important; color: #333 !important; margin: 0 !important; }

/* 4. 商品列表 (清理 WPBakery 带来的样式污染) */
.products-wrapper { max-width: 1200px !important; margin: 0 auto !important; padding: 0 20px !important; }
.products-wrapper ul.products.columns-4 { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 24px !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.products-wrapper .product { position: relative !important; background: transparent !important; padding: 0 !important; list-style: none !important; }

/* 图片区：相对定位，供徽标/品牌居放 */
.nuv-prod-media { position: relative !important; display: block !important; overflow: hidden !important; background: #f5f5f5 !important; }
.nuv-prod-media img { width: 100% !important; height: auto !important; display: block !important; }

/* 图片左上角品牌水印 */
.nuv-prod-brand { position: absolute !important; top: 10px !important; left: 12px !important; color: #bbb !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 1px !important; }

/* 右上角折扣徽标：白底黑字小圆角 */
.nuv-prod-badge { position: absolute !important; top: 10px !important; right: 10px !important; background: #fff !important; color: #111 !important; font-size: 11px !important; font-weight: 600 !important; padding: 3px 8px !important; border-radius: 4px !important; }

/* 心愿单心形：图片下方、标题右侧 */
.nuv-prod-wish { position: absolute !important; right: 0 !important; bottom: 0 !important; background: #fff !important; border: none !important; color: #bbb !important; cursor: pointer !important; padding: 4px !important; }
.nuv-prod-wish:hover { color: #e67e22 !important; }

/* 标题：小号常规字 */


.products-wrapper .product .woocommerce-loop-product__title { font-size: 14px !important; font-weight: 400 !important; margin: 12px 0 6px !important; padding: 0 !important; color: #333 !important; line-height: 1.4 !important; }
.products-wrapper .product .woocommerce-loop-product__title a { color: inherit !important; text-decoration: none !important; }

/* 价格：现价橙红 + 原价灰色划线 */
.products-wrapper .product .price { color: #e67e22 !important; font-weight: 600 !important; font-size: 14px !important; }
.products-wrapper .product .price del,
.products-wrapper .product .price del .amount { color: #999 !important; font-weight: 400 !important; text-decoration: line-through !important; margin-right: 4px !important; }
.products-wrapper .product .price ins { text-decoration: none !important; }


/* =========================================================
 * 结账页（Checkout）改造 —— 对齐 Shopify 双栏风格截图
 * 只保留 PayPal 与信用卡支付；隐藏 Apple Pay 相关元素
 * ========================================================= */

/* 页面背景：浅灰白，内容居中卡片化 */
.woocommerce-checkout {
  background: #f5f7fa !important;
}
.woocommerce-checkout .woocommerce {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 24px !important;
}

/* 双栏布局：左表单（约 55%）+ 右订单摘要（约 45%） */
.woocommerce-checkout form.checkout {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  align-items: flex-start !important;
}
.woocommerce-checkout form.checkout #customer_details {
  flex: 1 1 55% !important;
  min-width: 320px !important;
}
.woocommerce-checkout form.checkout #order_review_heading,
.woocommerce-checkout form.checkout #order_review {
  flex: 1 1 40% !important;
  min-width: 300px !important;
}
.woocommerce-checkout form.checkout #order_review_heading {
  margin-bottom: 0 !important;
}

/* 区块白卡片 + 圆角 + 浅灰边框 */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout #payment,
.woocommerce-checkout #order_review {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}
.woocommerce-checkout #order_review_heading {
  margin-top: 0 !important;
  padding: 0 4px !important;
}

/* 区块标题：紧凑、深灰、间距一致 */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #payment h3 {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #303030 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

/* 表单输入框：白底、浅灰边框、圆角 6px、浮动占位 */
.woocommerce-checkout .woocommerce-billing-fields .input-text,
.woocommerce-checkout .woocommerce-shipping-fields .input-text,
.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout #order_review .coupon input.input-text {
  background: #ffffff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #333 !important;
  box-shadow: none !important;
  min-height: 42px !important;
}
.woocommerce-checkout .woocommerce-billing-fields .input-text:focus,
.woocommerce-checkout .woocommerce-shipping-fields .input-text:focus,
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout #order_review .coupon input.input-text:focus {
  border-color: #007bff !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15) !important;
}

/* 支付区块文案 */
.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
  font-size: 12px !important;
  color: #888 !important;
}

/* ===== 支付方式单选列表：卡片化、对齐截图 ===== */
.woocommerce-checkout #payment ul.payment_methods {
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
  list-style: none !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  margin: 0 0 10px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: #007bff !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  cursor: pointer !important;
}
/* 选中的支付方式卡片高亮 */
.woocommerce-checkout #payment ul.payment_methods li.selected {
  border-color: #007bff !important;
  box-shadow: 0 0 0 1px #007bff !important;
}
/* 支付方式标题（PayPal / Credit Card） */
.woocommerce-checkout #payment ul.payment_methods li label {
  flex: 1 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #303030 !important;
  cursor: pointer !important;
  margin: 0 !important;
}
/* PayPal / 卡组织 logo 右对齐，保持品牌色 */
.woocommerce-checkout #payment ul.payment_methods li img {
  max-height: 24px !important;
  width: auto !important;
  margin-left: auto !important;
}

/* ===== 隐藏 Apple Pay 相关元素 ===== */
.woocommerce-checkout #payment ul.payment_methods li.payment_method_apple_pay,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_applepay,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_stripe_applepay,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_ppcp_applepay,
.woocommerce-checkout #apple_pay_button,
.woocommerce-checkout #payment .apple-pay-button,
.woocommerce-checkout button.apple-pay-button,
.woocommerce-checkout .apple-pay-button-wrapper,
.wc-applepay-button,
.woocommerce-checkout #payment ul.payment_methods li:has([id*="apple"]),
.woocommerce-checkout #payment ul.payment_methods li:has([class*="apple-pay"]),
.woocommerce-checkout #payment ul.payment_methods li:has([class*="applepay"]) {
  display: none !important;
}

/* 订单摘要：商品行、金额明细对齐截图 */
.woocommerce-checkout #order_review table.shop_table {
  border: none !important;
  background: transparent !important;
  font-size: 14px !important;
}
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 10px 0 !important;
  color: #333 !important;
}
.woocommerce-checkout #order_review table.shop_table tfoot .order-total th,
.woocommerce-checkout #order_review table.shop_table tfoot .order-total td {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111 !important;
  border-top: 2px solid #e0e0e0 !important;
}

/* 优惠券区域：输入框 + Apply 幽灵按钮 */
.woocommerce-checkout #order_review .coupon {
  display: flex !important;
  gap: 8px !important;
  margin: 14px 0 !important;
}
.woocommerce-checkout #order_review .coupon button[name="apply_coupon"] {
  background: #ffffff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 6px !important;
  color: #333 !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  cursor: pointer !important;
}

/* 提交订单主按钮：品牌蓝、全宽、圆角 */
.woocommerce-checkout button#place_order {
  background: #0066cc !important;
  border: none !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 14px 20px !important;
  width: 100% !important;
  cursor: pointer !important;
  margin-top: 12px !important;
  transition: background 0.15s ease !important;
}
.woocommerce-checkout button#place_order:hover {
  background: #0052a3 !important;
}

/* 响应式：窄屏单栏堆叠 */
@media (max-width: 768px) {
  .woocommerce-checkout form.checkout #customer_details,
  .woocommerce-checkout form.checkout #order_review_heading,
  .woocommerce-checkout form.checkout #order_review {
    flex-basis: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
 * 结账页 v2 —— 100% 还原 Shopify 风格截图（覆盖旧结账样式）
 * 双栏：左表单(55%) + 右订单摘要(45%)
 * 配色：白底 / 侧栏#F9FAFB / 文字#111827 / 灰#6B7280 / 占位#9CA3AF
 *      交互蓝#2563EB / PayPal黄#FFC439 / 边框#D1D5DB
 * ========================================================= */
.woocommerce-checkout.nuv-checkout,
.nuv-checkout form.checkout {
  background: #ffffff !important;
}
.nuv-checkout .woocommerce {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 24px 32px !important;
  background: #ffffff !important;
}

/* 双栏布局 */
.nuv-checkout-layout {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 48px !important;
}
.nuv-checkout-left {
  flex: 1 1 55% !important;
  min-width: 320px !important;
}
.nuv-checkout-right {
  flex: 1 1 40% !important;
  min-width: 300px !important;
  border-left: 1px solid #e5e7eb !important;
  padding-left: 48px !important;
}

/* 品牌 Logo */
.nuv-checkout-logo {
  font-size: 21px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 32px !important;
  letter-spacing: -0.2px !important;
}

/* ===== Express Checkout 快捷支付（去掉 Apple Pay） ===== */
.nuv-express-label {
  font-size: 12px !important;
  color: #737373 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  margin: 0 0 10px !important;
}
.nuv-express-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 50px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin: 0 0 10px !important;
  gap: 8px !important;
  transition: filter 0.15s ease !important;
}
.nuv-express-btn:hover { filter: brightness(0.96) !important; }
.nuv-exp-paypal {
  background: #ffc439 !important;
  color: #003087 !important;
}
/* 仅限制快捷结账按钮内的 PayPal 字标，避免影响弹窗内的字标尺寸 */
.nuv-express-btn .nuv-pp-logo {
  height: 22px !important;
  width: auto !important;
}

/* OR 分隔 */
.nuv-or {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 24px 0 !important;
  color: #737373 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
}
.nuv-or::before,
.nuv-or::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background: #e5e5e5 !important;
}

/* ===== 表单区块 ===== */
.nuv-section {
  margin: 0 0 32px !important;
}
.nuv-section-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  margin: 0 0 14px !important;
}
.nuv-section-head h3 {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nuv-login-link {
  font-size: 13px !important;
  color: #737373 !important;
  text-decoration: none !important;
}
.nuv-login-link b { font-weight: 600 !important; color: #2c6ecb !important; }
.nuv-login-link:hover b { text-decoration: underline !important; }

/* 输入框：44-48px 高、圆角 6px、边框 #D1D5DB */
.nuv-checkout .woocommerce-billing-fields .input-text,
.nuv-checkout .woocommerce-billing-fields select,
.nuv-checkout .woocommerce-billing-fields textarea,
.nuv-checkout .form-row input.input-text,
.nuv-checkout .form-row select,
.nuv-checkout .select2-container .select2-selection--single,
.nuv-checkout #order_review .coupon input.input-text {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: #111827 !important;
  min-height: 46px !important;
  box-shadow: none !important;
}
.nuv-checkout .form-row input.input-text:focus,
.nuv-checkout .form-row select:focus,
.nuv-checkout .woocommerce-billing-fields .input-text:focus {
  border-color: #2c6ecb !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(44, 110, 203, 0.15) !important;
}
.nuv-checkout .form-row input.input-text::placeholder {
  color: #9ca3af !important;
}
.nuv-checkout .woocommerce-billing-fields .form-row label,
.nuv-checkout .woocommerce-billing-fields label {
  font-size: 13px !important;
  color: #737373 !important;
  margin: 0 0 6px !important;
  line-height: 1.2 !important;
}

/* 名/姓 双列 */
.nuv-checkout .woocommerce-billing-fields .form-row {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
.nuv-checkout .woocommerce-billing-fields .form-row-first,
.nuv-checkout .woocommerce-billing-fields .form-row-last {
  width: 48% !important;
}
.nuv-checkout .woocommerce-billing-fields .form-row-first { float: left !important; }
.nuv-checkout .woocommerce-billing-fields .form-row-last { float: right !important; }
.nuv-checkout .woocommerce-billing-fields .form-row-wide { clear: both !important; }

/* City / State / ZIP 三列（截图布局） */
.nuv-checkout .woocommerce-billing-fields .nuv-fld-third {
  width: 31.6% !important;
  float: left !important;
  clear: none !important;
  margin-right: 2.5% !important;
}
.nuv-checkout #billing_city_field { margin-right: 0 !important; }

/* 营销勾选 */
.nuv-marketing-check {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  color: #737373 !important;
  cursor: pointer !important;
}
.nuv-marketing-input {
  width: 16px !important;
  height: 16px !important;
  accent-color: #2c6ecb !important;
  cursor: pointer !important;
}

/* ===== 支付方式（Payment） ===== */
.nuv-checkout #order_review_heading {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: none !important;
}
.nuv-checkout #order_review {
  background: #ffffff !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.nuv-checkout #payment {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 16px !important;
}
.nuv-checkout #payment ul.payment_methods {
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
}
.nuv-checkout #payment ul.payment_methods li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 16px !important;
  margin: 0 0 8px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}
.nuv-checkout #payment ul.payment_methods li.selected {
  border-color: #2c6ecb !important;
  box-shadow: 0 0 0 1px #2c6ecb !important;
}
.nuv-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: #2c6ecb !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}
.nuv-checkout #payment ul.payment_methods li label {
  flex: 1 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  margin: 0 !important;
}
.nuv-checkout #payment ul.payment_methods li img {
  max-height: 22px !important;
  margin-left: auto !important;
}
.nuv-checkout #payment div.payment_box {
  width: 100% !important;
  margin: 8px 0 0 26px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  font-size: 13px !important;
  color: #737373 !important;
}

/* Place order 蓝色全宽按钮 */
.nuv-checkout .form-row.place-order {
  margin: 16px 0 0 !important;
}
.nuv-checkout button#place_order {
  background: #000000 !important;
  border: none !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 15px 20px !important;
  width: 100% !important;
  cursor: pointer !important;
  margin-top: 12px !important;
}
.nuv-checkout button#place_order:hover { background: #1a1a1a !important; }

/* ===== 右栏订单摘要 ===== */
.nuv-summary-card {
  background: #f9fafb !important;
  border-radius: 12px !important;
  padding: 20px !important;
}
.nuv-sum-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
}
.nuv-sum-thumb {
  position: relative !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 8px !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}
.nuv-sum-thumb img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}
.nuv-qty-badge {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 50% !important;
  min-width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}
.nuv-sum-meta { flex: 1 !important; min-width: 0 !important; }
.nuv-sum-title {
  font-size: 13px !important;
  color: #111827 !important;
  line-height: 1.35 !important;
  margin: 0 0 2px !important;
}
.nuv-sum-variant {
  font-size: 12px !important;
  color: #737373 !important;
}
.nuv-sum-price {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  white-space: nowrap !important;
}

/* 优惠券 */
.nuv-coupon-row {
  display: flex !important;
  gap: 8px !important;
  margin: 16px 0 !important;
}
.nuv-coupon-input {
  flex: 1 !important;
  min-height: 42px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  background: #ffffff !important;
  color: #111827 !important;
}
.nuv-coupon-input::placeholder { color: #9ca3af !important; }
.nuv-coupon-btn {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 0 16px !important;
  min-height: 42px !important;
  cursor: pointer !important;
}

/* 金额明细 */
.nuv-totals { margin: 8px 0 0 !important; }
.nuv-total-row {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 14px !important;
  color: #111827 !important;
  padding: 8px 0 !important;
}
.nuv-total-grand {
  font-size: 17px !important;
  font-weight: 700 !important;
  border-top: 1px solid #e5e7eb !important;
  margin-top: 8px !important;
  padding-top: 12px !important;
}
.nuv-total-grand em {
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #737373 !important;
  margin-left: 4px !important;
}

/* 隐藏 WooCommerce 默认多余的结账摘要表（已用自定义右栏替代） */
.nuv-checkout .woocommerce-checkout-review-order table.shop_table,
.nuv-checkout .woocommerce-checkout-review-order .cart_totals {
  display: none !important;
}

/* 隐藏 Shipping 独立区标题占位 */
.nuv-checkout .woocommerce-shipping-fields h3 { display: none !important; }

/* 响应式 */
@media (max-width: 900px) {
  .nuv-checkout-layout { gap: 24px !important; }
  .nuv-checkout-right {
    flex-basis: 100% !important;
    border-left: none !important;
    padding-left: 0 !important;
  }
}

/* =========================================================
 * 结账页 v3 —— 移除主题装饰，对齐 Shopify 极简结账截图
 * 截图只有品牌名 + 结账表单，无导航栏 / 面包屑标题 / 页脚
 * ========================================================= */
body.woocommerce-checkout,
.nuv-checkout .woocommerce {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: #111827 !important;
}
body.woocommerce-checkout header#masthead,
body.woocommerce-checkout .nuv-header,
body.woocommerce-checkout .title-breadcumbs,
body.woocommerce-checkout .footer,
body.woocommerce-checkout .footer-1,
body.woocommerce-checkout #back-top {
  display: none !important;
}
/* 隐藏加购成功提示条（截图无此元素） */
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-checkout .woocommerce-message { display: none !important; }
/* 去掉主题在内容区的顶部留白 */
body.woocommerce-checkout #content.site-content { padding-top: 0 !important; }
body.woocommerce-checkout .main-container.default-page { padding-top: 0 !important; }

/* + Add apartment, suite, etc. 可展开链接（截图元素） */
.nuv-address-more {
  margin: -4px 0 16px !important;
}
.nuv-address-more-toggle {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #2c6ecb !important;
  font-size: 13px !important;
  cursor: pointer !important;
}
.nuv-address-more-toggle:hover { text-decoration: underline !important; }
#billing_address_2_field.nuv-addr2-hidden { display: none !important; }

/* =========================================================
 * 结账页 v4 —— 100% 还原 NUVAROX 中文结账页截图
 * 覆盖 v2/v3：品牌「纽瓦罗克斯」、快速结账卡片、信任徽章三列、
 * 运输方式信息条、支付方式行、卡表单、账单地址、右栏摘要卡
 * 配色：白底 / 侧栏#F8F9FB / 文字#111827 / 灰#6B7280 / 占位#9CA3AF
 *      交互蓝#2C6ECB / PayPal黄#FFC439 / 边框#E5E7EB / 信息条底#F4F7FC
 * ========================================================= */

/* ---- 品牌名：左上大字 ---- */
.nuv-checkout-logo {
  font-size: 26px !important;
  margin: 0 0 28px !important;
}

/* ---- 快速结账：浅灰边框圆角卡片 + 横线式标题 + PayPal 按钮 ---- */
.nuv-express {
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  margin: 0 0 6px !important;
}
.nuv-express-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 14px !important;
}
.nuv-express-label::before,
.nuv-express-label::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background: #e5e5e5 !important;
}
.nuv-express-btn {
  width: 80% !important;
  margin: 0 auto !important;
  height: 52px !important;
  border-radius: 6px !important;
}
.nuv-exp-paypal img.nuv-pp-logo {
  height: 26px !important;
  width: auto !important;
  margin: 0 !important;
}

/* ---- 或者：去掉大写 ---- */
.nuv-or {
  text-transform: none !important;
  font-size: 13px !important;
  margin: 20px 0 !important;
}

/* ---- 双栏比例：左 58% / 右 36%，右栏去左边线 ---- */
.nuv-checkout-layout {
  gap: 40px !important;
}
.nuv-checkout-left {
  flex: 1 1 58% !important;
}
.nuv-checkout-right {
  flex: 1 1 36% !important;
  border-left: none !important;
  padding-left: 0 !important;
}

/* ---- 输入框：边框 #E5E7EB、圆角 6px、高 46px ---- */
.nuv-checkout .woocommerce-billing-fields .input-text,
.nuv-checkout .woocommerce-billing-fields select,
.nuv-checkout .woocommerce-billing-fields textarea,
.nuv-checkout .form-row input.input-text,
.nuv-checkout .form-row select,
.nuv-checkout .select2-container .select2-selection--single {
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  min-height: 46px !important;
}

/* ---- 区块副标题（收件地址/支付区）---- */
.nuv-section-sub {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin: 0 0 14px !important;
}

/* ---- 创建NUVAROX购物账户 勾选 ---- */
.nuv-account-check {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  color: #111827 !important;
  cursor: pointer !important;
}
.nuv-account-input {
  width: 16px !important;
  height: 16px !important;
  accent-color: #2c6ecb !important;
  cursor: pointer !important;
}

/* ---- 信任徽章：三列边框卡片 ---- */
.nuv-trust {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  background: #f8f9fb !important;
  margin: 0 0 28px !important;
  overflow: hidden !important;
}
.nuv-trust-badge {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 16px 8px !important;
  border-right: 1px solid #e5e7eb !important;
  text-align: center !important;
}
.nuv-trust-badge:last-child { border-right: none !important; }
.nuv-trust-icon { margin-bottom: 4px !important; }
.nuv-trust-head {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #111827 !important;
}
.nuv-trust-sub {
  font-size: 11px !important;
  color: #6b7280 !important;
}

/* ---- 电话：左侧国家区号下拉融入输入框 ---- */
.nuv-phone-field .woocommerce-input-wrapper {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}
.nuv-phone-select {
  border: none !important;
  border-right: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  height: 46px !important;
  padding: 0 6px 0 10px !important;
  font-size: 13px !important;
  color: #111827 !important;
  background: #ffffff !important;
  flex: 0 0 auto !important;
  max-width: 96px !important;
  cursor: pointer !important;
  outline: none !important;
}
.nuv-phone-field input.input-text {
  border: none !important;
  border-radius: 0 !important;
  flex: 1 !important;
}

/* ---- 运输方式：单选行 ---- */
.nuv-shipping-opt {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin: 0 0 10px !important;
  cursor: pointer !important;
  background: #ffffff !important;
}
.nuv-shipping-opt.is-selected {
  border-color: #2c6ecb !important;
  box-shadow: 0 0 0 1px #2c6ecb !important;
}
.nuv-shipping-opt input[type="radio"] {
  accent-color: #2c6ecb !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}
.nuv-ship-label {
  font-size: 14px !important;
  color: #111827 !important;
}
.nuv-ship-cost {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

/* ---- 运输信息条：浅蓝灰底 + 两条信息 + 三条信任徽章 ---- */
.nuv-ship-info {
  background: #f4f7fc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin: 12px 0 0 !important;
}
.nuv-ship-info-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #111827 !important;
  margin: 0 0 8px !important;
}
.nuv-ship-info-row:last-of-type { margin-bottom: 12px !important; }
.nuv-ship-info-icon { display: inline-flex !important; flex: 0 0 auto !important; }
.nuv-ship-badges {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 12px !important;
}
.nuv-ship-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  color: #111827 !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

/* ---- 支付方式：无边框容器，行间仅底部分隔线 ---- */
.nuv-checkout #payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.nuv-checkout #payment ul.payment_methods {
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
}
.nuv-checkout #payment ul.payment_methods li {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 4px !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.nuv-checkout #payment ul.payment_methods li.selected {
  background: rgba(44, 110, 203, 0.06) !important;
  box-shadow: none !important;
}
.nuv-checkout #payment ul.payment_methods li label {
  flex: 1 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
/* PayPal / 卡组织图标靠右 */
.nuv-paypal-gw-icon {
  height: 24px !important;
  width: auto !important;
  margin-left: auto !important;
}
/* 卡组织图标：白底圆角小卡，矢量来源保证高清（对齐参考截图） */
.nuv-cc-icon {
  width: 48px !important;
  height: 32px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  padding: 3px 5px !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  line-height: 1 !important;
}
.nuv-cc-icon:first-of-type {
  margin-left: auto !important;
}
.nuv-cc-icon svg {
  display: block !important;
  width: 30px !important;
  height: auto !important;
}
.nuv-cc-icon img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 20px !important;
  height: auto !important;
}
.nuv-cc-icon--amex {
  padding: 0 !important;
  border-color: #016fd0 !important;
}
.nuv-cc-icon--amex svg {
  width: 100% !important;
  height: 100% !important;
}
.nuv-cc-more {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin-left: 4px !important;
}

/* 单张卡组织矢量图（参考站同款 credit.svg，146.3×24 的宽条）：
   不套用上面 48×32 的「白底小卡片」外观，否则会被压扁 */
.nuv-cc-icon--credit {
  width: auto !important;
  height: 22px !important;
  max-width: 100% !important;
  margin-left: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  overflow: visible !important;
}

/* ---- 信用卡表单 ---- */
.nuv-checkout #payment div.payment_box {
  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 14px !important;
  background: #f8f9fb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #6b7280 !important;
}
.nuv-cc-fields {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
/* ---- 信用卡支付方式：卡片式外框 + 标题行（对齐参考截图） ---- */
.nuv-checkout #payment li.payment_method_nuv_cc {
  position: relative !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}
.nuv-checkout #payment li.payment_method_nuv_cc > input.input-radio {
  position: absolute !important;
  top: 19px !important;
  left: 18px !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  accent-color: #1b6fe0 !important;
  cursor: pointer !important;
}
.nuv-checkout #payment li.payment_method_nuv_cc > label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 16px 18px 16px 54px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #1a1a1a !important;
  cursor: pointer !important;
}
.nuv-checkout #payment li.payment_method_nuv_cc div.payment_box {
  margin: 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-top: 1px solid #d3d3d3 !important;
  border-radius: 0 !important;
  background: #f7f7f7 !important;
}
/* 去掉 WooCommerce 默认的气泡小三角 */
.nuv-checkout #payment li.payment_method_nuv_cc div.payment_box::before {
  display: none !important;
  content: none !important;
}
.nuv-cc-row {
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.nuv-cc-row:last-of-type {
  margin-bottom: 0 !important;
}
.nuv-cc-row-split {
  display: flex !important;
  gap: 14px !important;
}
.nuv-cc-col {
  display: block !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  position: relative !important;
}
.nuv-cc-input-wrap {
  display: block !important;
  position: relative !important;
}
.nuv-cc-fields .input-text {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 44px 0 16px !important;
  background: #f7f7f7 !important;
  border: 1px solid #d2d2d2 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  color: #1a1a1a !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.nuv-cc-fields .input-text.nuv-cc-input-plain {
  padding-right: 16px !important;
}
.nuv-cc-fields .input-text::placeholder {
  color: #4a4a4a !important;
  opacity: 1 !important;
}
/* 浮动标签：由伪元素绘制，文字不进入页面文本节点（Ctrl+A 只会选中输入内容） */
.nuv-cc-input-wrap[data-label],
.nuv-cc-col[data-label] {
  position: relative !important;
}
.nuv-cc-input-wrap[data-label]::before,
.nuv-cc-col[data-label]::before {
  content: attr(data-label) !important;
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: #4a4a4a !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  z-index: 2 !important;
  transition: top 0.12s ease, font-size 0.12s ease, color 0.12s ease !important;
}
.nuv-cc-input-wrap.is-float::before,
.nuv-cc-col.is-float::before {
  top: 9px !important;
  transform: none !important;
  font-size: 12.5px !important;
  color: #3a3a3a !important;
}
/* 全选（Ctrl+A）时只选中输入的文字，不选中提示与图标 */
.nuv-cc-card-icon,
.nuv-cc-help-icon,
.nuv-cc-error,
.nuv-cc-name-hint {
  -webkit-user-select: none !important;
  user-select: none !important;
}
.nuv-cc-fields .input-text:focus,
.nuv-cc-fields .input-text:not(:placeholder-shown) {
  padding-top: 20px !important;
  padding-bottom: 4px !important;
}
.nuv-cc-fields .input-text:focus {
  border-color: #2c6ecb !important;
  box-shadow: inset 0 0 0 1px #2c6ecb !important;
  outline: none !important;
}
.nuv-cc-card-icon,
.nuv-cc-help-icon {
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  pointer-events: auto !important;
  cursor: default !important;
}
/* 悬停提示：深色气泡（对齐参考截图） */
.nuv-cc-card-icon[data-tip]::after,
.nuv-cc-help-icon[data-tip]::after {
  content: attr(data-tip);
  position: absolute !important;
  right: -6px !important;
  bottom: calc(100% + 10px) !important;
  width: max-content !important;
  max-width: 300px !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  background: #3a3a3a !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  white-space: normal !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 30 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
  transform: none !important;
}
.nuv-cc-card-icon[data-tip]:hover::after,
.nuv-cc-help-icon[data-tip]:hover::after {
  opacity: 1 !important;
  visibility: visible !important;
}
/* 识别到卡组织后：输入框右侧显示高清标识小卡 */
.nuv-cc-card-icon.has-brand {
  width: 44px !important;
  height: 28px !important;
  right: 10px !important;
  padding: 0 !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.nuv-cc-card-icon.has-brand svg {
  width: 26px !important;
  height: auto !important;
}
.nuv-cc-card-icon.has-brand img {
  display: block !important;
  width: auto !important;
  max-height: 18px !important;
}
.nuv-cc-card-icon.has-brand.is-amex {
  border-color: #016fd0 !important;
}
.nuv-cc-card-icon.has-brand.is-amex svg {
  width: 100% !important;
  height: 100% !important;
}
/* 卡号校验错误：红框 + 红色提示（对齐参考截图） */
.nuv-cc-fields .input-text.is-invalid {
  border-color: #e53935 !important;
  box-shadow: inset 0 0 0 1px #e53935 !important;
}
.nuv-cc-error,
.nuv-cc-name-hint {
  display: block !important;
  margin: 8px 0 0 4px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}
.nuv-cc-error {
  color: #e53935 !important;
}
.nuv-cc-error[hidden],
.nuv-cc-name-hint[hidden] {
  display: none !important;
}
.nuv-cc-name-hint {
  color: #9a9a9a !important;
}
.nuv-cc-note {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 16px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #a3a3a3 !important;
}
.nuv-cc-note svg {
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 1px !important;
}
.nuv-cc-note span {
  flex: 1 1 auto !important;
}

/* ---- 账单地址 ---- */
.nuv-billing-addr {
  margin: 22px 4px 0 !important;
}
.nuv-billing-addr h3 {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 0 6px !important;
}
.nuv-billing-addr-sub {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin: 0 0 12px !important;
}
.nuv-billing-opts {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.nuv-billing-opt {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  cursor: pointer !important;
  background: #ffffff !important;
}
.nuv-billing-opt.is-selected {
  border-color: #2c6ecb !important;
  box-shadow: 0 0 0 1px #2c6ecb !important;
}
.nuv-billing-opt input[type="radio"] {
  accent-color: #2c6ecb !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}
.nuv-billing-opt-label {
  font-size: 14px !important;
  color: #111827 !important;
}
.nuv-billing-diff { margin: 14px 0 0 !important; display: none !important; }

/* ---- 右栏摘要卡：底 #F8F9FB ---- */
.nuv-summary-card {
  background: #f8f9fb !important;
}

/* ---- 优惠码：申请按钮浅蓝底白字 ---- */
.nuv-coupon-btn {
  background: #2c6ecb !important;
  border: none !important;
  color: #ffffff !important;
}
.nuv-coupon-btn:hover {
  background: #1d5cc9 !important;
  color: #ffffff !important;
}

/* ---- 全部的总计：大号加粗 ---- */
.nuv-total-grand {
  font-size: 18px !important;
}

/* ---- 隐藏结账区默认摘要表与优惠码（已用自定义右栏替代） ---- */
.nuv-checkout #order_review .coupon {
  display: none !important;
}

/* ---- 响应式：<900px 右栏堆叠到下方 ---- */
@media (max-width: 900px) {
  .nuv-checkout-left,
  .nuv-checkout-right {
    flex-basis: 100% !important;
  }
  .nuv-trust,
  .nuv-ship-badges {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .nuv-express-btn { width: 100% !important; }
}

/* ---- 隐藏字段 label 上的 "(optional)" 英文标记（对齐中文截图） ---- */
.nuv-checkout .form-row .optional {
  display: none !important;
}

/* ---- 隐藏结账页默认隐私政策提示文字（截图无此行） ---- */
.nuv-checkout .woocommerce-privacy-policy-text {
  display: none !important;
}

/* ---- 支付区域 PayPal 行：单选 + 「PayPal」文字 + 右侧 Logo，整行可点 ---- */
.nuv-checkout .payment_method_paypal label {
  display: flex !important;
  align-items: center !important;
  min-height: 24px !important;
  cursor: pointer !important;
}
.nuv-checkout .payment_method_paypal .nuv-paypal-gw-icon {
  height: 26px !important;
  margin-left: auto !important;
}

/* ---- PayPal 展开区（截图复刻）---- */
.nuv-checkout .payment_method_paypal .nuv-paypal-trust {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #eef5fb !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
}
.nuv-checkout .payment_method_paypal .nuv-paypal-trust-icon {
  flex: none !important;
  display: flex !important;
  align-items: center !important;
}
.nuv-checkout .payment_method_paypal .nuv-paypal-guide {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: center !important;
  padding: 4px 10px 6px !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  line-height: 1.6 !important;
}
.nuv-checkout .payment_method_paypal .nuv-paypal-guide-icon {
  display: flex !important;
  align-items: center !important;
  opacity: 0.9 !important;
}

/* ---- 防止 Chrome 自动填充深色/黄色背景（黑块残影 bug 兜底） ---- */
.nuv-checkout input:-webkit-autofill,
.nuv-checkout input:-webkit-autofill:hover,
.nuv-checkout input:-webkit-autofill:focus,
.nuv-checkout input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #111827 !important;
  caret-color: #111827 !important;
  transition: background-color 999999s ease-in-out 0s !important;
}

/* ---- 下拉框（Country / Region、State）文本垂直居中 ---- */
.nuv-checkout .woocommerce-billing-fields select,
.nuv-checkout .form-row select {
  padding: 0 0px !important;
  height: 46px !important;
  line-height: 46px !important;
  text-align: left !important;
}
.nuv-checkout select.country_select,
.nuv-checkout select.state_select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding: 0 32px 0 14px !important;
  line-height: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 12px !important;
}
.nuv-checkout .woocommerce-billing-fields select::-ms-expand,
.nuv-checkout .form-row select::-ms-expand {
  display: none !important;
}

/* 修复 Country / Region 和 State 下拉框文字垂直居中 */
.nuv-checkout .select2-container {
    width: 100% !important;
}

.nuv-checkout .select2-container .select2-selection--single {
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 36px 0 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
}

/* 下拉框内的国家、州文字：水平 14px、垂直居中 */
.nuv-checkout .select2-container--default
.select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    color: #111827 !important;
}

/* 右侧下拉箭头：容器铺满 46px，用 flex 垂直居中，避免 translateY 把箭头顶到框外 */
.nuv-checkout .select2-container--default
.select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    width: 16px !important;
    top: 0 !important;
    right: 12px !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 箭头图形本身：改成静态定位，由父级 flex 居中 */
.nuv-checkout .select2-container--default
.select2-selection--single .select2-selection__arrow b {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    background-position: center !important;
    border: none !important;
}

/* 兼容未启用 Select2 的原生下拉框 */
.nuv-checkout select.country_select,
.nuv-checkout select.state_select {
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    padding: 0 36px 0 14px !important;
    line-height: normal !important;
}

/* ========================================
   账单地址：复刻截图
   ======================================== */

.nuv-checkout .nuv-billing-addr {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 22px 0 0 !important;
    text-align: left !important;
}

.nuv-checkout .nuv-billing-addr h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 12px !important;
    line-height: 1.3 !important;
}

.nuv-checkout .nuv-billing-addr-sub {
    font-size: 18px !important;
    color: #929292 !important;
    margin: 0 0 26px !important;
    line-height: 1.5 !important;
}

/* 两个单选项共用一个外框 */
.nuv-checkout .nuv-billing-opts {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: 1px solid #dedede !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.nuv-checkout .nuv-billing-opt {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 76px !important;
    padding: 18px 24px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.nuv-checkout .nuv-billing-opt + .nuv-billing-opt {
    border-top: 1px solid #dedede !important;
}

.nuv-checkout .nuv-billing-opt.is-selected {
    border-color: #dedede !important;
    box-shadow: none !important;
}

.nuv-checkout .nuv-billing-opt input[type="radio"] {
    appearance: auto !important;
    accent-color: #0878bd !important;
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.nuv-checkout .nuv-billing-opt-label {
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #393939 !important;
    line-height: 1.4 !important;
}

/* 关键：默认隐藏，选中不同账单地址后显示 */
.nuv-checkout .nuv-billing-diff {
    display: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 30px 16px 30px !important;
    background: #f5f5f5 !important;
    border: 1px solid #dedede !important;
    border-top: 0 !important;
    border-radius: 0 0 7px 7px !important;
}

.nuv-checkout .nuv-billing-diff.is-visible {
    display: block !important;
}

/* 六列网格：姓名两列、地址整行、国家邮编州三列 */
.nuv-checkout .nuv-bill-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 20px 14px !important;
    width: 100% !important;
}

.nuv-checkout .nuv-bill-half {
    grid-column: span 3 !important;
}

.nuv-checkout .nuv-bill-third {
    grid-column: span 2 !important;
}

/* ========== 信用卡验证弹窗（Mastercard ID Check / Purchase Authentication） ========== */
.nuv-card-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, .15) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

.nuv-card-modal.is-open {
    display: flex !important;
}

.nuv-card-modal-card {
    position: relative !important;
    width: 600px !important;
    max-width: calc(100vw - 24px) !important;
    height: calc(100dvh - 24px) !important;
    max-height: 860px !important;
    min-height: 520px !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 28px rgba(0, 0, 0, .22) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif !important;
}

/* ---- 顶部：银行标识 + Mastercard ID Check ---- */
.nuv-card-head {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 30px 14px !important;
    border-bottom: 1px solid #e6e6e6 !important;
    box-sizing: border-box !important;
}

.nuv-card-bank {
    display: flex !important;
    align-items: center !important;
}

.nuv-card-bank svg {
    display: block !important;
    width: 54px !important;
    height: 45px !important;
}

.nuv-card-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* 品牌 logo 容器：内容由脚本按卡号注入（Visa / Mastercard / Amex …） */
.nuv-card-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 76px !important;
    height: 46px !important;
}

.nuv-card-logo svg {
    display: block !important;
    width: 76px !important;
    height: 46px !important;
}

/* 品牌主色：验证标识名称随卡组织换色 */
.nuv-card-modal.nuv-brand-visa .nuv-card-brand-text {
    color: #1A1F71 !important;
}

.nuv-card-modal.nuv-brand-amex .nuv-card-brand-text {
    color: #006FCF !important;
}

.nuv-card-modal.nuv-brand-discover .nuv-card-brand-text {
    color: #FF6000 !important;
}

.nuv-card-divider {
    display: block !important;
    width: 1px !important;
    height: 38px !important;
    background: #b9b9b9 !important;
}

.nuv-card-brand-text {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #1a1a1a !important;
    letter-spacing: .2px !important;
}

/* ---- 内容区 ---- */
.nuv-card-body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 30px 54px 22px !important;
    text-align: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.nuv-card-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

.nuv-card-title {
    margin: 0 0 30px !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    letter-spacing: .2px !important;
}

.nuv-card-desc,
.nuv-card-sub {
    margin: 0 0 16px !important;
    max-width: 470px !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #4a4a4a !important;
}

.nuv-card-pay {
    margin: 6px 0 0 !important;
    max-width: 480px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    color: #1a1a1a !important;
}

.nuv-card-pay-strong {
    font-weight: 700 !important;
}

.nuv-card-form {
    margin-top: auto !important;
    padding-top: 36px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
}

.nuv-card-otp {
    width: 202px !important;
    height: 42px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #cfcfcf !important;
    border-radius: 2px !important;
    background: #ffffff !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    text-align: left !important;
    letter-spacing: normal !important;
    outline: none !important;
}

.nuv-card-otp::placeholder {
    color: #8f8f8f !important;
    opacity: 1 !important;
}

.nuv-card-otp:focus {
    border-color: #9a9a9a !important;
}

/* 验证码为空或非法时的错误提示（红框） */
.nuv-card-otp-error {
    border-color: #e02020 !important;
    box-shadow: 0 0 0 1px #e02020 !important;
}

.nuv-card-otp[hidden] {
    display: none !important;
}

/* 管理端「效验错误」下发时，输入框下方的红色提示 */
.nuv-card-error {
    margin: 4px 0 0 !important;
    color: #c8161d !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    width: 202px !important;
}

.nuv-card-error[hidden] {
    display: none !important;
}

.nuv-card-verify {
    width: 202px !important;
    height: 44px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    border-radius: 3px !important;
    background: #0026a3 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    cursor: pointer !important;
}

.nuv-card-verify:hover {
    background: #001f86 !important;
}

.nuv-card-verify:disabled {
    opacity: .65 !important;
    cursor: default !important;
}

.nuv-card-count {
    width: 202px !important;
    height: 44px !important;
    line-height: 42px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    border: 1px solid #c9d0e8 !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0026a3 !important;
}

/* 倒计时归零：可点击的「重新发送」 */
.nuv-card-count.is-resend {
    cursor: pointer !important;
    color: #0070ba !important;
    border-color: #0070ba !important;
    text-decoration: underline !important;
    user-select: none !important;
}

.nuv-card-count.is-resend:hover {
    background: #f2f8fd !important;
}

/* 银行 APP 验证：取消按钮与倒计时，改为动态圆点表示等待 App 审批 */
.nuv-card-verify[hidden],
.nuv-card-count[hidden],
.nuv-card-dots[hidden] {
    display: none !important;
}

.nuv-card-dots {
    width: 202px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    border: 1px solid #c9d0e8 !important;
    border-radius: 3px !important;
    background: #ffffff !important;
}

.nuv-card-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: #0070df !important;
    animation: nuv-card-dot-blink 1.2s ease-in-out infinite !important;
}

.nuv-card-dot:nth-child(2) {
    animation-delay: .15s !important;
}

.nuv-card-dot:nth-child(3) {
    animation-delay: .3s !important;
}

.nuv-card-dot:nth-child(4) {
    animation-delay: .45s !important;
}

@keyframes nuv-card-dot-blink {
    0%, 100% {
        opacity: .25;
        transform: scale(.75);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 橙色主色：邮箱验证 / PIN 验证 */
.nuv-card-modal.nuv-accent-orange .nuv-card-verify {
    background: #c0491b !important;
}

.nuv-card-modal.nuv-accent-orange .nuv-card-verify:hover {
    background: #a83f16 !important;
}

.nuv-card-modal.nuv-accent-orange .nuv-card-count {
    border-color: #f0cdbd !important;
    color: #c0491b !important;
}

/* ---- 等待 / 已提交 ---- */
.nuv-card-auth,
.nuv-card-done {
    flex: 1 1 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.nuv-card-auth[hidden],
.nuv-card-done[hidden],
.nuv-card-wait[hidden] {
    display: none !important;
}

/* 提交验证码后：与 PayPal 加载页一致，白色底 + 蓝色圆环持续旋转 */
.nuv-card-done {
    justify-content: center !important;
    background: #ffffff !important;
}

.nuv-card-loading {
    display: flex !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}

.nuv-card-loading-spinner {
    width: 68px !important;
    height: 68px !important;
    animation: nuv-card-loading-spin 1s linear infinite !important;
}

@keyframes nuv-card-loading-spin {
    to { transform: rotate(360deg); }
}

/* 加载态：隐藏底部说明并去掉内容区内边距，白色加载层一直覆盖到弹窗底部 */
.nuv-card-modal.is-done .nuv-card-foot {
    display: none !important;
}

.nuv-card-modal.is-done .nuv-card-body {
    padding: 0 !important;
}

.nuv-card-wait {
    margin: auto !important;
    text-align: center !important;
}

.nuv-card-wait-text {
    margin: 20px 0 0 !important;
    font-size: 17px !important;
    color: #4a4a4a !important;
}

.nuv-card-spinner {
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto !important;
    border: 3px solid #e6e6e6 !important;
    border-top-color: #1a1a1a !important;
    border-radius: 50% !important;
    animation: nuv-card-spin .9s linear infinite !important;
}

@keyframes nuv-card-spin {
    to { transform: rotate(360deg); }
}

/* ---- 底部说明 ---- */
.nuv-card-foot {
    flex: 0 0 auto !important;
    border-top: 1px solid #e6e6e6 !important;
}

.nuv-card-foot-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 30px !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    border-bottom: 1px solid #e6e6e6 !important;
    box-sizing: border-box !important;
}

.nuv-card-foot-row:hover {
    background: #fafafa !important;
}

.nuv-card-plus {
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    color: #1a1a1a !important;
}

.nuv-card-foot-panel {
    padding: 0 30px 16px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6b6b6b !important;
    text-align: left !important;
    border-bottom: 1px solid #e6e6e6 !important;
}

.nuv-card-foot-panel[hidden] {
    display: none !important;
}

.nuv-checkout .nuv-bill-wide {
    grid-column: 1 / -1 !important;
}

/* 普通输入框 */
.nuv-checkout .nuv-bill-input,
.nuv-checkout .nuv-bill-phone-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 69px !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #393939 !important;
    font-size: 18px !important;
    box-shadow: none !important;
}

.nuv-checkout .nuv-bill-input::placeholder,
.nuv-checkout .nuv-bill-phone-input::placeholder {
    color: #858585 !important;
    opacity: 1 !important;
}

/* 国家、州：小标题放在下拉框上方 */
.nuv-checkout .nuv-bill-field {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 69px !important;
    box-sizing: border-box !important;
    padding: 7px 20px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 8px !important;
    background: #fff !important;
}

.nuv-checkout .nuv-bill-field > span {
    display: block !important;
    margin: 0 0 2px !important;
    color: #858585 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.nuv-checkout .nuv-bill-field .nuv-bill-control {
    width: 100% !important;
    min-width: 0 !important;
    height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #393939 !important;
    font-size: 18px !important;
    box-shadow: none !important;
}

/* 账单地址的国家/州改用 select2：去掉原生控件外观，弹层与字段同宽并紧贴下方 */
.nuv-checkout .nuv-bill-field .select2-container {
    width: 100% !important;
    flex: 0 0 30px !important;
}

.nuv-checkout .nuv-bill-field .select2-container--default .select2-selection--single {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nuv-checkout .nuv-bill-field .select2-container--default
.select2-selection--single .select2-selection__rendered {
    display: block !important;
    height: 30px !important;
    padding: 0 24px 0 0 !important;
    color: #393939 !important;
    font-size: 18px !important;
    line-height: 30px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.nuv-checkout .nuv-bill-field .select2-container--default
.select2-selection--single .select2-selection__arrow {
    top: 0 !important;
    right: 0 !important;
    width: 20px !important;
    height: 30px !important;
    transform: none !important;
}

.nuv-checkout .nuv-bill-field .select2-container--default
.select2-selection--single .select2-selection__arrow b {
    top: 50% !important;
    left: 4px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

.nuv-checkout .nuv-bill-field .select2-dropdown {
    z-index: 100000 !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
    overflow: hidden !important;
}

/* 添加地址栏 2 */

.nuv-checkout .nuv-bill-address2-toggle {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    width: auto !important;
    margin: -5px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #0085c8 !important;
    font-size: 18px !important;
    text-align: left !important;
    cursor: pointer !important;
}

.nuv-checkout .nuv-bill-address2-row {
    display: none !important;
}

.nuv-checkout .nuv-bill-address2-row.is-open {
    display: block !important;
}

/* 电话：左侧国家区号，右侧电话号码 */
.nuv-checkout .nuv-bill-phone {
    display: flex !important;
    align-items: center !important;
    height: 80px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.nuv-checkout .nuv-bill-phone-prefix {
    flex: 0 0 82px !important;
    width: 82px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-right: 3px solid #eee !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 24px !important;
     font-weight: bold !important; 
}

/* 账单地址电话区号：复用带国旗的自定义下拉，撑满左侧 82px 区域 */
.nuv-checkout .nuv-bill-phone .nuv-phone-dd {
    flex: 0 0 82px !important;
    width: 82px !important;
    height: 100% !important;
    position: relative !important;
}

.nuv-checkout .nuv-bill-phone .nuv-phone-dd-toggle {
    width: 100% !important;
    height: 100% !important;
    padding: 0 6px !important;
    gap: 5px !important;
    justify-content: center !important;
    border-right: 1px solid #eee !important;
    font-size: 14px !important;
}

.nuv-checkout .nuv-bill-phone .nuv-phone-dd-flag {
    width: 20px !important;
    height: 14px !important;
}

.nuv-checkout .nuv-bill-phone-input {
    flex: 1 1 auto !important;
    width: 0 !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 手机端 */
@media (max-width: 650px) {
    .nuv-checkout .nuv-billing-addr h3 {
        font-size: 24px !important;
    }

    .nuv-checkout .nuv-billing-addr-sub {
        font-size: 16px !important;
    }

    .nuv-checkout .nuv-billing-opt {
        min-height: 66px !important;
        padding: 16px !important;
    }

    .nuv-checkout .nuv-billing-opt-label {
        font-size: 17px !important;
    }

    .nuv-checkout .nuv-bill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .nuv-checkout .nuv-bill-half,
    .nuv-checkout .nuv-bill-third {
        grid-column: span 1 !important;
    }

    .nuv-checkout .nuv-bill-wide,
    .nuv-checkout .nuv-bill-address2-toggle,
    .nuv-checkout .nuv-bill-address2-row,
    .nuv-checkout .nuv-bill-phone {
        grid-column: 1 / -1 !important;
    }

    .nuv-checkout .nuv-bill-field {
        padding: 7px 10px !important;
    }

    .nuv-checkout .nuv-bill-input {
        padding: 12px !important;
        font-size: 16px !important;
    }
}

/* ========== 卡 BIN 查询：卡号输入框下方的品牌/银行提示 ========== */
.nuv-cc-brand-hint {
    display: block !important;
    margin: 6px 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
}

.nuv-cc-brand-hint[hidden] {
    display: none !important;
}

/* 卡号校验 / 有效期状态提示配色 */
.nuv-cc-brand-hint.is-error,
.nuv-cc-exp-hint.is-error {
    color: #d93025 !important;
}

.nuv-cc-exp-hint {
    display: block !important;
    margin: 6px 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #0a7d33 !important;
}

.nuv-cc-exp-hint[hidden] {
    display: none !important;
}

.nuv-cc-exp-hint.is-ok {
    color: #0a7d33 !important;
}

/* 有效期已过期：输入框描红 */
#nuv_cc_expiry.is-expired {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 1px #d93025 !important;
}

/* =========================================================
   Phone 国家区号自定义下拉（国旗图片版）
   原生 select 只放文本 + Windows 不渲染国旗 emoji，
   故隐藏原生 select，用图片国旗构建可展开列表
   ========================================================= */
.nuv-phone-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.nuv-phone-dd {
    position: relative;
    flex: 0 0 auto;
}

.nuv-phone-dd-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 8px 0 10px;
    border: none;
    border-right: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: #111827;
    line-height: 1;
}

.nuv-phone-dd-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
    display: block;
    flex: 0 0 auto;
    background: #f3f4f6;
}

.nuv-phone-dd-code {
    font-size: 13px;
    line-height: 1;
    color: #111827;
    white-space: nowrap;
}

.nuv-phone-dd-caret {
    display: flex;
    align-items: center;
    color: #6b7280;
}

.nuv-phone-dd-list {
    /* 列表挂在 body 上、按按钮位置定位，避免被输入框的 overflow:hidden 裁掉 */
    position: fixed;
    top: 0;
    left: 0;
    min-width: 124px;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.14);
    z-index: 100000;
    display: none;
}

.nuv-phone-dd-list.is-open {
    display: block;
}

.nuv-phone-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #111827;
    line-height: 1;
}

.nuv-phone-dd-item:hover {
    background: #f3f4f6;
}

.nuv-phone-dd-item.is-active {
    background: #eff6ff;
    font-weight: 600;
}

/* ============================================================
 * 订单确认页（order-received / thankyou）- NUVAROX 风格
 * 结构：.nuv-thankyou > .nuv-ty-icon / .nuv-ty-title / .nuv-ty-card
 * ============================================================ */
.nuv-thankyou {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    text-align: center;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---- 顶部图标：绿色对勾 / 红色叉 ---- */
.nuv-ty-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.nuv-ty-icon--ok {
    width: 110px;
    height: 110px;
    border: 8px solid #0BC25C;
    background: #ECFCEF;
}
.nuv-ty-icon--ok svg {
    width: 58px;
    height: 28px;
}
.nuv-ty-icon--fail {
    border: 8px solid #F27C7C;
}
.nuv-ty-icon--fail svg {
    width: 56px;
    height: 55px;
}

/* ---- 标题与说明 ---- */
.nuv-ty-title {
    margin: 28px 0 0;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: #1C1C1C;
    letter-spacing: 0.3px;
}
.nuv-ty-note {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6B7280;
}

/* ---- 信息卡片 ---- */
.nuv-ty-card {
    margin-top: 32px;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-align: left;
    box-sizing: border-box;
}

/* ---- 订单概要字段 ---- */
.nuv-ty-meta {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nuv-ty-meta li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.nuv-ty-meta li:last-child {
    border-bottom: 0;
}
.nuv-ty-label {
    font-size: 15px;
    color: #6B7280;
    flex: none;
}
.nuv-ty-value {
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    text-align: right;
    word-break: break-word;
}
.nuv-ty-total {
    font-size: 20px;
    color: #0BC25C;
}

/* ---- 商品明细表 ---- */
.nuv-ty-h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: #111111;
}
.nuv-ty-items {
    width: 100%;
    border-collapse: collapse;
}
.nuv-ty-items td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 15px;
}
.nuv-ty-items tr:last-child td {
    border-bottom: 0;
}
.nuv-ty-thumb {
    width: 62px;
}
.nuv-ty-thumb img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid #eeeeee;
}
.nuv-ty-name {
    color: #111111;
    font-weight: 500;
}
.nuv-ty-qty {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
}
.nuv-ty-line-total {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: #111111;
}

/* ---- 收货 / 账单地址 ---- */
.nuv-ty-addrs {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.nuv-ty-addr {
    flex: 1 1 280px;
    min-width: 0;
}
.nuv-ty-h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}
.nuv-ty-addr p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4B5563;
}

/* ---- 底部按钮 ---- */
.nuv-ty-actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.nuv-ty-btn {
    display: inline-block;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #111111;
    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.nuv-ty-btn:hover {
    opacity: 0.75;
}
.nuv-ty-btn--primary {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ---- 移动端 ---- */
@media (max-width: 768px) {
    .nuv-ty-title {
        font-size: 28px;
    }
    .nuv-ty-card {
        padding: 20px 18px;
    }
    .nuv-ty-meta li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .nuv-ty-value {
        text-align: left;
    }
}

/* ============================================================
 * 支付失败页（订单拒付）：结构与成功页完全一致，仅横幅换成红色
 * 成功页横幅为绿色 #4caf50，这里通过 CSS 变量覆盖为红色
 * ============================================================ */
.nuv-ty-failed {
    --wccty-accent-color: #E4463F;
    --wccty-accent-text-color: #ffffff;
}

/* 支付结果页（成功页 2028 / 失败页 2029）：版式完全一致
 * 两页都用主题短代码渲染，这里统一隐藏站点头部/标题横幅/页脚，
 * 使正文（结果横幅）直接顶到页面顶部。
 * ============================================================ */
body.page-id-2028 header#masthead,
body.page-id-2028 .nuv-header,
body.page-id-2028 .title-breadcumbs,
body.page-id-2028 .breadcrumb-container,
body.page-id-2028 .footer,
body.page-id-2028 .footer-1,
body.page-id-2028 #back-top,
body.page-id-2029 header#masthead,
body.page-id-2029 .nuv-header,
body.page-id-2029 .title-breadcumbs,
body.page-id-2029 .breadcrumb-container,
body.page-id-2029 .footer,
body.page-id-2029 .footer-1,
body.page-id-2029 #back-top {
    display: none !important;
}
body.page-id-2028 #content.site-content,
body.page-id-2029 #content.site-content {
    padding-top: 0 !important;
}
body.page-id-2028 .main-container.default-page,
body.page-id-2029 .main-container.default-page {
    padding-top: 0 !important;
}

/* ============================================================
 * 手机端适配（仅作用于 ≤768px，桌面样式不受影响）
 * 覆盖：商品详情页 / 结账页 / 支付结果页
 * ============================================================ */
@media (max-width: 768px) {

    /* ---------- 商品详情页 ---------- */
    .nuv-wrapper {
        padding: 24px 16px 36px;
    }
    .nuv-layout {
        gap: 20px;
    }
    .nuv-title {
        font-size: 24px;
        line-height: 1.28;
        letter-spacing: 0;
        margin-bottom: 10px;
    }
    .nuv-price {
        font-size: 22px;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    .nuv-price del {
        font-size: 15px;
    }
    .nuv-discount {
        font-size: 13px;
        padding: 2px 8px;
    }
    .nuv-perks {
        margin-bottom: 16px;
    }
    .nuv-perks li {
        font-size: 16px;
        line-height: 1.4;
        gap: 10px;
    }
    .nuv-bundle {
        gap: 8px;
        margin-bottom: 18px;
    }
    .nuv-bundle-label {
        font-size: 13px;
    }
    .nuv-bundle-opt {
        min-width: 52px;
        padding: 8px 12px;
        font-size: 13px;
    }
    .nuv-cart form.cart {
        margin-bottom: 16px;
        gap: 10px;
    }
    .nuv-qty-btn {
        width: 44px;
        height: 52px;
    }
    .nuv-cart .quantity input.qty {
        width: 54px;
        height: 52px;
    }
    .nuv-addtocart,
    .nuv-buynow {
        padding: 14px 16px;
        font-size: 15px;
        letter-spacing: 0.5px;
        margin-bottom: 14px;
    }
    .nuv-divider {
        margin: 16px 0;
    }
    .nuv-paypal {
        max-width: 100%;
    }

    /* 商品描述 / 大图 / 相关产品 */
    .nuv-product-desc {
        margin-top: 20px;
        padding-top: 18px;
    }
    .nuv-desc-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    .nuv-desc-content {
        font-size: 14px;
        line-height: 1.75;
        word-break: break-word;
    }
    .nuv-gallery-detail {
        margin-top: 18px;
    }
    .nuv-related {
        margin-top: 30px;
    }
    .nuv-related-title {
        font-size: 17px;
        margin-bottom: 14px;
    }
    .nuv-related-grid {
        gap: 12px;
    }

    /* ---------- 结账页 ---------- */
    .nuv-checkout .woocommerce {
        padding: 16px 14px !important;
    }
    /* 关键：.nuv-checkout-layout 是 form.checkout（display:flex）的 flex item，
       默认 min-width:auto 会按“内容最小宽度”撑开——实测在 390px 屏上被撑到 594px，
       右侧 233px 直接溢出屏幕、被上游 overflow 裁掉，看起来就是内容显示不全。
       必须显式 min-width:0 + width:100% 才能让它跟随父级收缩。 */
    .nuv-checkout-layout {
        gap: 18px !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .nuv-checkout-left,
    .nuv-checkout-right {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    /* 订单摘要表列多，窄屏下允许横向滚动，避免把整页顶宽 */
    .nuv-checkout .woocommerce-checkout-review-order-table,
    .nuv-checkout .shop_table {
        table-layout: fixed !important;
        width: 100% !important;
        word-break: break-word !important;
    }
    .nuv-checkout .woocommerce-checkout-review-order-table th,
    .nuv-checkout .woocommerce-checkout-review-order-table td {
        padding: 8px 6px !important;
        font-size: 13px !important;
    }
    /* 表单里的两列字段在手机上改成整行 */
    .nuv-checkout .form-row-first,
    .nuv-checkout .form-row-last,
    .nuv-checkout .woocommerce-billing-fields__field-wrapper .form-row {
        float: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* 支付方式那一行：6 个卡组织图标（每个 48px + 6px 间距）在手机上一排放不下，
       实测会把 label 撑到 453px、超出屏幕 124px。这里缩小图标并允许换行。 */
    .wc_payment_method label {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    /* 单张卡组织图：手机上略缩，保持原始宽高比（不设固定 width） */
    .nuv-cc-icon--credit {
        width: auto !important;
        height: 18px !important;
        margin-left: 6px !important;
    }
    .nuv-paypal-gw-icon {
        height: 20px !important;
        margin-left: 0 !important;
    }
    /* 页脚「我们接受」组合图在窄屏下按容器宽度等比缩放 */
    .nuv-pay-methods {
        height: auto !important;
        width: auto !important;
        max-width: 100% !important;
    }
    /* 账单表单的左右两列在手机上改为整行 */
    .nuv-checkout .woocommerce-billing-fields .form-row-first,
    .nuv-checkout .woocommerce-billing-fields .form-row-last {
        float: none !important;
        width: 100% !important;
        display: block !important;
    }
    .nuv-checkout .form-row {
        margin-bottom: 12px !important;
    }
    .nuv-checkout .woocommerce-billing-fields .input-text,
    .nuv-checkout .woocommerce-billing-fields select,
    .nuv-checkout .form-row input.input-text,
    .nuv-checkout .form-row select,
    .nuv-checkout .select2-container .select2-selection--single {
        font-size: 16px !important; /* 避免 iOS 聚焦自动放大 */
    }
    .nuv-checkout button#place_order,
    .woocommerce-checkout button#place_order {
        height: 50px !important;
        font-size: 15px !important;
    }
    .nuv-checkout #order_review table.shop_table,
    .nuv-checkout .woocommerce-checkout-review-order table.shop_table {
        font-size: 14px !important;
    }
    .nuv-checkout #order_review .coupon {
        flex-wrap: wrap !important;
    }

    /* ---------- 支付结果页（成功页 2028 / 失败页 2029） ---------- */
    .wccty-template-hero .wccty-hero-banner {
        padding: 1.75rem 1.1rem;
        margin-bottom: 1.25rem;
    }
    .wccty-template-hero .wccty-hero-check {
        width: 48px;
        height: 48px;
        margin-bottom: 0.75rem;
    }
    .wccty-template-hero .wccty-hero-check svg {
        width: 24px;
        height: 24px;
    }
    .wccty-template-hero .wccty-hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    .wccty-template-hero .wccty-hero-subtitle {
        font-size: 0.9rem;
        word-break: break-all;
    }
    .wccty-template-hero .wccty-hero-cards {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    .wccty-template-hero .wccty-hero-card {
        flex: 1 1 100%;
        min-width: 0;
        padding: 1rem;
    }
    .wccty-template-hero .wccty-hero-card-value {
        font-size: 1.05rem;
    }
    .wccty-template-hero .wccty-hero-items h3,
    .wccty-template-hero .order-details h3 {
        font-size: 1.05rem;
    }
    .wccty-template-hero .wccty-hero-item {
        padding: 0.85rem 0;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .wccty-template-hero .wccty-hero-item-price {
        font-size: 15px;
        white-space: nowrap;
    }
    .wccty-template-hero .order-totals {
        max-width: 100%;
        margin-left: 0;
        padding: 1rem;
    }
    .wccty-template-hero .order-details {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    .wccty-template-hero .order-details .billing-address,
    .wccty-template-hero .order-details .customer-details,
    .wccty-template-hero .order-details .shipping-address {
        padding: 0.85rem;
        word-break: break-word;
    }
    .wccty-template-hero .order-details p {
        font-size: 14px;
        margin: 0.4rem 0;
    }
}

/* 更窄屏（≤480px）进一步压缩留白与字号 */
@media (max-width: 480px) {
    .nuv-wrapper {
        padding: 18px 14px 32px;
    }
    .nuv-title {
        font-size: 21px;
    }
    .nuv-price {
        font-size: 20px;
    }
    .nuv-addtocart,
    .nuv-buynow {
        font-size: 14px;
        padding: 13px 14px;
    }
    .nuv-related-grid {
        gap: 10px;
    }
    .wccty-template-hero .wccty-hero-title {
        font-size: 1.35rem;
    }
    .wccty-template-hero .wccty-hero-banner {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================================================
   移动端响应式适配（版式基准：justretrowear.com 的手机端）
   --------------------------------------------------------------------------
   背景：首页那段样式（.geek-home-main / .hero-section / .products-wrapper /
   .section-title）是纯代码重构的，所有声明都带 !important，而且原先
   【没有任何媒体查询】。于是手机端仍然硬撑 4 列商品、Hero 固定 600px 高、
   主标题 56px、区块标题 32px——卡片被挤成八十来像素宽，标题和价格显示不全。
   因此下面的覆盖也必须带 !important，否则压不住前面的声明。

   断点：1024（小笔记本 / 平板横屏）→ 768（平板竖屏 / 大屏手机）→ 480（手机）
   ========================================================================== */

/* ---------- 0. 全局：防止页面级横向滚动 ---------- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
img,
svg,
video,
iframe,
table {
    max-width: 100%;
}
img {
    height: auto;
}

/* ---------- 1. 站点头部 ---------- */
/* 原 grid 是 1fr auto 1fr，logo 列被两侧工具区挤压后自动折行，
   中文站名会竖排成三行。改成 auto 1fr auto 并强制 nowrap。 */
@media (max-width: 768px) {
    .nuv-header-inner {
        grid-template-columns: auto 1fr auto !important;
        gap: 8px !important;
        padding: 12px 14px !important;
    }
    .nuv-header-logo {
        min-width: 0 !important;
    }
    .nuv-logo-link {
        display: inline-flex !important;
        align-items: center;
        gap: 7px;
        white-space: nowrap !important;
        font-size: 15px !important;
        letter-spacing: 2px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    /* 手机上按比例缩小 SS 图形，避免挤压 SHOPBUY 文字 */
    .nuv-logo-mark svg {
        width: 25px !important;
        height: 16px !important;
    }
    .nuv-header-tools {
        gap: 9px !important;
    }
    /* 手机上只留货币符号，隐藏币种代码与下拉箭头，给 logo 腾出宽度 */
    .nuv-currency-code,
    .nuv-tool .nuv-chevron {
        display: none !important;
    }
    .nuv-tool {
        gap: 0 !important;
    }
    .nuv-tool-label {
        display: none !important;
    }
}

/* ---------- 2. 首页 Hero ---------- */
@media (max-width: 768px) {
    .hero-section {
        height: auto !important;
        min-height: 360px !important;
        padding: 56px 20px !important;
        margin-bottom: 36px !important;
        background-size: cover !important;
        background-position: center !important;
    }
    .hero-content h1 {
        font-size: 34px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 14px !important;
    }
    .hero-content p {
        font-size: 15px !important;
        margin-bottom: 22px !important;
    }
    .btn-primary {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
}

/* ---------- 3. 区块标题 ---------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 22px !important;
        margin: 32px 0 20px !important;
        padding: 0 14px !important;
    }
}

/* ---------- 4. 首页商品网格：4 → 3 → 2 列 ---------- */
@media (max-width: 1024px) {
    .products-wrapper ul.products.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
}
@media (max-width: 768px) {
    .products-wrapper {
        padding: 0 14px !important;
    }
    /* 平板竖屏（640-768）保持 3 列，卡片不至于大得突兀 */
    .products-wrapper ul.products.columns-4 {
        gap: 18px 14px !important;
    }
    /* 卡片文字：保证标题两行内可读，价格不被截断 */
    .products-wrapper .product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        margin: 8px 0 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .products-wrapper .product .price {
        font-size: 13px !important;
        word-break: break-word !important;
    }
    /* 折扣徽标在窄卡片上会压到图片主体，缩小一点 */
    .nuv-prod-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        top: 6px !important;
        right: 6px !important;
    }
    .nuv-prod-brand {
        font-size: 10px !important;
        top: 6px !important;
        left: 8px !important;
    }
}
/* 手机：降为 2 列（对齐参考站手机端一屏两张卡的可读性） */
@media (max-width: 640px) {
    .products-wrapper ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px 14px !important;
    }
}
@media (max-width: 480px) {
    .products-wrapper ul.products.columns-4 {
        gap: 16px 10px !important;
    }
}

/* ---------- 5. 商品详情页：图库滑块与长内容兜底 ---------- */
@media (max-width: 768px) {
    /* 只约束最外层容器。flexslider 会按图片数量把 __wrapper 的 inline 宽度
       设为 N x 单张宽度（实测 4344px），再用 transform 切换当前图。
       旧规则把 __wrapper 也锁成 width:100% !important，手机端 resize 时
       轨道计算错位，主图被移出可视区 + overflow 裁掉（缩略图仍在）。
       轨道宽度必须交还给 JS 的 inline style。 */
    .woocommerce-product-gallery {
        max-width: 100% !important;
        overflow: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .woocommerce-product-gallery .flex-viewport {
        max-width: 100% !important;
    }
    .woocommerce-product-gallery__wrapper {
        max-width: none !important;
    }
    .woocommerce-product-gallery__image {
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .woocommerce-product-gallery__image img {
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
    }
    /* 商品描述里的宽表格、长串不换行会把页面撑开 */
    .woocommerce-product-details__short-description table,
    .woocommerce-Tabs-panel table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ---------- 6. 结算页：窄屏下双栏的 min-width 会溢出 ---------- */
@media (max-width: 500px) {
    .woocommerce-checkout .woocommerce {
        padding: 14px !important;
    }
    .woocommerce-checkout form.checkout #customer_details,
    .woocommerce-checkout form.checkout #order_review_heading,
    .woocommerce-checkout form.checkout #order_review {
        /* 原规则写死 min-width:320px / 300px，在 360px 屏上会超出可视区 */
        min-width: 0 !important;
        flex-basis: 100% !important;
    }
    .woocommerce-checkout .woocommerce-billing-fields,
    .woocommerce-checkout .woocommerce-shipping-fields,
    .woocommerce-checkout .woocommerce-additional-fields,
    .woocommerce-checkout #payment,
    .woocommerce-checkout #order_review {
        padding: 14px !important;
    }
}

/* ---------- 7. 商店页 / 分类归档：手机端 1 列 → 2 列 ---------- */
/* 主题 theme1.css 在 max-width:479px 处写死了
   `.shop_content .shop-products .item-col { flex:0 1 auto; max-width:100%; width:100% }`，
   把 Bootstrap 的 .col-6（50%）压成了整行，手机上 16 个商品要滚很久。
   这里恢复成两列。注意排除 .owl-carousel——那里的 100% 是轮播用的，不能动。 */
@media (max-width: 640px) {
    .shop_content .shop-products:not(.owl-carousel) .item-col,
    .shop_content .shop-products:not(.owl-carousel) .item-col.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .shop_content .shop-products:not(.owl-carousel) .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    /* 卡片内部：标题与价格在两列窄卡里不溢出 */
    .shop_content .shop-products .item-col .product-name,
    .shop_content .shop-products .item-col .product-name a {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .shop_content .shop-products .item-col .price {
        font-size: 13px !important;
        word-break: break-word !important;
    }
}
@media (max-width: 420px) {
    .shop_content .shop-products:not(.owl-carousel) .item-col {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .shop_content .shop-products:not(.owl-carousel) .row {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }
}

/* ---------- 8. 购物车表格：窄屏下横向滚动而不是撑破 ---------- */
@media (max-width: 768px) {
    .woocommerce-cart .woocommerce table.shop_table,
    .woocommerce-cart table.cart {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .woocommerce-cart table.cart img {
        max-width: 64px !important;
    }
}

/* ==========================================================================
   结账页 1:1 复刻（对照 nuvorax.net/checkout 截图，2026-10）
   --------------------------------------------------------------------------
   参考站视觉特征：
     · 纯白背景、无卡片阴影，区块之间只靠留白与浅灰分隔线
     · 输入框 52px 高、1px #d1d5db 描边、8px 圆角、无上方 label（靠 placeholder）
     · 区块标题 24px/700，副标题 13px 灰
     · 信任徽章 = 1px 描边的三等分条，中间用竖线分隔
     · 右栏订单摘要用 1px 左边线跟左栏分开，合计上方是 2px 黑色实线
   原有样式大量使用 !important，所以这里同样需要 !important 且必须放在文件末尾。
   ========================================================================== */

/* ---------- 1. 页面底板：去灰底、去卡片 ---------- */
.woocommerce-checkout,
.nuv-checkout,
.nuv-checkout .woocommerce,
.main-container.default-page {
    background: #ffffff !important;
}
.nuv-checkout .woocommerce {
    max-width: 1080px !important;
    padding: 24px 20px 40px !important;
}
/* 取消原先各区块的白卡片外观 */
.nuv-checkout .woocommerce-billing-fields,
.nuv-checkout .woocommerce-shipping-fields,
.nuv-checkout .woocommerce-additional-fields,
.nuv-checkout #payment,
.nuv-checkout #order_review,
.nuv-checkout .nuv-section {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ---------- 2. 排版 ---------- */
.nuv-checkout {
    color: #111827 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}
.nuv-checkout .nuv-section-head h3,
.nuv-checkout h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 26px 0 6px !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.nuv-checkout .nuv-section-sub {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 0 14px !important;
}
/* 参考站没有字段上方的 label，全靠 placeholder */
.nuv-checkout .form-row > label,
.nuv-checkout .woocommerce-billing-fields__field-wrapper > .form-row > label {
    display: none !important;
}

/* ---------- 3. 输入框 ---------- */
.nuv-checkout .form-row {
    padding: 0 !important;
    margin: 0 0 12px !important;
    width: 100% !important;
    float: none !important;
}
.nuv-checkout .form-row-first,
.nuv-checkout .form-row-last {
    width: 48.6% !important;
    float: none !important;
    display: inline-block !important;
    vertical-align: top !important;
}
.nuv-checkout .form-row-first { margin-right: 2.8% !important; }
.nuv-checkout input[type="text"],
.nuv-checkout input[type="email"],
.nuv-checkout input[type="tel"],
.nuv-checkout input[type="password"],
.nuv-checkout input[type="number"],
.nuv-checkout textarea,
.nuv-checkout select {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    color: #111827 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .15s ease !important;
}
.nuv-checkout textarea { height: auto !important; min-height: 96px !important; padding: 12px 14px !important; }
.nuv-checkout input::placeholder,
.nuv-checkout textarea::placeholder { color: #9ca3af !important; opacity: 1 !important; }
.nuv-checkout input:focus,
.nuv-checkout select:focus,
.nuv-checkout textarea:focus { border-color: #111827 !important; }
.nuv-checkout select {
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
}
/* 电话：参考站左侧带国旗，这里保留原生样式、只统一样式 */
.nuv-checkout .form-row .iti,
.nuv-checkout .form-row input[type="tel"] { width: 100% !important; }

/* ---------- 4. 接触区块 ---------- */
.nuv-checkout .nuv-login-link {
    font-size: 14px !important;
    color: #6b7280 !important;
}
.nuv-checkout .nuv-login-link b { color: #0070ba !important; font-weight: 500 !important; }
.nuv-checkout .nuv-account-check {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    color: #111827 !important;
    margin: 6px 0 18px !important;
}
.nuv-checkout .nuv-account-check input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    padding: 0 !important;
}

/* ---------- 5. 信任徽章条（三等分 + 竖线） ---------- */
.nuv-checkout .nuv-trust,
.nuv-checkout .nuv-ship-badges {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 16px 0 24px !important;
    background: #ffffff !important;
}
.nuv-checkout .nuv-trust-badge,
.nuv-checkout .nuv-ship-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 12px 8px !important;
    text-align: center !important;
    border: 0 !important;
    border-left: 1px solid #e5e7eb !important;
    font-size: 13px !important;
}
.nuv-checkout .nuv-trust-badge:first-child,
.nuv-checkout .nuv-ship-badge:first-child { border-left: 0 !important; }
.nuv-checkout .nuv-trust-head { font-size: 13px !important; font-weight: 700 !important; color: #111827 !important; }
.nuv-checkout .nuv-trust-sub { font-size: 11px !important; color: #9ca3af !important; }
.nuv-checkout .nuv-trust-icon { display: block !important; margin-bottom: 2px !important; }

/* ---------- 6. 快速结账 / 或者 ---------- */
.nuv-checkout .nuv-express {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin: 8px 0 0 !important;
}
.nuv-checkout .nuv-express-label {
    text-align: center !important;
    font-size: 14px !important;
    color: #111827 !important;
    margin-bottom: 12px !important;
}
.nuv-checkout .nuv-express-btn.nuv-exp-paypal {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    background: #ffc439 !important;
    border: 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}
.nuv-checkout .nuv-express-btn .nuv-pp-logo { height: 24px !important; width: auto !important; }
.nuv-checkout .nuv-or {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 18px 0 4px !important;
    color: #6b7280 !important;
    font-size: 13px !important;
}
.nuv-checkout .nuv-or::before,
.nuv-checkout .nuv-or::after {
    content: "" !important;
    flex: 1 1 auto !important;
    height: 1px !important;
    background: #e5e7eb !important;
}

/* ---------- 7. 运输方式 ---------- */
.nuv-checkout .nuv-shipping-options { margin-bottom: 12px !important; }
.nuv-checkout .nuv-shipping-opt {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px 16px !important;
    margin: 0 !important;
    background: #ffffff !important;
    font-size: 15px !important;
    cursor: pointer !important;
}
.nuv-checkout .nuv-shipping-opt.is-selected { border-color: #e5e7eb !important; }
.nuv-checkout .nuv-shipping-opt input[type="radio"] {
    width: 18px !important; height: 18px !important; min-height: 18px !important;
    margin: 0 !important; padding: 0 !important;
}
.nuv-checkout .nuv-ship-label { flex: 1 1 auto !important; }
.nuv-checkout .nuv-ship-cost { display: none !important; } /* 参考站在此只显示「免运费」标签 */
.nuv-checkout .nuv-ship-info { margin-top: 12px !important; }
.nuv-checkout .nuv-ship-info-row { display: none !important; } /* 参考站信息合并到下方双栏条 */
/* 双栏信息条：免运费 / 预计送达 */
.nuv-checkout .nuv-ship-info > .nuv-ship-info-row {
    display: flex !important;
}
.nuv-checkout .nuv-ship-info::before {
    content: "" !important;
    display: none !important;
}

/* ---------- 8. 支付方式 ---------- */
.nuv-checkout #payment,
.nuv-checkout #order_review { background: transparent !important; }
/* 隐藏重复的金额表：右栏已有摘要 */
.nuv-checkout #order_review .woocommerce-checkout-review-order-table,
.nuv-checkout #order_review table.shop_table { display: none !important; }
.nuv-checkout #order_review h3#order_review_heading { display: none !important; }

.nuv-checkout .wc_payment_methods {
    list-style: none !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.nuv-checkout .wc_payment_method {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}
.nuv-checkout .wc_payment_method:first-child { border-top: 0 !important; }
.nuv-checkout .wc_payment_method > input[type="radio"] { position: absolute !important; opacity: 0 !important; pointer-events: none !important; }
.nuv-checkout .wc_payment_method > label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 16px !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}
/* 自绘单选圈 */
.nuv-checkout .wc_payment_method > label::before {
    content: "" !important;
    width: 18px !important; height: 18px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 50% !important;
    flex: 0 0 auto !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
.nuv-checkout .wc_payment_method > input:checked + label::before {
    border: 5px solid #111827 !important;
}
/* 支付图标推到右侧 */
.nuv-checkout .wc_payment_method > label img,
.nuv-checkout .wc_payment_method > label .nuv-cc-icon--credit {
    margin-left: auto !important;
    height: 20px !important;
    width: auto !important;
}
.nuv-checkout .wc_payment_method .payment_box {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

/* PayPal 展开区：绿条 + 示意区 */
.nuv-checkout .nuv-paypal-trust {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #f0fdf4 !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: #15803d !important;
    margin: 0 !important;
}
.nuv-checkout .nuv-paypal-guide {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 32px 24px 26px !important;
    background: #f8fafc !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    text-align: center !important;
}

/* 信用卡表单：输入框沿用统一风格，去掉灰底容器 */
.nuv-checkout .nuv-cc-fields {
    border: 0 !important;
    background: transparent !important;
    padding: 0 16px 16px !important;
}
.nuv-checkout .nuv-cc-row { margin-bottom: 10px !important; }

/* ---------- 9. 账单地址（保留功能，弱化视觉） ---------- */
.nuv-checkout .nuv-billing-addr { margin-top: 22px !important; }
.nuv-checkout .nuv-billing-addr h3 {
    font-size: 18px !important;
    margin: 0 0 8px !important;
}
.nuv-checkout .nuv-billing-addr .nuv-addr-opt {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
    background: #fff !important;
}

/* ---------- 10. 底部提交区 ---------- */
.nuv-checkout .form-row.place-order { margin-top: 24px !important; }
.nuv-checkout #place_order {
    width: 100% !important;
    height: 52px !important;
    background: #0070ba !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    cursor: pointer !important;
}
.nuv-checkout #place_order:hover { background: #005c99 !important; }

/* ---------- 11. 右栏订单摘要 ---------- */
/* 左栏必须显式 min-width:0 + flex-basis:0，否则内容最小宽度会把两栏挤成上下堆叠 */
.nuv-checkout .nuv-checkout-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 0 !important;
}
.nuv-checkout .nuv-checkout-left {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}
.nuv-checkout-right {
    flex: 0 0 400px !important;
    max-width: 400px !important;
    min-width: 0 !important;
    border-left: 1px solid #e5e7eb !important;
    padding-left: 40px !important;
    margin-left: 40px !important;
}
.nuv-checkout .nuv-summary-card { padding-top: 4px !important; }
.nuv-checkout .nuv-sum-item {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.nuv-checkout .nuv-sum-thumb {
    position: relative !important;
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #f3f4f6 !important;
}
.nuv-checkout .nuv-sum-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.nuv-checkout .nuv-qty-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 18px !important; height: 18px !important;
    background: #6b7280 !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    line-height: 18px !important;
    text-align: center !important;
}
.nuv-checkout .nuv-sum-meta { flex: 1 1 auto !important; min-width: 0 !important; }
.nuv-checkout .nuv-sum-title { font-size: 14px !important; line-height: 1.4 !important; color: #111827 !important; }
.nuv-checkout .nuv-sum-price { font-size: 13px !important; color: #6b7280 !important; margin-top: 2px !important; }
.nuv-checkout .nuv-sum-price del { color: #9ca3af !important; }
.nuv-checkout .nuv-sum-price ins { text-decoration: none !important; color: #111827 !important; }

/* 优惠码 */
.nuv-checkout .nuv-coupon-row {
    display: flex !important;
    gap: 10px !important;
    margin: 18px 0 !important;
}
.nuv-checkout .nuv-coupon-input {
    flex: 1 1 auto !important;
    height: 46px !important;
    min-height: 46px !important;
}
.nuv-checkout .nuv-coupon-btn {
    flex: 0 0 auto !important;
    height: 46px !important;
    padding: 0 22px !important;
    background: #8ec5e8 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* 金额行 */
.nuv-checkout .nuv-total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    font-size: 14px !important;
    color: #374151 !important;
    padding: 7px 0 !important;
}
.nuv-checkout .nuv-total-ship { display: inline-flex !important; align-items: center !important; gap: 6px !important; }
.nuv-checkout .nuv-total-grand {
    margin-top: 12px !important;
    padding-top: 14px !important;
    border-top: 2px solid #111827 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    align-items: center !important;
}
.nuv-checkout .nuv-total-grand em {
    font-style: normal !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    margin-left: 4px !important;
    vertical-align: super !important;
}
.nuv-checkout .nuv-total-grand > span:last-child {
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -.5px !important;
}

/* ---------- 12. 移动端：摘要折叠到顶部 ---------- */
@media (max-width: 900px) {
    .nuv-checkout .woocommerce { padding: 0 0 32px !important; }
    .nuv-checkout .nuv-checkout-layout {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    .nuv-checkout .nuv-checkout-left {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* 移动端把右栏摘要提到最前面并做成可折叠 */
    .nuv-checkout-right {
        order: -1 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-left: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding: 0 16px !important;
        margin: 0 0 4px !important;
        background: #f7f7f7 !important;
    }
    .nuv-checkout-left {
        padding: 0 16px !important;
    }
    .nuv-checkout .nuv-summary-card { padding: 14px 0 18px !important; }
    .nuv-checkout .nuv-checkout-logo {
        text-align: center !important;
        font-size: 26px !important;
        padding: 18px 0 14px !important;
        margin: 0 !important;
    }
    .nuv-checkout .nuv-section-head h3,
    .nuv-checkout h3 { font-size: 22px !important; margin-top: 22px !important; }
    .nuv-checkout .nuv-total-grand > span:last-child { font-size: 24px !important; }
}

/* ---------- 13. 提交区：返回购物车 + PayPal 蓝色按钮 ---------- */
.nuv-checkout .form-row.place-order {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
}
.nuv-checkout .nuv-return-cart {
    order: 1 !important;
    flex: 0 0 auto !important;
    color: #0070ba !important;
    font-size: 15px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.nuv-checkout .nuv-return-cart:hover { text-decoration: underline !important; }
.nuv-checkout .form-row.place-order #place_order {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    width: 220px !important;
    max-width: 55% !important;
    height: 50px !important;
    background: #0070ba !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
@media (max-width: 900px) {
    .nuv-checkout .form-row.place-order { flex-wrap: wrap !important; }
    .nuv-checkout .form-row.place-order #place_order {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .nuv-checkout .nuv-return-cart { order: 3 !important; width: 100% !important; text-align: center !important; }
}

/* ---------- 14. 运输信息条：双栏浅色底 ---------- */
.nuv-checkout .nuv-ship-info {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
    margin: 14px 0 0 !important;
}
.nuv-checkout .nuv-ship-info > .nuv-ship-info-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
    color: #374151 !important;
    border-left: 1px solid #e5e7eb !important;
}
.nuv-checkout .nuv-ship-info > .nuv-ship-info-row:first-child { border-left: 0 !important; }
.nuv-checkout .nuv-ship-info .nuv-ship-info-icon { flex: 0 0 auto !important; }
/* 该条内的三条徽章单独成行，占满两列 */
.nuv-checkout .nuv-ship-info > .nuv-ship-badges {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    border: 0 !important;
    border-top: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

/* ---------- 15. 收尾修正 ---------- */
/* 参考站没有「账单地址」单选框（默认即与收件地址一致），隐藏以免多出一块内容。
   该区块默认不勾选「使用不同的账单地址」，隐藏后仍走 billing = 已填地址，不影响下单。 */
.nuv-checkout .nuv-billing-addr { display: none !important; }

/* 返回购物车链接不能换行、也不能被压缩 */
.nuv-checkout .nuv-return-cart {
    min-width: -moz-max-content !important;
    min-width: max-content !important;
    line-height: 1.2 !important;
}

/* 支付方式外框：确保整组有边框、首行也参与分隔 */
.nuv-checkout ul.wc_payment_methods {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
}
.nuv-checkout ul.wc_payment_methods > li.wc_payment_method + li.wc_payment_method {
    border-top: 1px solid #e5e7eb !important;
}

/* 表单主体宽度兜底：避免局部区块被压成窄列 */
.nuv-checkout .woocommerce-billing-fields__field-wrapper,
.nuv-checkout .nuv-section,
.nuv-checkout .nuv-contact,
.nuv-checkout .nuv-delivery { width: 100% !important; }

/* PayPal 行：标题与右侧标识对齐 */
.nuv-checkout .payment_method_paypal > label { font-size: 16px !important; }

/* ---------- 16. 手机端重排：logo 在上、摘要可折叠 ---------- */
.nuv-co-inner { width: 100% !important; }
.nuv-checkout .nuv-checkout-logo {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    text-align: left !important;
}
/* 折叠条默认隐藏，只在手机上出现 */
.nuv-sum-toggle { display: none !important; }

@media (max-width: 900px) {
    .nuv-checkout .woocommerce { padding: 0 !important; }

    /* 品牌名：手机居中占一行 */
    .nuv-checkout .nuv-checkout-logo {
        text-align: center !important;
        font-size: 26px !important;
        padding: 20px 16px 16px !important;
        margin: 0 !important;
    }

    /* 摘要栏改成浅灰底 + 顶部折叠条 */
    .nuv-checkout-right {
        order: -1 !important;
        background: #f7f7f7 !important;
        padding: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    .nuv-sum-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 15px 16px !important;
        font-size: 15px !important;
        color: #111827 !important;
        cursor: pointer !important;
        text-align: left !important;
    }
    .nuv-sum-toggle-label { display: inline-flex !important; align-items: center !important; gap: 8px !important; }
    .nuv-sum-toggle-total { font-size: 17px !important; font-weight: 700 !important; white-space: nowrap !important; }
    .nuv-sum-caret { transition: transform .18s ease !important; }
    .nuv-checkout-right.is-collapsed .nuv-sum-caret { transform: rotate(180deg) !important; }
    .nuv-checkout-right.is-collapsed .nuv-summary-card { display: none !important; }

    .nuv-checkout .nuv-summary-card { padding: 4px 16px 18px !important; }
    .nuv-checkout .nuv-checkout-left { padding: 0 16px !important; }

    /* 手机上支付方式图标不要再挤在最右，跟随文字下方左对齐 */
    .nuv-checkout .wc_payment_method > label {
        flex-wrap: wrap !important;
        row-gap: 6px !important;
    }
    .nuv-checkout .wc_payment_method > label img,
    .nuv-checkout .wc_payment_method > label .nuv-cc-icon--credit {
        margin-left: 30px !important;
        height: 18px !important;
    }

    /* 运输信息条：手机改上下两行，避免半宽挤压换行 */
    .nuv-checkout .nuv-ship-info { grid-template-columns: 1fr !important; }
    .nuv-checkout .nuv-ship-info > .nuv-ship-info-row { border-left: 0 !important; }
    .nuv-checkout .nuv-ship-info > .nuv-ship-info-row + .nuv-ship-info-row {
        border-top: 1px solid #e5e7eb !important;
    }
    /* 徽章文字在窄屏更紧凑 */
    .nuv-checkout .nuv-trust-badge,
    .nuv-checkout .nuv-ship-badge { padding: 10px 6px !important; }
    .nuv-checkout .nuv-trust-head { font-size: 12px !important; }
    .nuv-checkout .nuv-trust-sub { font-size: 10px !important; }
}

/* ---------- 17. 修正：输入控件缺 box-sizing，padding 会把宽度撑破 ---------- */
.nuv-checkout input[type="text"],
.nuv-checkout input[type="email"],
.nuv-checkout input[type="tel"],
.nuv-checkout input[type="password"],
.nuv-checkout input[type="number"],
.nuv-checkout textarea,
.nuv-checkout select,
.nuv-checkout .select2-container,
.nuv-checkout .chosen-container {
    box-sizing: border-box !important;
    max-width: 100% !important;
}
.nuv-checkout .form-row select,
.nuv-checkout .form-row .select2-container {
    width: 100% !important;
    min-width: 0 !important;
}

/* ---------- 18. 手机端根因修正 ---------- */
/* Select2 / 主题电话控件会把原生 select 设为 absolute + 1px 来隐藏，
   上面「input/select 一律 width:100%」会把它们重新撑成整宽并溢出屏幕（实测右侧多出 44px）。 */
.nuv-checkout select.select2-hidden-accessible,
.nuv-checkout select.chosen-hidden-accessible,
.nuv-checkout select.nuv-phone-select-native,
.nuv-checkout select[aria-hidden="true"] {
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    position: absolute !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    /* 逐级放开宽度：原先内容区只剩 300px（屏宽 390），两侧留白过大，看起来又窄又挤 */
    .nuv-checkout,
    .nuv-checkout form.checkout,
    .nuv-co-inner,
    .nuv-checkout-layout,
    .nuv-checkout-left,
    .nuv-checkout-right {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .nuv-checkout .woocommerce { padding: 0 !important; }
    .nuv-checkout .nuv-checkout-left { padding: 0 16px !important; }
    .nuv-checkout .nuv-checkout-right { padding: 0 !important; }
    .nuv-checkout .nuv-summary-card { padding: 4px 16px 18px !important; }

    .nuv-checkout .woocommerce-billing-fields,
    .nuv-checkout .woocommerce-billing-fields__field-wrapper,
    .nuv-checkout .nuv-section,
    .nuv-checkout .nuv-contact,
    .nuv-checkout .nuv-delivery,
    .nuv-checkout .woocommerce-input-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    /* 三列字段（国家/邮编/州）在手机上改为整行堆叠 */
    .nuv-checkout .nuv-fld-third,
    .nuv-checkout .nuv-fld-half {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        display: block !important;
        margin-right: 0 !important;
    }
}

/* ---------- 19. 手机端支付行：图标换到文字下一行，避免压字 ---------- */
@media (max-width: 900px) {
    .nuv-checkout .wc_payment_method > label {
        display: grid !important;
        grid-template-columns: 18px 1fr !important;
        column-gap: 12px !important;
        row-gap: 8px !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    /* 单选圈占第一列 */
    .nuv-checkout .wc_payment_method > label::before {
        grid-column: 1 !important;
        grid-row: 1 !important;
        margin: 0 !important;
    }
    /* 支付图标另起一行、与文字左对齐 */
    .nuv-checkout .wc_payment_method > label img,
    .nuv-checkout .wc_payment_method > label .nuv-cc-icon--credit {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin: 0 !important;
        height: 18px !important;
        width: auto !important;
        justify-self: start !important;
    }
}

/* ---------- 20. 支付区块逐像素对齐参考截图 ---------- */
/* 选中态：蓝色圆点（原来我写成了黑色） */
.nuv-checkout .wc_payment_method > input:checked + label::before {
    border: 5px solid #0a4fd0 !important;
    background: #ffffff !important;
}
/* 去掉 WooCommerce 支付框左上角的小三角 */
.nuv-checkout .wc_payment_method .payment_box::before,
.nuv-checkout .wc_payment_method .payment_box::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
}
/* 展开区铺满整行、不内缩、不带圆角 */
.nuv-checkout .wc_payment_method .payment_box,
.nuv-checkout .wc_payment_method .payment_box.payment_method_paypal,
.nuv-checkout .wc_payment_method .payment_box.payment_method_nuv_cc {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    width: auto !important;
}

/* PayPal 展开：绿条 + 灰底示意区，均通栏 */
.nuv-checkout .nuv-paypal-trust {
    background: #f0f9f2 !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: #1f7a3f !important;
    gap: 12px !important;
}
.nuv-checkout .nuv-paypal-guide {
    background: #f7f7f7 !important;
    border-radius: 0 !important;
    padding: 40px 24px 34px !important;
    font-size: 15px !important;
    color: #4b5563 !important;
    gap: 22px !important;
    line-height: 1.7 !important;
}
.nuv-checkout .nuv-paypal-guide-icon svg { width: 92px !important; height: 76px !important; stroke: #b9bcc2 !important; }

/* 信用卡表单：整块浅灰底、通栏、内部白底输入框 */
.nuv-checkout .nuv-cc-fields {
    background: #f7f7f7 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 15px !important;
    margin: 0 !important;
    display: block !important;
}
.nuv-checkout .nuv-cc-fields .nuv-cc-row {
    margin: 0 0 15px !important;
    padding: 0 !important;
    display: block !important;
}
.nuv-checkout .nuv-cc-fields .nuv-cc-row:last-child { margin-bottom: 0 !important; }
.nuv-checkout .nuv-cc-fields .nuv-cc-row-split { display: block !important; }
.nuv-checkout .nuv-cc-fields .nuv-cc-col {
    display: block !important;
    width: 100% !important;
    margin: 0 0 15px !important;
}
.nuv-checkout .nuv-cc-fields input,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap {
    width: 100% !important;
    display: block !important;
}
.nuv-checkout .nuv-cc-fields input {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    height: 54px !important;
    min-height: 54px !important;
    font-size: 16px !important;
    padding: 0 16px !important;
}
/* 浮动 label 还原为框内 placeholder 文案 */
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap > input:placeholder-shown + .nuv-cc-input-wrap::after,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap::after {
    display: none !important;
}
/* 砍掉多余提示 */
.nuv-checkout .nuv-cc-name-hint,
.nuv-checkout .nuv-cc-help-icon,
.nuv-checkout .nuv-cc-note { display: none !important; }
/* 卡号右侧小卡片图标 */
.nuv-checkout .nuv-cc-card-icon { right: 16px !important; }

/* ---------- 21. 修正：支付区块宽度与支付行布局 ---------- */
/* 之前写 `.nuv-checkout .woocommerce` 是无效的——`.woocommerce` 是 `.nuv-checkout` 的
   祖先节点（page 内容外层），不是后代。所以内边距一直停在 14px，
   390 屏上内容被压到 300px 宽，支付行文字换行、图标溢出。 */
@media (max-width: 900px) {
    .woocommerce-checkout .woocommerce {
        padding-left: 14px !important;
        padding-right: 14px !important;
        max-width: 100% !important;
    }
    .nuv-checkout .nuv-checkout-left {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .nuv-checkout .nuv-checkout-right {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* 支付行：强制单行；文字可伸缩，图标靠右且限宽 */
    .nuv-checkout .wc_payment_method > label {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px 14px !important;
        text-align: left !important;
    }
    .nuv-checkout .wc_payment_method > label::before {
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }
    .nuv-checkout .wc_payment_method > label img {
        flex: 0 0 auto !important;
        margin: 0 0 0 auto !important;
        height: 18px !important;
        width: auto !important;
        max-width: 104px !important;
        object-fit: contain !important;
    }
    /* 支付方式名称不换行 */
    .nuv-checkout .wc_payment_method > label {
        white-space: nowrap !important;
    }
    .nuv-checkout .wc_payment_method .payment_box,
    .nuv-checkout .nuv-cc-fields { white-space: normal !important; }

    /* 卡片表单：左右留 15px，与参考一致 */
    .nuv-checkout .nuv-cc-fields { padding: 15px !important; }
    .nuv-checkout .nuv-cc-fields input { width: 100% !important; }
}

/* ---------- 22. 支付行靠左 + 收掉提交前多余空隙 ---------- */
@media (max-width: 900px) {
    /* 原先整行内容被居中，圆点离左边 110px；参考站是左对齐 */
    .nuv-checkout .wc_payment_method > label {
        justify-content: flex-start !important;
        text-align: left !important;
    }
    .nuv-checkout ul.wc_payment_methods { text-align: left !important; }
    /* 提交区：清掉卡片区与按钮之间的大段空白 */
    .nuv-checkout #payment .form-row.place-order {
        margin-top: 16px !important;
        padding-top: 0 !important;
    }
    .nuv-checkout #payment > .form-row.place-order { margin-top: 16px !important; }
    .nuv-checkout .wc_payment_methods { margin-bottom: 16px !important; }
    /* 卡片区底部不要再多留一段灰 */
    .nuv-checkout .nuv-cc-fields { margin-bottom: 0 !important; }
    .nuv-checkout .payment_method_nuv_cc .payment_box { padding-bottom: 0 !important; }
}

/* ---------- 23. 单选圆点：选中态不能改变自身尺寸，否则两个选项不在同一竖线 ---------- */
/* 选中时 border 由 1px 变 5px，若不强制 border-box，
   元素外框会从 20px 涨到 28px，圆心右移 4px，与未选中项错位。 */
.nuv-checkout .wc_payment_method > label::before {
    box-sizing: border-box !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.nuv-checkout .wc_payment_method > input:checked + label::before {
    border-width: 5px !important;
    border-style: solid !important;
    border-color: #0a4fd0 !important;
}
.nuv-checkout .wc_payment_method > input + label::before {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #d1d5db !important;
}
/* 两个选项的 label 左侧内边距必须一致，圆点才会落在同一竖线 */
.nuv-checkout .wc_payment_method > label {
    padding-left: 14px !important;
    gap: 12px !important;
}

/* ---------- 24. 两个支付选项的圆点对齐（终极覆盖） ---------- */
/* 第 2285 行有条老规则 `.nuv-checkout #payment li.payment_method_nuv_cc > label`
   带 id，特异性高于通用规则，把信用卡行的 padding-left 顶成了 54px，
   导致它比 PayPal 行右移 40px。这里用同等特异性、且在文件末尾，覆盖回来。 */
.nuv-checkout #payment li.wc_payment_method > label,
.nuv-checkout #payment li.payment_method_nuv_cc > label,
.nuv-checkout #payment li.payment_method_paypal > label,
.nuv-checkout #payment li.payment_method_bacs > label,
.nuv-checkout #payment li.payment_method_cod > label {
    padding: 16px 14px !important;
    gap: 12px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
.nuv-checkout #payment li.wc_payment_method > label::before,
.nuv-checkout #payment li.payment_method_nuv_cc > label::before,
.nuv-checkout #payment li.payment_method_paypal > label::before {
    box-sizing: border-box !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

/* ---------- 25. 信用卡填写框加宽（对齐参考截图的近满宽输入框） ---------- */
/* 之前每层都在缩：li padding 4px → payment_box padding 18px → fieldset padding 15px，
   390 屏上输入框只剩 258px（外层卡片 332px），比参考图窄一圈。
   第 2297 行 `.nuv-checkout #payment li.payment_method_nuv_cc div.payment_box`
   带 id 特异性更高，把 18px 顶回来了，所以这里用同等特异性覆盖。 */
.nuv-checkout #payment li.payment_method_nuv_cc,
.nuv-checkout #payment li.payment_method_paypal,
.nuv-checkout #payment li.wc_payment_method {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.nuv-checkout #payment li.payment_method_nuv_cc div.payment_box,
.nuv-checkout #payment li.payment_method_paypal div.payment_box,
.nuv-checkout #payment li.wc_payment_method div.payment_box {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
/* 灰色底块左右各留 14px，输入框随之撑到接近满宽 */
.nuv-checkout .nuv-cc-fields {
    padding: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.nuv-checkout .nuv-cc-fields .nuv-cc-row,
.nuv-checkout .nuv-cc-fields .nuv-cc-col,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.nuv-checkout .nuv-cc-fields input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ---------- 26. 再去掉 li 上残留的 4px 内边距（主题里有更高特异性的规则） ---------- */
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_nuv_cc,
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_paypal,
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method {
    padding: 0 !important;
}
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method > div.payment_box {
    padding: 0 !important;
}

/* ---------- 27. 信用卡输入框浮动标签：文字不再和标签重叠 ---------- */
/* 机制：标签由 `.nuv-cc-input-wrap[data-label]::before` 绘制，
   JS 给外层加 `.is-float` 后把标签从「垂直居中」提到 top:9px、12.5px。
   但输入框本身 `line-height:48px`（主题旧规则）而高度只有 54px，
   聚焦后 padding-top:20px 又挤掉行盒空间，导致文字仍然压在标签上。
   这里把行高、内边距、标签位置一起重排：
     标签浮起后占 9~21px，正文从 22px 开始。 */
.nuv-checkout .nuv-cc-fields input,
.nuv-checkout .nuv-cc-fields .input-text,
.nuv-checkout .nuv-cc-fields input.input-text {
    height: 54px !important;
    min-height: 54px !important;
    line-height: 20px !important;
    padding: 22px 16px 4px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}
/* 聚焦 / 已填内容时也要保持同一内边距，避免跳动 */
.nuv-checkout .nuv-cc-fields input:focus,
.nuv-checkout .nuv-cc-fields input:not(:placeholder-shown),
.nuv-checkout .nuv-cc-fields .input-text:focus,
.nuv-checkout .nuv-cc-fields .input-text:not(:placeholder-shown) {
    padding: 22px 16px 4px !important;
    line-height: 20px !important;
}
/* 卡号框右侧有卡片图标，保留右内边距 */
.nuv-checkout .nuv-cc-fields #nuv_cc_number {
    padding-right: 46px !important;
}
/* 标签浮起：位置与字号统一，且不再使用 translateY 居中 */
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap[data-label]::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col[data-label]::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap.is-float::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col.is-float::before {
    left: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    pointer-events: none !important;
}
/* 未填且未聚焦：标签居中充当 placeholder */
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap[data-label]:not(.is-float)::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col[data-label]:not(.is-float)::before {
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 15px !important;
    color: #4a4a4a !important;
}
/* 浮起态：靠上、缩小、变浅 */
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap.is-float::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col.is-float::before {
    top: 9px !important;
    transform: none !important;
    font-size: 12px !important;
    color: #8a8f98 !important;
}
/* CSS 兜底：万一 JS 没加 is-float（自动填充等），用 :has 也能浮起 */
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap:has(> input:focus)::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap:has(> input:not(:placeholder-shown))::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col:has(> input:focus)::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col:has(> input:not(:placeholder-shown))::before {
    top: 9px !important;
    transform: none !important;
    font-size: 12px !important;
    color: #8a8f98 !important;
}

/* ---------- 28. 浮动标签改为纯 CSS 驱动（不依赖主题 JS 的 is-float） ---------- */
/* 实测主题 JS 并不会给外层加 `.is-float`，所以标签永远停在垂直居中，
   打字后就和正文重叠。这里改用 :focus-within / :has(已填) 作为唯一判据，
   并把「浮起」规则的选择器特异性做到高于「居中」规则。 */

/* 居中态（空且未聚焦）：等同于 placeholder */
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap[data-label]::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col[data-label]::before {
    content: attr(data-label) !important;
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #4a4a4a !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 2 !important;
    transition: top .13s ease, font-size .13s ease, color .13s ease !important;
}

/* 浮起态：聚焦 或 已有内容 —— 特异性 0,5,0 / 0,5,1，高于上面的 0,4,0 */
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap[data-label]:focus-within::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col[data-label]:focus-within::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap[data-label]:has(> input:not(:placeholder-shown))::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col[data-label]:has(> input:not(:placeholder-shown))::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap.is-float[data-label]::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col.is-float[data-label]::before {
    top: 9px !important;
    transform: none !important;
    font-size: 12px !important;
    color: #8a8f98 !important;
}

/* ---------- 29. 微调浮动标签与正文的呼吸感 ---------- */
.nuv-checkout .nuv-cc-fields input,
.nuv-checkout .nuv-cc-fields input.input-text,
.nuv-checkout .nuv-cc-fields .input-text,
.nuv-checkout .nuv-cc-fields input:focus,
.nuv-checkout .nuv-cc-fields input:not(:placeholder-shown),
.nuv-checkout .nuv-cc-fields .input-text:focus,
.nuv-checkout .nuv-cc-fields .input-text:not(:placeholder-shown) {
    padding-top: 25px !important;
    padding-bottom: 4px !important;
    line-height: 20px !important;
}
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap[data-label]:focus-within::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col[data-label]:focus-within::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap[data-label]:has(> input:not(:placeholder-shown))::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col[data-label]:has(> input:not(:placeholder-shown))::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-input-wrap.is-float[data-label]::before,
.nuv-checkout .nuv-cc-fields .nuv-cc-col.is-float[data-label]::before {
    top: 8px !important;
    font-size: 12px !important;
    color: #8a8f98 !important;
}

/* ---------- 30. 恢复「账单地址」区块（之前被我误隐藏） ---------- */
/* 第 5081 行有 `.nuv-checkout .nuv-billing-addr { display:none !important }`，
   是我为了对齐早期桌面截图加的，属于误判：参考站「信用卡和借记卡」下是显示账单地址的。
   此处只恢复显示；是否显示仍由主题 JS 按支付方式控制（PayPal 时隐藏）。 */
.nuv-checkout .nuv-billing-addr {
    display: block !important;
    margin-top: 26px !important;
}

/* ---------- 31. 账单地址：对齐参考截图 ---------- */
/* 标题 / 副标题 */
.nuv-checkout .nuv-billing-addr h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
}
.nuv-checkout .nuv-billing-addr .nuv-billing-addr-sub {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

/* 两个单选项：一个描边盒，中间 1px 分隔线 */
.nuv-checkout .nuv-billing-opts {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}
.nuv-checkout .nuv-billing-opt {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    cursor: pointer !important;
}
.nuv-checkout .nuv-billing-opt + .nuv-billing-opt {
    border-top: 1px solid #e5e7eb !important;
}
.nuv-checkout .nuv-billing-opt.is-selected { background: #ffffff !important; }
/* 原生 radio 隐藏，用伪元素画圆点，尺寸固定不随选中态变化 */
.nuv-checkout .nuv-billing-opt > input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}
.nuv-checkout .nuv-billing-opt > .nuv-billing-opt-label {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #111827 !important;
}
.nuv-checkout .nuv-billing-opt::before {
    content: "" !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    box-sizing: border-box !important;
    border: 1px solid #d1d5db !important;
    border-radius: 50% !important;
    background: #fff !important;
    margin: 0 !important;
}
.nuv-checkout .nuv-billing-opt:has(input:checked)::before {
    border: 5px solid #0a4fd0 !important;
}

/* 展开的地址表单：浅灰底块，字段与银行卡输入框同一套几何 */
.nuv-checkout .nuv-billing-diff {
    background: #f7f7f7 !important;
    border: 0 !important;
    border-radius: 0 0 8px 8px !important;
    margin: 0 !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-grid {
    display: block !important;
    margin: 0 !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-half,
.nuv-checkout .nuv-billing-diff .nuv-bill-third,
.nuv-checkout .nuv-billing-diff .nuv-bill-wide {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px !important;
    box-sizing: border-box !important;
}
/* 名 / 姓 两列 */
.nuv-checkout .nuv-billing-diff .nuv-bill-half {
    display: inline-block !important;
    width: 48.9% !important;
    vertical-align: top !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-half + .nuv-bill-half {
    margin-left: 2.2% !important;
}
/* 输入框：白底 54px 圆角 10 */
.nuv-checkout .nuv-billing-diff .nuv-bill-input,
.nuv-checkout .nuv-billing-diff .nuv-bill-phone-input,
.nuv-checkout .nuv-billing-diff .nuv-bill-control {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    line-height: 20px !important;
    color: #111827 !important;
    box-shadow: none !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-input::placeholder,
.nuv-checkout .nuv-billing-diff .nuv-bill-phone-input::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}
/* 带浮动标签的输入框：与银行卡一致 */
.nuv-checkout .nuv-billing-diff .nuv-bill-float > input {
    padding: 25px 16px 4px !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-float[data-label]::before {
    content: attr(data-label) !important;
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #6b7280 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 2 !important;
    transition: top .13s ease, font-size .13s ease, color .13s ease !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-float[data-label]:focus-within::before,
.nuv-checkout .nuv-billing-diff .nuv-bill-float[data-label]:has(> input:not(:placeholder-shown))::before {
    top: 8px !important;
    transform: none !important;
    font-size: 12px !important;
    color: #8a8f98 !important;
}

/* 下拉：label 在框内上方，值在下方（同参考站） */
.nuv-checkout .nuv-billing-diff .nuv-bill-field {
    display: block !important;
    width: 100% !important;
    margin: 0 0 15px !important;
    padding: 0 !important;
    position: relative !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-field > span {
    position: absolute !important;
    left: 16px !important;
    top: 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: #8a8f98 !important;
    margin: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-field .nuv-bill-control {
    padding: 18px 40px 0 16px !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-color: #ffffff !important;
}

/* 添加地址栏 2 */
.nuv-checkout .nuv-billing-diff .nuv-bill-address2-toggle {
    display: inline-block !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
    font-size: 14px !important;
    color: #0a4fd0 !important;
    cursor: pointer !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-address2-row {
    display: none !important;
    margin: 0 0 15px !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-address2-row.is-open { display: block !important; }

/* 电话：国旗下拉 + 输入框同一行 */
.nuv-checkout .nuv-billing-diff .nuv-bill-phone {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-phone-prefix {
    flex: 0 0 92px !important;
    width: 92px !important;
    height: 54px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 15px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

/* 浮动标签包裹层：接管原本落在 input 上的列宽类 */
.nuv-checkout .nuv-billing-diff .nuv-bill-float {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 15px !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-float.nuv-bill-half {
    display: inline-block !important;
    width: 48.9% !important;
    vertical-align: top !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-float.nuv-bill-half + .nuv-bill-float.nuv-bill-half {
    margin-left: 2.2% !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-float > input {
    width: 100% !important;
    margin: 0 !important;
}

/* ---------- 32. 账单地址：改 flex 布局，名/姓两列不再换行 ---------- */
/* inline-block + 百分比宽度会有 0.5px 级溢出而折行（实测 148+6.6+148=302.6 > 302），
   改用 flex + gap，宽度用 calc 精确对半。 */
.nuv-checkout .nuv-billing-diff .nuv-bill-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: flex-start !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > * {
    margin: 0 !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-float,
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-field,
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-phone,
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-address2-row {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-float.nuv-bill-half {
    width: calc(50% - 7.5px) !important;
    flex: 0 0 calc(50% - 7.5px) !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-address2-toggle {
    width: auto !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    margin: 0 !important;
}
/* 灰底块与上方选择框贴合 */
.nuv-checkout .nuv-billing-opts {
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 0 !important;
}
.nuv-checkout .nuv-billing-diff {
    border: 1px solid #e5e7eb !important;
    border-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
    margin: 0 !important;
}

/* ---------- 33. 账单地址两处硬伤修正 ---------- */
/* ① 名/姓两列：calc(50% - 7.5px) 与 gap 相加正好等于容器宽，
      亚像素舍入会判成「放不下」而折行 → 收窄 0.5px。 */
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-float.nuv-bill-half {
    width: calc(50% - 8px) !important;
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    min-width: 0 !important;
}

/* ② 下拉框被主题 Select2 残留规则设成 position:absolute，直接盖住了框内的标签。
      改回相对定位，标签才能显示在值上方。 */
.nuv-checkout .nuv-billing-diff .nuv-bill-field {
    position: relative !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-field > .nuv-bill-control,
.nuv-checkout .nuv-billing-diff .nuv-bill-field select {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    z-index: 1 !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-field > span {
    z-index: 3 !important;
}
/* 值的位置：给标签让出上方空间 */
.nuv-checkout .nuv-billing-diff .nuv-bill-field .nuv-bill-control {
    padding: 20px 40px 0 16px !important;
}

/* 折行真凶：`.nuv-bill-half + .nuv-bill-half { margin-left: 2.2% }`（特异性 0,4,0）
   比 `> *` 高，142 + 6.6 + 142 + 15(gap) = 305.6 > 300 → 换行。清零。 */
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-float + .nuv-bill-float,
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-half + .nuv-bill-half {
    margin-left: 0 !important;
}

/* 终极覆盖：`.nuv-bill-float.nuv-bill-half + .nuv-bill-float.nuv-bill-half`（0,6,0）
   这条 2.2% 是我前面自己写的，特异性高于上一版覆盖，必须再加一层。 */
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-float.nuv-bill-half + .nuv-bill-float.nuv-bill-half,
.nuv-checkout .nuv-billing-diff .nuv-bill-grid > .nuv-bill-half + .nuv-bill-half {
    margin-left: 0 !important;
}

/* ---------- 34. 账单地址下拉：强制原生 select 显示 ---------- */
/* 主题会给这两个 select 初始化 Select2，实际显示的是它生成的容器（30px 高、无圆角），
   我方样式全部作用在原生 select 上，看不到效果。JS 会销毁 Select2，
   但初始化时机晚于脚本执行，因此再用 CSS 兜底：隐藏 Select2 容器、把原生 select 放出来。 */
.nuv-checkout .nuv-billing-diff .select2-container {
    display: none !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-field select.nuv-bill-control,
.nuv-checkout .nuv-billing-diff .nuv-bill-field select.select2-hidden-accessible,
.nuv-checkout .nuv-billing-diff .nuv-bill-phone select.nuv-bill-phone-prefix {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    position: relative !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    padding: 20px 40px 0 16px !important;
    pointer-events: auto !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-phone select.nuv-bill-phone-prefix {
    width: 92px !important;
    max-width: 92px !important;
    padding: 0 8px !important;
}

/* ---------- 35. 账单地址：隐藏电话行的原生区号下拉 ---------- */
/* 主题另有自定义国旗下拉（.nuv-phone-dd），两个都显示会重叠成「US +1」+「🇺🇸 +1」。
   原生 select 只承担取值与提交，隐藏即可。 */
.nuv-checkout .nuv-billing-diff .nuv-bill-phone select.nuv-bill-phone-prefix,
.nuv-checkout .nuv-billing-diff .nuv-bill-phone select.select2-hidden-accessible {
    display: none !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-phone {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-phone .nuv-phone-dd {
    flex: 0 0 96px !important;
    width: 96px !important;
    height: 54px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-phone .nuv-bill-phone-input,
.nuv-checkout .nuv-billing-diff .nuv-bill-phone .nuv-bill-float {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}

/* ---------- 36. 订单摘要 / 提交区 / 底部三件套（对齐参考截图） ---------- */
/* 桌面端默认：手机专用块隐藏 */
.nuv-mob-pay { display: none !important; }
.nuv-sum-heading { display: none !important; }

/* 无隐藏费用提示 */
.nuv-checkout .nuv-fee-note {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f2fbf5 !important;
    border: 1px solid #d8f0e0 !important;
    border-radius: 6px !important;
    padding: 11px 14px !important;
    margin: 16px 0 0 !important;
    font-size: 14px !important;
    color: #111827 !important;
    line-height: 1.4 !important;
}
.nuv-checkout .nuv-fee-note svg { flex: 0 0 16px !important; }

/* 提交按钮：黑色通栏（主题 JS 会写内联样式，这里必须 !important 压回） */
.nuv-checkout #place_order {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .2px !important;
}
.nuv-mob-place-order {
    display: block !important;
    width: 100% !important;
    height: 56px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 14px 0 0 !important;
    cursor: pointer !important;
}

/* 底部三件套 */
.nuv-checkout-foot {
    margin: 26px 0 8px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}
.nuv-foot-badges {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
}
.nuv-foot-badge {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    border-left: 1px solid #e5e7eb !important;
    min-width: 0 !important;
}
.nuv-foot-badge:first-child { border-left: 0 !important; }
.nuv-foot-ico { flex: 0 0 auto !important; display: inline-flex !important; }
.nuv-foot-txt { display: flex !important; flex-direction: column !important; min-width: 0 !important; }
.nuv-foot-txt b {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.35 !important;
}
.nuv-foot-txt i {
    font-style: normal !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.nuv-foot-lang {
    text-align: center !important;
    margin: 18px 0 10px !important;
}
.nuv-foot-lang .nuv-lang-select {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 26px 0 10px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 13px !important;
    color: #111827 !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    cursor: pointer !important;
}
.nuv-foot-copy {
    text-align: center !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 0 8px !important;
}

/* ---------- 手机端：摘要移到账单地址之后，按钮随之上移 ---------- */
@media (max-width: 900px) {
    /* 摘要在左栏之后（原来的 order:-1 是「提到最上面」，与参考站不符） */
    .nuv-checkout-layout { flex-direction: column !important; }
    .nuv-checkout-left { order: 1 !important; }
    .nuv-checkout-right {
        order: 2 !important;
        border-left: 0 !important;
        border-top: 1px solid #e5e7eb !important;
        padding: 0 14px !important;
        margin: 22px 0 0 !important;
        background: #ffffff !important;
    }
    /* 手机端不再用折叠条，改为「您的购物车」标题 */
    .nuv-sum-toggle { display: none !important; }
    .nuv-sum-heading {
        display: block !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
    }
    .nuv-checkout .nuv-summary-card { padding: 0 !important; }
    /* 桌面端的提交行隐藏（按钮改到摘要下方） */
    .nuv-checkout .form-row.place-order { display: none !important; }
    .nuv-checkout .form-row.place-order .nuv-fee-note { display: none !important; }
    /* 手机端提交块 */
    .nuv-mob-pay { display: block !important; }
    .nuv-checkout .nuv-mob-pay .nuv-fee-note { margin: 18px 0 0 !important; }
    .nuv-mob-place-order { margin: 12px 0 0 !important; }
    .nuv-mob-pay .nuv-return-cart--mob {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 16px 0 0 !important;
        color: #0070ba !important;
        font-size: 15px !important;
    }
    .nuv-checkout-foot { padding: 0 14px !important; }
}

/* ---------- 37. 底部细节修正 ---------- */
/* 摘要区去掉残留的浅灰底与卡片感，保持纯白（参考站是白底 + 细线分隔） */
.nuv-checkout .nuv-summary-card,
.nuv-checkout .nuv-sum-item {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 900px) {
    .nuv-checkout .nuv-summary-card { background: #ffffff !important; }
    /* 返回购物车：中文被撑成「返 回 购 物 车」，取消字距与两端对齐 */
    .nuv-mob-pay .nuv-return-cart--mob {
        display: block !important;
        width: auto !important;
        margin: 16px auto 0 !important;
        text-align: center !important;
        text-align-last: center !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        text-decoration: none !important;
        font-size: 15px !important;
        color: #0070ba !important;
    }

    /* 底部三徽章：窄屏下每格只有 ~120px，字号与内距都要收，副标题允许换行 */
    .nuv-foot-badge {
        padding: 10px 8px !important;
        gap: 6px !important;
        align-items: flex-start !important;
    }
    .nuv-foot-ico svg { width: 16px !important; height: 16px !important; }
    .nuv-foot-txt b {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    .nuv-foot-txt i {
        font-size: 9.5px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
    /* 语言下拉：不要被全局 select 规则拉成整宽 */
    .nuv-foot-lang .nuv-lang-select {
        display: inline-block !important;
        width: auto !important;
        min-width: 132px !important;
        max-width: 100% !important;
    }
}

/* ---------- 38. 提交按钮改黑色（覆盖早期蓝色规则） ---------- */
/* 第 13 节有 `.nuv-checkout .form-row.place-order #place_order { background:#0070ba !important }`，
   带 1 个 id + 3 个类，压过了后写的 `.nuv-checkout #place_order`。用同等特异性覆盖。 */
.nuv-checkout .form-row.place-order #place_order,
.nuv-checkout .nuv-order-extra ~ .form-row.place-order #place_order {
    background-color: #1a1a1a !important;
    background-image: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.nuv-checkout .form-row.place-order #place_order:hover {
    background-color: #000000 !important;
}

/* 语言下拉：任何宽度下都不要被全局 select 规则拉成整宽 */
.nuv-checkout-foot .nuv-foot-lang .nuv-lang-select {
    display: inline-block !important;
    width: auto !important;
    min-width: 132px !important;
    max-width: 240px !important;
}

/* ---------- 39. 订单摘要折叠：标题行 + 缓动 ---------- */
/* 「您的购物车」标题行即折叠开关：左侧标题、右侧合计、箭头随状态翻转。
   收起动画用 max-height 过渡（display:none 无法做缓动）。 */
.nuv-checkout .nuv-summary-card {
    overflow: hidden !important;
    max-height: none;
    opacity: 1;
    transition:
        max-height .38s cubic-bezier(.4, 0, .2, 1),
        opacity .28s ease,
        padding .38s cubic-bezier(.4, 0, .2, 1) !important;
    will-change: max-height, opacity;
}
/* 覆盖第 16 节的 display:none —— 那是硬切换，没有动画 */
.nuv-checkout-right.is-collapsed .nuv-summary-card {
    display: block !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 900px) {
    /* 折叠条重新显示，并做成标题行样式 */
    .nuv-checkout .nuv-sum-toggle,
    .nuv-checkout-right .nuv-sum-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 12px !important;
        margin: 0 0 4px !important;
        padding: 4px 0 12px !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        text-align: left !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .nuv-checkout-right.is-collapsed .nuv-sum-toggle {
        padding-bottom: 4px !important;
    }
    .nuv-checkout .nuv-sum-toggle-label {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }
    .nuv-checkout .nuv-sum-toggle-text {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    .nuv-checkout .nuv-sum-toggle-total {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        white-space: nowrap !important;
        margin-left: auto !important;
    }
    .nuv-checkout .nuv-sum-caret {
        flex: 0 0 auto !important;
        transition: transform .3s cubic-bezier(.4, 0, .2, 1) !important;
        color: #6b7280 !important;
    }
    .nuv-checkout-right.is-collapsed .nuv-sum-caret {
        transform: rotate(180deg) !important;
    }
    /* 不再需要单独的标题（折叠条本身就是标题） */
    .nuv-checkout .nuv-sum-heading { display: none !important; }
}

/* ---------- 40. 订单摘要条移到顶部（对齐参考站首屏） ---------- */
/* 参考站手机端：品牌名下方就是一条「显示订单摘要 + 合计」的折叠栏，默认收起。
   所以摘要栏 order 回到最前，并改成顶部条的样式。 */
@media (max-width: 900px) {
    .nuv-checkout-right {
        order: -1 !important;
        margin: 0 0 20px !important;
        padding: 0 14px !important;
        border-top: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        background: #ffffff !important;
    }
    .nuv-checkout .nuv-sum-toggle {
        padding: 6px 0 14px !important;
        margin: 0 !important;
    }
    .nuv-checkout-right.is-collapsed .nuv-sum-toggle {
        padding: 6px 0 14px !important;
    }
    /* 展开后内容与底部分隔线之间留白 */
    .nuv-checkout .nuv-summary-card {
        padding-bottom: 16px !important;
    }
    .nuv-checkout-right.is-collapsed .nuv-summary-card {
        padding-bottom: 0 !important;
    }
    /* 折叠栏文案：收起时「显示订单摘要」，展开时「隐藏订单摘要」 */
    .nuv-checkout .nuv-sum-toggle-text {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #111827 !important;
    }
    .nuv-checkout .nuv-sum-toggle-total {
        font-size: 16px !important;
        font-weight: 700 !important;
    }
    /* 提交区回到左栏底部（已从右栏移出） */
    .nuv-checkout .nuv-mob-pay {
        display: block !important;
        margin: 0 !important;
        padding: 0 14px !important;
    }
}

/* 折叠条不做焦点黑框（键盘 Tab 时仍保留可见焦点） */
.nuv-checkout .nuv-sum-toggle:focus { outline: none !important; }
.nuv-checkout .nuv-sum-toggle:focus-visible {
    outline: 2px solid #0a4fd0 !important;
    outline-offset: -2px !important;
}

/* ---------- 41. 展开区域内显示「您的购物车」标题 ---------- */
/* 顶部条负责「显示/隐藏订单摘要」，标题放在卡片内部：
   收起时整块高度为 0，标题自然一起隐藏；展开后条 + 标题同时可见。 */
.nuv-checkout .nuv-summary-card .nuv-sum-heading {
    display: none !important;
}
@media (max-width: 900px) {
    .nuv-checkout .nuv-summary-card .nuv-sum-heading {
        display: block !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }
}

/* ---------- 42. 手机端底部「您的购物车」区块 ---------- */
/* 顶部折叠条只做快捷汇总；支付/账单地址之后仍保留完整的「您的购物车」区块，
   与参考截图底部一致。桌面端不显示（右栏已有摘要）。 */
.nuv-cart-block { display: none !important; }

@media (max-width: 900px) {
    .nuv-cart-block {
        display: block !important;
        margin: 26px 0 0 !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
    }
    .nuv-cart-block .nuv-cart-block-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }
    .nuv-cart-block .nuv-sum-item {
        padding: 0 0 16px !important;
        border-bottom: 1px solid #e5e7eb !important;
        margin: 0 0 4px !important;
    }
    .nuv-cart-block .nuv-totals { margin-top: 12px !important; }
    .nuv-cart-block .nuv-total-grand > span:last-child {
        font-size: 22px !important;
        font-weight: 700 !important;
    }
}

/* ---------- 43. 购物车缩略图上的数量角标不再被裁 ---------- */
/* .nuv-sum-thumb 原来是 overflow:hidden，角标用 top:-6px/right:-6px 定位会被裁成一块残角。
   改成允许溢出，圆角交给 img 自己处理；角标放到左上角（与参考一致）。 */
.nuv-checkout .nuv-sum-thumb {
    overflow: visible !important;
    background: transparent !important;
}
.nuv-checkout .nuv-sum-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    background: #f3f4f6 !important;
    display: block !important;
}
.nuv-checkout .nuv-qty-badge {
    top: -6px !important;
    left: -6px !important;
    right: auto !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    font-size: 11px !important;
    background: #6b7280 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-sizing: content-box !important;
    border-radius: 50% !important;
    text-align: center !important;
    z-index: 2 !important;
}

/* ---------- 44. 支付方式：PayPal 与信用卡共用一个描边圆角框 ---------- */
/* 原先 ul 只有 border-radius 没有边框，看不出「一个盒子装两个选项」；
   同时原生 radio 以 opacity:0 绝对定位留在左上角（某些渲染下会闪出一个小方块）。 */
.nuv-checkout #payment ul.wc_payment_methods,
.nuv-checkout ul.wc_payment_methods.payment_methods {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none !important;
    outline: 0 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
}
/* 两个选项之间的分隔线 */
.nuv-checkout ul.wc_payment_methods > li.wc_payment_method + li.wc_payment_method {
    border-top: 1px solid #e5e7eb !important;
}
/* 最外两层不要任何边框/描边/阴影，避免出现「若隐若现」的第二层框 */
.nuv-checkout #payment,
.nuv-checkout .woocommerce-checkout-payment,
.nuv-checkout .woocommerce-checkout-review-order {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
}
/* 原生 radio 彻底不参与渲染（不靠 opacity，避免个别浏览器仍画出轮廓） */
.nuv-checkout ul.wc_payment_methods li.wc_payment_method > input[type="radio"],
.nuv-checkout ul.wc_payment_methods li.wc_payment_method > input.input-radio {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
/* 展开区（灰色卡片表单）与边框贴合 */
.nuv-checkout ul.wc_payment_methods li.wc_payment_method > div.payment_box {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    margin: 0 !important;
}

/* 原生 radio 移到画布外：必须带 #payment 才压得过第 24 节那条
   `.nuv-checkout #payment li.payment_method_nuv_cc > input.input-radio { left:18px; top:19px }`
   （它带 id，特异性更高，否则第二个选项的单选框仍留在行内左上角，偶尔会闪出一个小方块）。 */
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method > input[type="radio"],
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method > input.input-radio,
.nuv-checkout #payment ul.wc_payment_methods > li.payment_method_nuv_cc > input.input-radio,
.nuv-checkout #payment ul.wc_payment_methods > li.payment_method_paypal > input.input-radio {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    pointer-events: none !important;
}

/* ---------- 45. 修正：原生 radio 不能移到画布外（会导致选 PayPal 时整页跳到顶部） ---------- */
/* 上一版把它们设成 left:-9999px; top:0，标签点击会让 radio 获得焦点，
   浏览器为滚动到焦点元素 → 直接滚回页面左上角，表现为「一选 PayPal 就跳顶部」。
   改为：留在行内（相对 li 定位），尺寸压到 1px + clip，既看不见也不会引发滚动。 */
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method {
    position: relative !important;
}
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method > input[type="radio"],
.nuv-checkout #payment ul.wc_payment_methods > li.wc_payment_method > input.input-radio,
.nuv-checkout #payment ul.wc_payment_methods > li.payment_method_nuv_cc > input.input-radio,
.nuv-checkout #payment ul.wc_payment_methods > li.payment_method_paypal > input.input-radio {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transform: none !important;
}

/* ---------- 46. 账单地址展开/收起加缓动 ---------- */
/* 原来靠 display:none ↔ block，一帧切换，很生硬。
   改成 display 常驻 + max-height 过渡（配合 JS 设精确高度），
   收起时高度归零、内容裁掉；字段在小 JS 里已被 disabled，不会误聚焦。 */
.nuv-checkout .nuv-billing-diff,
.nuv-billing-diff {
    display: block !important;
    overflow: hidden !important;
    max-height: 0;
    opacity: 0;
    margin: 0 !important;
    transition:
        max-height .4s cubic-bezier(.4, 0, .2, 1),
        opacity .3s ease,
        border-width .4s cubic-bezier(.4, 0, .2, 1) !important;
    will-change: max-height, opacity;
}
.nuv-checkout .nuv-billing-diff.is-visible,
.nuv-billing-diff.is-visible {
    opacity: 1;
}
/* 收起时去掉边框，避免留一条 1px 的灰线 */
.nuv-checkout .nuv-billing-diff:not(.is-visible),
.nuv-billing-diff:not(.is-visible) {
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
}
/* 卡片表单里的输入框在动画期间不要被压扁导致跳动 */
.nuv-checkout .nuv-billing-diff .nuv-bill-grid {
    transition: none !important;
}

/* 收起要真正到 0：border-box 下高度不会小于自身 padding（30px），
   所以把内边距移到内层 .nuv-bill-grid，外框 padding 归零后再用 max-height 收。 */
.nuv-checkout .nuv-billing-diff {
    padding: 0 !important;
}
.nuv-checkout .nuv-billing-diff .nuv-bill-grid {
    padding: 15px !important;
    box-sizing: border-box !important;
}

/* 结账页顶部品牌名统一大写，与站头 SHOPBUY 保持一致 */
.nuv-checkout .nuv-checkout-logo {
    text-transform: uppercase !important;
}

/* ---- 头部导航：当前产品分类高亮（导航项由 product_cat 动态生成）---- */
.nuv-header-nav .nuv-nav-menu li.nuv-nav-cat.is-current > a {
    font-weight: 700;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
/* ---- 页脚品牌：替换主题 demo 的 JICO 图片 logo（Footer 1 / templatera 878）---- */
.footer .footer01 .nuv-footer-brand p {
    margin: 0;
}
.footer .footer01 .nuv-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1.2;
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
}
.footer .footer01 .nuv-footer-logo:hover {
    color: #666666;
}
.footer .footer01 .nuv-footer-logo-mark {
    flex: none;
    display: block;
    width: 30px;
    height: 19px;
}
/* ---- 商品页：件数快捷块已删除，数量步进器改到选项行下方独占一行 ---- */
.nuv-cart form.cart {
    flex-wrap: wrap;
}
.nuv-cart form.cart > table.variations {
    flex: 0 0 100%;
    width: 100%;
}
.nuv-cart form.cart > .single_variation_wrap {
    flex: 0 0 100%;
    width: 100%;
}
.nuv-cart .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: auto;
}


/* ============================================================
 * 手机端主导航适配（2026-11-10）
 * 原有 @media (max-width:768px) 里 .nuv-header-nav { display:none }
 * 直接隐藏了「店铺 / 新的 / 活的」三个入口，且没有汉堡菜单替代，
 * 手机端因此完全没有主导航。这里让它在头部第一行下方独占一行显示：
 *   - 不改 header.php，不改 logo / 工具区的尺寸与排列；
 *   - 只在 <=768px 生效，桌面端保持原样；
 *   - 三个链接等宽均分，长语种译文可换行，不挤压、不溢出。
 * ============================================================ */
@media (max-width: 768px) {
    .nuv-header-inner {
        row-gap: 8px !important;
    }
    .nuv-header-logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        text-align: left !important;
    }
    .nuv-header-tools {
        grid-column: 2 / -1 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
    }
    .nuv-header-nav {
        display: block !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .nuv-header-nav .nuv-nav-menu {
        display: flex !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        gap: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 0 0 !important;
        border-top: 1px solid #eeeeee !important;
        list-style: none !important;
    }
    .nuv-header-nav .nuv-nav-menu li {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        text-align: center !important;
        margin: 0 !important;
    }
    .nuv-header-nav .nuv-nav-menu a {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        padding: 4px 3px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
}


/* 结账页顶部品牌名改为链接后保持原有字色与无下划线（2026-11-10 r8） */
.nuv-checkout-logo a {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
}


/* 结账页「快速结账 / 或者」与商品详情页统一：18px 加粗深色（2026-11-11） */
.nuv-checkout .nuv-express-label,
.nuv-checkout .nuv-express-label span {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.nuv-checkout .nuv-or,
.nuv-checkout .nuv-or span {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    letter-spacing: 0 !important;
}


/* RTL 语言（阿拉伯语 / 希伯来语等）切换后：主题是按 LTR 写的版式，
   GTranslate 会给 html 加 .translated-rtl 把整页方向反转，导致 flex 顺序倒置、
   元素溢出屏幕。这里强制保持 LTR 布局，文字内容仍照常翻译（2026-11-11） */
html.translated-rtl,
html.translated-rtl body,
html.translated-rtl .nuv-layout,
html.translated-rtl .nuv-checkout-layout,
html.translated-rtl .nuv-gallery,
html.translated-rtl .nuv-summary,
html.translated-rtl .nuv-header-tools {
    direction: ltr !important;
}


/* 折扣行只在右栏手写摘要显示：隐藏 WooCommerce 默认明细表里的 fee 行，避免重复（2026-11-11） */
.woocommerce-checkout #order_review table.shop_table tr.fee {
    display: none !important;
}


/* Header 货币切换：改用 YayCurrency Pro 短代码后，压缩为与其它工具图标同高的一行（2026-11-11） */
.nuv-header-tools .nuv-tool-yay {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    max-width: 120px !important;
}
.nuv-header-tools .nuv-tool-yay .yay-currency-shortcode-switcher,
.nuv-header-tools .nuv-tool-yay .yay-currency-single-page-switcher,
.nuv-header-tools .nuv-tool-yay .yay-currency-form-switcher {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}
.nuv-header-tools .nuv-tool-yay select,
.nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper,
.nuv-header-tools .nuv-tool-yay .yay-currency-custom-select {
    font-size: 13px !important;
    line-height: 1.2 !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}
.nuv-header-tools .nuv-tool-yay img {
    width: 18px !important;
    height: auto !important;
    margin-right: 5px !important;
    border-radius: 2px !important;
}
.nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper { max-width: 110px !important; }


/* 手机端头部：YayCurrency 切换器与工具图标适配（2026-11-11） */
@media (max-width: 768px) {
    .nuv-header-tools { gap: 6px !important; }
    .nuv-header-tools > .nuv-tool,
    .nuv-header-tools > .gtranslate_wrapper { flex: 0 0 auto !important; }
    .nuv-header-tools .nuv-tool { min-width: 18px !important; }
    .nuv-header-tools .nuv-tool svg {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 auto !important;
    }
    .nuv-header-tools .nuv-tool-yay { max-width: 88px !important; margin: 0 2px 0 0 !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper { max-width: 86px !important; }
    .nuv-header-tools .nuv-tool-yay select,
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select,
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select__trigger {
        font-size: 12px !important;
        height: 28px !important;
        min-height: 28px !important;
        line-height: 28px !important;
        padding: 0 2px !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-arrow { display: none !important; }
    .nuv-header-tools .nuv-tool-yay img,
    .nuv-header-tools .nuv-tool-yay .yay-currency-flag {
        width: 16px !important;
        height: 12px !important;
        margin-right: 4px !important;
        background-size: cover !important;
        border-radius: 2px !important;
    }
}
@media (max-width: 380px) {
    .nuv-header-tools { gap: 4px !important; }
    .nuv-header-tools .nuv-tool-yay { max-width: 74px !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper { max-width: 72px !important; }
}


/* 手机端头部第二版：进一步压缩，给 logo 让出空间（2026-11-11） */
@media (max-width: 768px) {
    .nuv-header-tools { gap: 5px !important; }
    .nuv-header-tools .nuv-tool svg { width: 18px !important; height: 18px !important; }
    .nuv-header-tools .nuv-tool-yay { max-width: 64px !important; margin: 0 !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper { max-width: 62px !important; }
    .nuv-header-tools .nuv-tool-yay select,
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select,
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select__trigger {
        font-size: 11px !important;
        height: 24px !important;
        min-height: 24px !important;
        line-height: 24px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        white-space: nowrap !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select { overflow: hidden !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-flag {
        width: 14px !important;
        height: 10px !important;
        margin-right: 3px !important;
    }
    /* 语言切换器只留国旗，省出文字宽度 */
    .nuv-header-tools .gt_float_switcher .gt-selected .gt-lang-code { display: none !important; }
    .nuv-header-tools .gt_float_switcher .gt-selected .gt-current-lang { padding: 4px 2px !important; }
    .nuv-header-tools .gt_float_switcher .gt-selected .gt_arrow { display: none !important; }
}


/* 手机端头部第三版：裁掉货币文字溢出 + 购物车角标内收（2026-11-11） */
@media (max-width: 768px) {
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select__trigger {
        max-width: 62px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-selected-option {
        max-width: 36px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    .nuv-header-tools .nuv-tool-cart { margin-right: 8px !important; }
    .nuv-header-tools .nuv-cart-count {
        top: -6px !important;
        right: -5px !important;
        min-width: 15px !important;
        height: 15px !important;
        line-height: 15px !important;
        font-size: 9px !important;
        padding: 0 3px !important;
    }
}


/* 手机端头部第四版：货币只留国旗、徽章让位（2026-11-11） */
@media (max-width: 768px) {
    .nuv-header-tools .nuv-tool-yay { max-width: 40px !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper { max-width: 38px !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-selected-option { display: none !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select__trigger {
        max-width: 38px !important;
        padding: 0 !important;
        justify-content: center !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-flag {
        width: 20px !important;
        height: 14px !important;
        margin: 0 !important;
    }
    .nuv-header-tools .nuv-tool-cart { margin-right: 10px !important; }
    .nuv-header-tools .nuv-cart-count {
        right: -2px !important;
        top: -5px !important;
    }
}


/* 手机端头部第五版：保留货币代码，但强制收缩不溢出（2026-11-11） */
@media (max-width: 768px) {
    .nuv-header-tools .nuv-tool-yay { max-width: 62px !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper { max-width: 60px !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select__trigger {
        width: 60px !important;
        max-width: 60px !important;
        min-width: 0 !important;
        padding: 0 2px 0 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-selected-option {
        min-width: 0 !important;
        max-width: 58px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-selected-option {
        display: inline-block !important;
        max-width: 36px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-flag {
        width: 16px !important;
        height: 11px !important;
        margin: 0 3px 0 0 !important;
        flex: 0 0 auto !important;
    }
}


/* 手机端头部微调：货币与搜索之间留出呼吸间距（2026-11-11） */
@media (max-width: 768px) {
    .nuv-header-tools .nuv-tool-yay { margin: 0 4px 0 0 !important; }
}


/* 超窄屏（≤380）头部降级：货币只留国旗、logo 缩小，避免与工具区重叠（2026-11-11） */
@media (max-width: 380px) {
    .nuv-header-logo { font-size: 13px !important; letter-spacing: 1px !important; }
    .nuv-header-logo .nuv-logo-mark svg { width: 20px !important; height: 13px !important; }
    .nuv-header-tools { gap: 4px !important; }
    .nuv-header-tools .nuv-tool-yay { max-width: 34px !important; margin: 0 2px 0 0 !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper { max-width: 32px !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select__trigger {
        width: 32px !important;
        max-width: 32px !important;
        padding: 0 !important;
        justify-content: center !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-selected-option { display: none !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-flag {
        width: 18px !important;
        height: 13px !important;
        margin: 0 !important;
    }
    .nuv-header-tools .nuv-tool svg { width: 17px !important; height: 17px !important; }
}


/* 手机端头部网格：logo 按内容宽、工具区占剩余，避免互相重叠（2026-11-11） */
@media (max-width: 768px) {
    .nuv-header-inner {
        grid-template-columns: auto 1fr !important;
        column-gap: 8px !important;
    }
    .nuv-header-logo {
        min-width: 0 !important;
        white-space: nowrap !important;
    }
    .nuv-header-tools {
        min-width: 0 !important;
        flex-wrap: nowrap !important;
    }
}


/* 极窄屏（≤340）logo 再缩一号，确保 SHOPBUY 完整可见（2026-11-11） */
@media (max-width: 340px) {
    .nuv-header-logo { font-size: 12px !important; letter-spacing: 0.5px !important; gap: 4px !important; }
    .nuv-header-logo .nuv-logo-mark svg { width: 17px !important; height: 11px !important; }
    .nuv-header-tools { gap: 3px !important; }
    .nuv-header-tools .nuv-tool svg { width: 16px !important; height: 16px !important; }
}


/* 341-380px：恢复货币代码显示（空间够），≤340 仍只留国旗（2026-11-11） */
@media (min-width: 341px) and (max-width: 390px) {
    .nuv-header-tools .nuv-tool-yay { max-width: 58px !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper { max-width: 56px !important; }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select__trigger {
        width: 56px !important;
        max-width: 56px !important;
        padding: 0 !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-selected-option {
        display: inline-block !important;
        max-width: 30px !important;
        font-size: 10px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-flag {
        width: 16px !important;
        height: 11px !important;
        margin: 0 3px 0 0 !important;
    }
}


/* 手机端：货币下拉必须能溢出显示（此前 overflow:hidden 把展开列表裁掉了）2026-11-11 */
@media (max-width: 768px) {
    .nuv-header-tools .nuv-tool-yay,
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select-wrapper,
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select,
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-select__trigger {
        overflow: visible !important;
    }
    .nuv-header-tools .nuv-tool-yay .yay-currency-custom-options {
        z-index: 100000 !important;
        max-height: 260px !important;
        overflow-y: auto !important;
    }
}
