/* Arcpoly v2 - nền trắng cho các trang CŨ (giỏ hàng, tài khoản, đăng nhập, Asset Enscape, landing app...).
   Không nằm trong @layer => thắng mọi rule cũ (đều trong @layer). */

:root, [data-theme="light"] {
  --c-bg-0: #ffffff;
  --c-bg-1: #fafafa;
  --c-bg-2: #f3f3f3;
  --c-bg-3: #ebebeb;
  --c-border: #ececec;
  --c-border-hi: #cfcfcf;
  --c-divider: rgba(0,0,0,0.07);
  --c-text: #141414;
  --c-text-dim: #4a4a4a;
  --c-text-muted: #8a8a8a;
  --c-brand-soft: #fff1ed;
  --sh-xs: 0 1px 2px rgba(0,0,0,.04);
  --sh-sm: 0 2px 6px rgba(0,0,0,.05);
  --sh: 0 4px 14px rgba(0,0,0,.06);
  --sh-lg: 0 10px 30px rgba(0,0,0,.08);
  --sh-xl: 0 24px 56px rgba(0,0,0,.10);
  --sh-brand: 0 4px 16px rgba(245,77,45,.22);
  --backdrop: rgba(0,0,0,.35);
  --ff-display: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

html, body { background: #fff; color: #141414; }
/* Bỏ nền gradient + lưới chấm của bản tối */
body::before, body::after { display: none !important; content: none !important; }

/* Trang cũ: chừa khoảng thở dưới đầu trang mới */
.site-main { min-height: 50vh; }
.site-main > :not(.apx):first-child { margin-top: 0; }

/* Khung đánh giá bắt buộc đăng nhập (mu-plugin arcpoly-reviews-login) */
.review-gate { border: 1px dashed #f54d2d; background: #fff1ed; border-radius: 18px; padding: 24px; text-align: center; margin: 16px 0; }
.review-gate p { color: #4a4a4a; margin: 0 0 14px; }
.review-gate .btn { margin: 0 4px; }

/* Bỏ nền hồng / quầng sáng của bản cũ: trang chủ (.hero của home.css) + trang đăng nhập */
.apx .hero, .apx .page-head { background: none !important; }
.apx .hero::before, .apx .hero::after { display: none !important; }
.auth-page, .auth-page::before, .auth-page::after { background: none !important; }

/* Nút đổi tiền USD / VND (plugin WOOCS) - điện thoại: dời xuống dưới, không đè tiêu đề */
@media (max-width: 860px) {
  .woocs_auto_switcher { top: auto !important; bottom: 88px !important; transform: scale(.9); transform-origin: right bottom; }
}

/* Hộp thông báo WooCommerce (vd. "Bạn chưa có đơn hàng nào" + nút): canh hàng, nút gọn */
.woocommerce-account .woocommerce-info, .woocommerce-account .woocommerce-message, .woocommerce-account .woocommerce-error {
  display: flex !important; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px !important; border: 1px solid #ececec !important; border-left: 3px solid #f54d2d !important;
  border-radius: 14px !important; background: #fafafa !important; color: #141414 !important; line-height: 1.5;
}
.woocommerce-account .woocommerce-info::before, .woocommerce-account .woocommerce-message::before { display: none !important; }
.woocommerce-account .woocommerce-info .button, .woocommerce-account .woocommerce-message .button {
  order: 2; float: none !important; margin: 0 !important; display: inline-flex !important; align-items: center; justify-content: center;
  height: 40px !important; padding: 0 18px !important; line-height: 1 !important; border-radius: 999px !important;
  background: #f54d2d !important; color: #fff !important; font-weight: 600; font-size: 14px; box-shadow: none !important; white-space: nowrap;
}
.woocommerce-account .woocommerce-info .button:hover { background: #d83a1c !important; }
/* account.css cũ đặt viền trái var(--c-info) !important trong @layer (thắng mọi !important ngoài layer) => đổi chính biến */
.woocommerce-account .woocommerce-info, .woocommerce-account .woocommerce-message { --c-info: #f54d2d; }
/* Trang tài khoản dùng khối .apx bên trong cột nội dung WooCommerce */
.woocommerce-MyAccount-content > .apx { width: 100%; }
