/* ============================================================
   Sunrise Violin — 购物车 / 结算 / 我的账户 v1（第 6 步）
   依赖：vn-design.css（设计变量）+ vn-content.css（内页外壳）
   覆盖对象：WooCommerce Blocks 购物车 / 结算，经典模板我的账户
   说明：块样式由 WooCommerce 运行时注入，故一律带 body.vn-ui 提高权重
   ============================================================ */

/* ---------- 1. 页面外壳：紧凑页头 ---------- */
body.vn-ui.woocommerce-cart .entry-header,
body.vn-ui.woocommerce-checkout .entry-header,
body.vn-ui.woocommerce-account .entry-header {
  display: block;
  position: relative;
  background: linear-gradient(160deg, var(--bg2) 0%, var(--paper) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  text-align: center;
  padding: clamp(30px, 3.4vw, 48px) clamp(22px, 3vw, 44px);
  margin: 0 0 clamp(24px, 3vw, 38px);
}
body.vn-ui.woocommerce-cart .entry-header::before,
body.vn-ui.woocommerce-checkout .entry-header::before,
body.vn-ui.woocommerce-account .entry-header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 72px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--accent);
}
body.vn-ui.woocommerce-cart .entry-header .entry-title,
body.vn-ui.woocommerce-checkout .entry-header .entry-title,
body.vn-ui.woocommerce-account .entry-header .entry-title {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -.015em;
  margin: 0;
}
body.vn-ui.woocommerce-cart .entry-header .entry-title::after,
body.vn-ui.woocommerce-checkout .entry-header .entry-title::after,
body.vn-ui.woocommerce-account .entry-header .entry-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}

body.vn-ui.woocommerce-cart .entry-content,
body.vn-ui.woocommerce-checkout .entry-content,
body.vn-ui.woocommerce-account .entry-content {
  padding-top: 0;
  padding-bottom: clamp(56px, 6vw, 96px);
}
body.vn-ui.woocommerce-cart .woocommerce-notices-wrapper,
body.vn-ui.woocommerce-checkout .woocommerce-notices-wrapper,
body.vn-ui.woocommerce-account .woocommerce-notices-wrapper { margin-bottom: 22px; }

/* ---------- 2. 两栏骨架（购物车 / 结算共用） ---------- */
body.vn-ui .wc-block-components-sidebar-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(26px, 3.2vw, 48px);
  margin: 0;
}
body.vn-ui .wc-block-components-sidebar-layout .wc-block-components-main {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 0;
}
body.vn-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  flex: 0 0 clamp(300px, 31%, 384px);
  width: auto;
  min-width: 0;
  padding: 0;
}
body.vn-ui .wc-block-checkout__sidebar.is-sticky,
body.vn-ui .wc-block-cart__sidebar.is-sticky {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px);
}

/* ---------- 3. 通用块按钮 ---------- */
body.vn-ui .wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  min-height: 52px;
  padding: 17px 32px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: none;
  text-decoration: none;
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}
body.vn-ui .wc-block-components-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.vn-ui .wc-block-components-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 169, 106, .26);
}
body.vn-ui .wc-block-components-button:disabled,
body.vn-ui .wc-block-components-button[disabled] { opacity: .55; cursor: not-allowed; }

/* 空购物车 / 通用 WP 按钮 */
body.vn-ui .wc-block-cart__empty-cart__button,
body.vn-ui .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

/* ---------- 4. 提示条 ---------- */
body.vn-ui .wc-block-components-notice-banner {
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink2);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 16px 18px;
}
body.vn-ui .wc-block-components-notice-banner.is-error { border-left-color: #a4462f; }
body.vn-ui .wc-block-components-notice-banner.is-success { border-left-color: var(--accent); }
body.vn-ui .wc-block-components-notice-banner > svg { fill: currentColor; margin-top: 3px; }
body.vn-ui .wc-block-components-notice-banner__content a { color: var(--accentd); }

/* ============================================================
   5. 购物车
   ============================================================ */

/* 5.1 明细表 */
body.vn-ui .wc-block-cart-items {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
}
body.vn-ui .wc-block-cart-items__header th {
  padding: 15px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted2);
  text-align: left;
}
body.vn-ui .wc-block-cart-items__header-image { width: 116px; }
body.vn-ui .wc-block-cart-items__header-total { width: 132px; text-align: right; }

body.vn-ui .wc-block-cart-items__row td {
  padding: 22px 20px;
  border-bottom: 1px solid var(--line2);
  vertical-align: top;
}
body.vn-ui .wc-block-cart-items__row:last-child td { border-bottom: 0; }

body.vn-ui .wc-block-cart-item__image { width: 116px; line-height: 0; }
body.vn-ui .wc-block-cart-item__image img {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
}

body.vn-ui .wc-block-cart-item__product .wc-block-components-product-name {
  display: inline-block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
}
body.vn-ui .wc-block-cart-item__product .wc-block-components-product-name:hover { color: var(--accentd); }

body.vn-ui .wc-block-cart-item__prices .wc-block-components-product-price {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
body.vn-ui .wc-block-cart-item__prices .wc-block-components-product-price del { color: var(--muted2); font-size: 13px; }

body.vn-ui .wc-block-cart-item__product .wc-block-components-product-metadata,
body.vn-ui .wc-block-cart-item__product .wc-block-components-product-metadata__description {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted2);
}
body.vn-ui .wc-block-cart-item__product .wc-block-components-product-metadata { margin-top: 6px; }

body.vn-ui .wc-block-cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

/* 5.2 数量选择器 */
body.vn-ui .wc-block-components-quantity-selector {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
body.vn-ui .wc-block-components-quantity-selector__button {
  width: 40px;
  min-width: 40px;
  height: 44px;
  min-height: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink2);
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: background .2s ease, color .2s ease;
}
body.vn-ui .wc-block-components-quantity-selector__button:hover {
  background: var(--bg2);
  border-color: transparent;
  color: var(--ink);
}
body.vn-ui .wc-block-components-quantity-selector__button:disabled { opacity: .32; cursor: not-allowed; }
body.vn-ui .wc-block-components-quantity-selector__input {
  width: 56px;
  height: 44px;
  min-height: 0;
  padding: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
body.vn-ui .wc-block-components-quantity-selector__input:focus { box-shadow: none; border-color: var(--line); }
body.vn-ui .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
body.vn-ui .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 5.3 移除按钮（图标） */
body.vn-ui .wc-block-cart-item__remove-link {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  line-height: 0;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted2);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.vn-ui .wc-block-cart-item__remove-link svg { width: 18px; height: 18px; fill: currentColor; }
body.vn-ui .wc-block-cart-item__remove-link:hover { background: none; color: var(--accentd); }

/* 5.4 小计列 */
body.vn-ui .wc-block-cart-item__total { width: 132px; text-align: right; }
body.vn-ui .wc-block-cart-item__total .wc-block-components-product-price__value {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
body.vn-ui .wc-block-cart-item__total .wc-block-components-product-price del { font-size: 14px; color: var(--muted2); }

/* 5.5 侧栏合计卡 */
body.vn-ui .wc-block-cart__sidebar > .wp-block-woocommerce-cart-order-summary-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
}
body.vn-ui .wc-block-cart__totals-title {
  margin: 0;
  padding: 18px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
body.vn-ui .wc-block-cart__sidebar .wc-block-components-totals-wrapper { border-bottom: 1px solid var(--line2); }
body.vn-ui .wc-block-cart__sidebar .wc-block-components-totals-wrapper:last-child { border-bottom: 0; }

/* 优惠券折叠 */
body.vn-ui .wc-block-components-totals-coupon .wc-block-components-panel__button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accentd);
  cursor: pointer;
}
body.vn-ui .wc-block-components-panel__button-icon { width: 18px; height: 18px; fill: currentColor; }

/* 5.6 合计明细行 */
body.vn-ui .wc-block-components-totals-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 15px 24px;
  font-size: 14.5px;
  color: var(--muted);
}
body.vn-ui .wc-block-components-totals-item__label { flex: 1 1 auto; }
body.vn-ui .wc-block-components-totals-item__value {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
body.vn-ui .wc-block-components-totals-item__description {
  flex: 0 0 100%;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted2);
}
body.vn-ui .wc-block-components-totals-shipping .wc-block-components-totals-item { padding-bottom: 18px; }

/* 应付合计行 */
body.vn-ui .wc-block-components-totals-footer-item {
  margin: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
body.vn-ui .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
body.vn-ui .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.vn-ui .wc-block-components-totals-footer-item-tax-value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
body.vn-ui .wc-block-components-totals-footer-item .wc-block-components-totals-item__description { font-size: 12px; }

/* 5.7 快递支付 / 去结算按钮 */
body.vn-ui .wc-block-cart__payment-options { margin-top: 16px; }
body.vn-ui .wc-block-cart__submit { margin-top: 16px; }
body.vn-ui .wc-block-cart__submit-container {
  position: static;
  padding: 0;
  background: none;
  box-shadow: none;
}
body.vn-ui .wc-block-cart__submit-button { width: 100%; }

/* 5.8 空购物车 */
body.vn-ui .wc-block-cart__empty-cart__title {
  font-size: clamp(21px, 2.4vw, 28px);
  text-align: center;
  margin: 0 0 26px;
}
body.vn-ui .wp-block-woocommerce-empty-cart-block .wp-block-separator {
  width: 56px;
  height: 2px;
  background: var(--accent);
  border: 0;
  margin: 30px auto;
  opacity: 1;
}
body.vn-ui .wp-block-woocommerce-empty-cart-block h2.wp-block-heading {
  font-size: clamp(19px, 2vw, 24px);
  text-align: center;
}
body.vn-ui .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* WC 原样式用 .wc-block-grid.has-4-columns .wc-block-grid__product { max-width:25% }
   （三class、权重 0-3-0）给 li 设了 flex 时代的列宽，改 grid 后必须解除，否则每列
   会被压到 25% 宽（约 68px），图片与标题随之被挤成竖排。故此处选择器需更具体：
   0-4-1 > 0-3-0。 */
body.vn-ui .wc-block-grid .wc-block-grid__products > .wc-block-grid__product {
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 0 20px;
  box-sizing: border-box;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
}
body.vn-ui .wc-block-grid__product-link { display: block; }
body.vn-ui .wc-block-grid__product:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-line);
  transform: translateY(-4px);
}
body.vn-ui .wc-block-grid__product-image { display: block; width: 100%; margin: 0; line-height: 0; }
body.vn-ui .wc-block-grid__product-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}
body.vn-ui .wc-block-grid__product-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
  padding: 16px 18px 8px;
}
body.vn-ui .wc-block-grid__product-price,
body.vn-ui .wc-block-grid__product .price {
  padding: 0 18px 14px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--accentd);
}
body.vn-ui .wc-block-grid__product-onsale {
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 6px 12px;
  min-height: 0;
  min-width: 0;
}
body.vn-ui .wc-block-grid__product-add-to-cart {
  width: auto;
  margin: auto 18px 0;
  padding: 0;
}
/* 该按钮是 a.wp-block-button__link，会被主题预设色（vivid-cyan-blue）染成蓝底，需显式覆盖 */
body.vn-ui .wc-block-grid__product-add-to-cart .wp-block-button__link,
body.vn-ui .wc-block-grid__product-add-to-cart a.button,
body.vn-ui .wc-block-grid__product-add-to-cart a.add_to_cart_button,
body.vn-ui .wc-block-grid__product-add-to-cart a.added_to_cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  color: #fff;
  background: var(--ink);
  background-color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: none;
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}
body.vn-ui .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
body.vn-ui .wc-block-grid__product-add-to-cart a.button:hover,
body.vn-ui .wc-block-grid__product-add-to-cart a.add_to_cart_button:hover,
body.vn-ui .wc-block-grid__product-add-to-cart a.added_to_cart:hover {
  color: #fff;
  background: var(--accent);
  background-color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   6. 结算
   ============================================================ */

/* 6.1 步骤卡 */
body.vn-ui .wc-block-components-checkout-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: clamp(22px, 2.6vw, 32px);
  margin: 0 0 20px;
}
body.vn-ui .wc-block-components-checkout-step__heading { margin: 0 0 20px; }
body.vn-ui .wc-block-components-checkout-step__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line2);
}
body.vn-ui .wc-block-components-checkout-step__heading-content { font-size: 13.5px; color: var(--muted); }
body.vn-ui .wc-block-checkout__guest-checkout-notice {
  font-size: 13px;
  color: var(--muted2);
  margin: 12px 0 0;
}
body.vn-ui .wc-block-checkout__use-address-for-billing { margin: 16px 0 0; }

/* 6.2 输入框：保留浮起标签的几何，只换观感 */
body.vn-ui .wc-block-checkout .wc-block-components-text-input { margin-bottom: 14px; }
body.vn-ui .wc-block-checkout .wc-block-components-text-input input,
body.vn-ui .wc-block-checkout .wc-block-components-address-form input {
  padding: 1.32em .95em .45em;
  min-height: 58px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: none;
}
body.vn-ui .wc-block-checkout .wc-block-components-text-input input:focus,
body.vn-ui .wc-block-checkout .wc-block-components-address-form input:focus {
  background: var(--paper);
  border-color: var(--accentl);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, .18);
}
body.vn-ui .wc-block-checkout .wc-block-components-text-input label,
body.vn-ui .wc-block-checkout .wc-blocks-components-select__label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted2);
}
body.vn-ui .wc-block-checkout .wc-block-components-text-input label { left: .95em; }
body.vn-ui .wc-block-checkout .wc-blocks-components-select__container {
  min-height: 58px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
body.vn-ui .wc-block-checkout .wc-blocks-components-select__select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--r);
  padding: 1.32em 2.4em .45em .95em;
  box-shadow: none;
}
body.vn-ui .wc-block-checkout .wc-blocks-components-select__expand { fill: var(--muted); }
body.vn-ui .wc-block-checkout .wc-block-components-address-form__address_2-toggle { font-size: 13.5px; color: var(--accentd); }
body.vn-ui .wc-block-components-address-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.7;
}
body.vn-ui .wc-block-components-address-card__address-section--secondary { color: var(--muted); }
body.vn-ui .wc-block-components-address-card__edit a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* 6.3 单选：快递 / 支付方式 */
body.vn-ui .wc-block-checkout .wc-block-components-radio-control { margin: 0; }
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__option,
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__option-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  margin: 0 0 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s ease, background .2s ease;
}
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__option:last-child,
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__option-layout:last-child { margin-bottom: 0; }
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__option:hover { border-color: var(--gold-line); }
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__option--checked-option-highlighted,
body.vn-ui .wc-block-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked {
  background: rgba(200, 169, 106, .08);
  border-color: var(--accentl);
}
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__label-group {
  flex: 1 1 auto;
  font-size: 14.5px;
  color: var(--ink2);
}
body.vn-ui .wc-block-checkout .wc-block-components-radio-control__secondary-label {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
body.vn-ui .wc-block-components-shipping-rates-control__package { margin: 0; }

/* 6.4 勾选框 / 条款 */
body.vn-ui .wc-block-components-checkbox { align-items: flex-start; }
body.vn-ui .wc-block-components-checkbox__input { width: 17px; height: 17px; accent-color: var(--accent); }
body.vn-ui .wc-block-components-checkbox__mark { fill: currentColor; }
body.vn-ui .wc-block-components-checkbox__label {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
body.vn-ui .wc-block-checkout__terms { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); }
body.vn-ui .wc-block-checkout__add-note { font-size: 13.5px; color: var(--accentd); }
body.vn-ui .wc-block-checkout__order-notes textarea {
  min-height: 110px;
  font-size: 14.5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

/* 6.5 侧栏订单摘要 */
body.vn-ui .wp-block-woocommerce-checkout-order-summary-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 18px;
}
body.vn-ui .wc-block-components-checkout-order-summary__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
body.vn-ui .wc-block-components-checkout-order-summary__title-text { flex: 1 1 auto; }
body.vn-ui .wc-block-components-checkout-order-summary__title-icon { width: 18px; height: 18px; fill: currentColor; }
body.vn-ui .wc-block-components-checkout-order-summary__title-price {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0;
  color: var(--accentd);
}
body.vn-ui .wc-block-components-checkout-order-summary__content { padding: 0; }

body.vn-ui .wc-block-components-order-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line2);
}
body.vn-ui .wc-block-components-order-summary-item__image {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  line-height: 0;
}
body.vn-ui .wc-block-components-order-summary-item__image img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
}
body.vn-ui .wc-block-components-order-summary-item__quantity {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  min-height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  box-shadow: none;
}
body.vn-ui .wc-block-components-order-summary-item__description {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}
body.vn-ui .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
body.vn-ui .wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
body.vn-ui .wc-block-components-order-summary-item__description .wc-block-components-product-metadata__description {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted2);
}
body.vn-ui .wc-block-components-order-summary-item__individual-prices,
body.vn-ui .wc-block-components-order-summary-item__individual-price {
  font-size: 13px;
  color: var(--muted);
}
body.vn-ui .wc-block-components-order-summary-item__total-price {
  flex: 0 0 auto;
  padding: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
body.vn-ui .wc-block-components-checkout-order-summary__content .wc-block-components-totals-item { padding: 14px 22px; }
body.vn-ui .wc-block-components-checkout-order-summary__content .wc-block-components-totals-footer-item {
  padding: 18px 22px;
  background: var(--bg2);
}

/* 6.6 下单按钮 */
body.vn-ui .wc-block-checkout__actions { margin: 0; }
body.vn-ui .wc-block-checkout__actions_row {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}
body.vn-ui .wc-block-components-checkout-place-order-button {
  width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.vn-ui .wc-block-components-checkout-place-order-button:hover {
  background: var(--accentd);
  border-color: var(--accentd);
  color: #fff;
}
body.vn-ui .wc-block-components-checkout-place-order-button--full-width { width: 100%; }

/* 6.7 下单成功页 */
body.vn-ui .wc-block-order-confirmation-status,
body.vn-ui .wc-block-order-confirmation-summary {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink2);
}
body.vn-ui .wc-block-order-confirmation-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 26px 28px;
  margin: 0 0 24px;
}
body.vn-ui .wc-block-order-confirmation-summary ul { list-style: none; margin: 0; padding: 0; }
body.vn-ui .wc-block-order-confirmation-summary li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line2);
}
body.vn-ui .wc-block-order-confirmation-summary li:last-child { border-bottom: 0; }
body.vn-ui .wc-block-order-confirmation-summary .wc-block-order-confirmation-summary-list-item__key { flex: 0 0 40%; color: var(--muted2); }
body.vn-ui .wc-block-order-confirmation-summary .wc-block-order-confirmation-summary-list-item__value { flex: 1 1 auto; color: var(--ink); }

/* ============================================================
   7. 我的账户
   ============================================================ */

/* 7.1 登录 / 注册表单：居中卡片 */
body.vn-ui.woocommerce-account .woocommerce:has(> form.woocommerce-form-login),
body.vn-ui.woocommerce-account .woocommerce:has(> form.woocommerce-form-register),
body.vn-ui.woocommerce-account .woocommerce:has(> .u-columns) { display: block; }
/* 页头已有标题，隐去表单上方重复的 “Login” 小标题 */
body.vn-ui.woocommerce-account .woocommerce:has(> form.woocommerce-form-login) > h2,
body.vn-ui.woocommerce-account .woocommerce:has(> form.woocommerce-form-register) > h2 { display: none; }
body.vn-ui.woocommerce-account .woocommerce > form.woocommerce-form-login,
body.vn-ui.woocommerce-account .woocommerce > form.woocommerce-form-register {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(26px, 3vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
}
body.vn-ui.woocommerce-account .woocommerce-form-login p:first-of-type,
body.vn-ui.woocommerce-account .woocommerce-form-register p:first-of-type {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 20px;
}
body.vn-ui.woocommerce-account .woocommerce-form-login .form-row,
body.vn-ui.woocommerce-account .woocommerce-form-register .form-row { margin: 0 0 18px; }
body.vn-ui.woocommerce-account .woocommerce-form-login label,
body.vn-ui.woocommerce-account .woocommerce-form-register label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted2);
}
body.vn-ui.woocommerce-account .woocommerce-form-login .woocommerce-Input,
body.vn-ui.woocommerce-account .woocommerce-form-register .woocommerce-Input {
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
body.vn-ui.woocommerce-account .woocommerce-form-login .woocommerce-Input:focus,
body.vn-ui.woocommerce-account .woocommerce-form-register .woocommerce-Input:focus {
  background: var(--paper);
  border-color: var(--accentl);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, .18);
}
body.vn-ui.woocommerce-account .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
body.vn-ui.woocommerce-account .woocommerce-form__input-checkbox {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}
body.vn-ui.woocommerce-account .woocommerce-form-login__submit,
body.vn-ui.woocommerce-account .woocommerce-form-register__submit {
  width: 100%;
  min-height: 52px;
}
body.vn-ui.woocommerce-account .woocommerce-LostPassword {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
}
body.vn-ui.woocommerce-account .woocommerce-LostPassword a { color: var(--muted); }
body.vn-ui.woocommerce-account .woocommerce-LostPassword a:hover { color: var(--accentd); }
/* 密码可见性切换：还原为行内图标按钮 */
body.vn-ui.woocommerce-account form.login .show-password-input,
body.vn-ui.woocommerce-account form.register .show-password-input {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted2);
  background: none;
  border: 0;
  box-shadow: none;
}
body.vn-ui.woocommerce-account form.login .show-password-input:hover,
body.vn-ui.woocommerce-account form.register .show-password-input:hover { background: none; color: var(--ink); }

/* 7.2 已登录：侧栏导航 + 内容 */
body.vn-ui.woocommerce-account .woocommerce {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 44px);
  align-items: flex-start;
}
body.vn-ui.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { flex: 0 0 100%; margin: 0 0 18px; }
body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation { flex: 0 0 clamp(200px, 21%, 244px); }
body.vn-ui.woocommerce-account .woocommerce-MyAccount-content { flex: 1 1 0; min-width: 0; }

body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
}
body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid var(--line2); }
body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: 0; }
body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--bg2);
  color: var(--ink);
}
body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}
body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--bg2);
  color: var(--ink);
}

body.vn-ui.woocommerce-account .woocommerce-MyAccount-content {
  padding: clamp(24px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink2);
}
body.vn-ui.woocommerce-account .woocommerce-MyAccount-content > h2,
body.vn-ui.woocommerce-account .woocommerce-MyAccount-content > h3 {
  font-size: clamp(19px, 2vw, 24px);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line2);
}
body.vn-ui.woocommerce-account .woocommerce-MyAccount-content > p { margin-bottom: 18px; }
body.vn-ui.woocommerce-account .woocommerce-MyAccount-content .button { margin-top: 6px; }

/* 7.3 账户内表单字段 */
body.vn-ui.woocommerce-account .form-row { margin: 0 0 18px; }
body.vn-ui.woocommerce-account .form-row label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted2);
}
body.vn-ui.woocommerce-account .woocommerce-Input,
body.vn-ui.woocommerce-account .form-row select,
body.vn-ui.woocommerce-account .select2-container .select2-selection--single {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
body.vn-ui.woocommerce-account .woocommerce-Input:focus {
  background: var(--paper);
  border-color: var(--accentl);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, .18);
}
body.vn-ui.woocommerce-account fieldset { border: 0; padding: 0; margin: 0 0 8px; }

/* 7.4 地址卡 */
body.vn-ui.woocommerce-account .woocommerce-Addresses,
body.vn-ui.woocommerce-account .addresses { display: grid; gap: 20px; }
body.vn-ui.woocommerce-account .woocommerce-Address {
  padding: 22px 24px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
body.vn-ui.woocommerce-account .woocommerce-Address-title h3 { font-size: 17px; margin: 0 0 12px; }
body.vn-ui.woocommerce-account .woocommerce-Address address { font-style: normal; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
body.vn-ui.woocommerce-account .woocommerce-Address .button { margin-top: 14px; }

/* 7.5 表格（订单 / 下载 / 地址） */
body.vn-ui.woocommerce-account table.shop_table,
body.vn-ui.woocommerce-account table.woocommerce-orders-table,
body.vn-ui.woocommerce-account table.woocommerce-MyAccount-orders,
body.vn-ui.woocommerce-account table.woocommerce-MyAccount-downloads {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line) !important;
  border-radius: var(--r2);
  overflow: hidden;
}
body.vn-ui.woocommerce-account table.shop_table th {
  padding: 13px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted2);
  text-align: left;
}
body.vn-ui.woocommerce-account table.shop_table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line2);
  font-size: 14px;
  color: var(--ink2);
}
body.vn-ui.woocommerce-account table.shop_table tr:first-child td { border-top: 0; }
body.vn-ui.woocommerce-account table.shop_table .button { font-size: 11.5px; padding: 11px 18px; }

/* ============================================================
   8. 响应式
   ============================================================ */
@media (max-width: 1024px) {
  body.vn-ui .wc-block-components-sidebar-layout .wc-block-components-main,
  body.vn-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    flex-basis: 100%;
    width: 100%;
  }
  body.vn-ui .wc-block-checkout__sidebar.is-sticky,
  body.vn-ui .wc-block-cart__sidebar.is-sticky { position: static; }
  body.vn-ui.woocommerce-account .woocommerce { flex-direction: column; }
  body.vn-ui.woocommerce-account .woocommerce-MyAccount-navigation,
  body.vn-ui.woocommerce-account .woocommerce-MyAccount-content { flex-basis: auto; width: 100%; }
  body.vn-ui .wc-block-grid__products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  body.vn-ui .wc-block-cart-items__row td { padding: 18px 16px; }
  body.vn-ui .wc-block-cart-item__image { width: 96px; }
  body.vn-ui .wc-block-cart-item__image img { width: 72px; height: 72px; }
  body.vn-ui .wc-block-cart-items__header th { padding: 13px 16px; }
  body.vn-ui .wc-block-components-totals-item,
  body.vn-ui .wc-block-components-totals-footer-item,
  body.vn-ui .wc-block-components-checkout-order-summary__content .wc-block-components-totals-item,
  body.vn-ui .wc-block-components-checkout-order-summary__content .wc-block-components-totals-footer-item,
  body.vn-ui .wc-block-cart__totals-title,
  body.vn-ui .wc-block-components-checkout-order-summary__title { padding-left: 18px; padding-right: 18px; }
  body.vn-ui .wc-block-components-order-summary-item { padding: 14px 18px; }
  body.vn-ui .wc-block-components-checkout-step { padding: 20px 18px; }
}

@media (max-width: 640px) {
  body.vn-ui .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  body.vn-ui .wc-block-grid__product-title { font-size: 14.5px; padding: 12px 14px 6px; }
  body.vn-ui .wc-block-grid__product-price,
  body.vn-ui .wc-block-grid__product .price { padding: 0 14px 12px; font-size: 15.5px; }
  body.vn-ui .wc-block-grid__product-add-to-cart { margin: auto 14px 0; }
  body.vn-ui .wc-block-components-checkout-step__title { font-size: 18px; }
  body.vn-ui .wc-block-checkout__actions_row { justify-content: stretch; }
  body.vn-ui.woocommerce-account .woocommerce-MyAccount-content { padding: 20px 18px; }
}

/* ---------- 9. 打印（免邮面单 / 订单页） ---------- */
@media print {
  body.vn-ui.woocommerce-cart .entry-header,
  body.vn-ui.woocommerce-checkout .entry-header,
  body.vn-ui.woocommerce-account .entry-header { display: none; }
}
