/*!
 * Tedi Shop — hệ thiết kế (Giai đoạn 1: font, màu, nút, header, footer)
 * Nguồn: design-system/tedi-shop/MASTER.md
 * Nạp sau CSS của Flatsome và child theme TamBH (xem phase1/functions-snippet.php).
 * Không sửa logic thanh toán hay giao hàng; chỉ đổi giao diện.
 */

/* ==========================================================================
   1. Font Geist (giống gamikey.com), tự host: mỗi bộ ký tự một file biến thiên 400–700 (vietnamese, latin-ext, latin)
   ========================================================================== */
/* vietnamese */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/geist-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Token (xem design-system/tedi-shop/MASTER.md §1–3)
   ========================================================================== */
:root {
  --tedi-bg: #F5F7FB;
  --tedi-surface: #FFFFFF;
  --tedi-surface-soft: #EEF9E6;
  --tedi-border: #E3E8F2;
  --tedi-border-strong: #8A93A8;
  --tedi-fg: #131336;
  --tedi-fg-muted: #5B6478;
  --tedi-chrome: #1D2031;
  --tedi-chrome-line: #2C3048;
  --tedi-chrome-border: #4A5068;
  --tedi-chrome-fg: #FFFFFF;
  --tedi-chrome-muted: #AEB6C8;
  --tedi-primary: #5DC416;
  --tedi-on-primary: #131336;
  --tedi-primary-hover: #50B000;
  --tedi-link: #367B05;
  --tedi-link-hover: #2B6604;
  --tedi-sale: #C2410C;
  --tedi-danger: #DC2626;
  --tedi-warning: #B45309;
  --tedi-ring: #367B05;
  --tedi-ring-on-chrome: #5DC416;

  --tedi-font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --tedi-radius-sm: 8px;
  --tedi-radius-md: 12px;
  --tedi-radius-lg: 16px;
  --tedi-radius-pill: 999px;

  --tedi-shadow-sm: 0 1px 2px rgb(19 19 54 / .06);
  --tedi-shadow-md: 0 4px 12px rgb(19 19 54 / .08);
  --tedi-shadow-lg: 0 12px 32px rgb(19 19 54 / .12);

  --tedi-dur: .15s;
}

/* ==========================================================================
   3. Chữ: Geist thay Roboto
   Flatsome in CSS Customizer sau file này, nên mọi rule gắn body.theme-flatsome
   để thắng mà không cần !important.
   ========================================================================== */
body.theme-flatsome,
body.theme-flatsome button,
body.theme-flatsome input,
body.theme-flatsome select,
body.theme-flatsome textarea,
body.theme-flatsome .button,
body.theme-flatsome h1, body.theme-flatsome h2, body.theme-flatsome h3,
body.theme-flatsome h4, body.theme-flatsome h5, body.theme-flatsome h6,
body.theme-flatsome .heading-font,
body.theme-flatsome .alt-font,
body.theme-flatsome .nav > li > a,
body.theme-flatsome .nav-vertical > li > a {
  font-family: var(--tedi-font);
}

body.theme-flatsome {
  color: var(--tedi-fg);
}

body.theme-flatsome .woocommerce-Price-amount,
body.theme-flatsome .price {
  font-variant-numeric: tabular-nums;
}

/* Focus nhìn thấy được khi dùng bàn phím */
body.theme-flatsome a:focus-visible,
body.theme-flatsome button:focus-visible,
body.theme-flatsome input:focus-visible,
body.theme-flatsome select:focus-visible,
body.theme-flatsome textarea:focus-visible,
body.theme-flatsome .button:focus-visible {
  outline: 2px solid var(--tedi-ring);
  outline-offset: 2px;
}

/* ==========================================================================
   4. Nút
   Nút chính: nền xanh logo, chữ navy (8,0:1). Thay nút #81D742 chữ trắng (1,8:1).
   ========================================================================== */
body.theme-flatsome .button.alt,
body.theme-flatsome .button.checkout,
body.theme-flatsome .checkout-button,
body.theme-flatsome #place_order,
body.theme-flatsome .buy_now_button,
body.theme-flatsome .woocommerce-button.pay,
body.theme-flatsome .woocommerce-Button--next,
body.theme-flatsome .woocommerce-Button--previous,
body.theme-flatsome .woocommerce-MyAccount-content .button.wc-forward,
body.theme-flatsome .woocommerce-EditAccountForm .button,
body.theme-flatsome .woocommerce-form-login .button,
body.theme-flatsome .woocommerce-form-register .button {
  background-color: var(--tedi-primary);
  background-image: none;
  color: var(--tedi-on-primary);
  border: 1px solid transparent;
  border-radius: var(--tedi-radius-md);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  min-height: 44px;
  box-shadow: none;
  text-shadow: none;
  transition: background-color var(--tedi-dur) ease, border-color var(--tedi-dur) ease, color var(--tedi-dur) ease;
}

body.theme-flatsome .button.alt:hover,
body.theme-flatsome .button.checkout:hover,
body.theme-flatsome .checkout-button:hover,
body.theme-flatsome #place_order:hover,
body.theme-flatsome .buy_now_button:hover,
body.theme-flatsome .woocommerce-button.pay:hover,
body.theme-flatsome .woocommerce-Button--next:hover,
body.theme-flatsome .woocommerce-Button--previous:hover,
body.theme-flatsome .woocommerce-MyAccount-content .button.wc-forward:hover,
body.theme-flatsome .woocommerce-EditAccountForm .button:hover,
body.theme-flatsome .woocommerce-form-login .button:hover,
body.theme-flatsome .woocommerce-form-register .button:hover {
  background-color: var(--tedi-primary-hover);
  color: var(--tedi-on-primary);
  box-shadow: none;
}

/* Nút phụ: nền trắng, viền đạt 3:1.
   ".button.single_add_to_cart_button" vì nút này cũng có class "alt" (kiểu nút chính);
   cùng độ ưu tiên, rule đứng sau thắng. */
body.theme-flatsome .button.single_add_to_cart_button,
body.theme-flatsome .woocommerce-button.view,
body.theme-flatsome .woocommerce-cart-form .button[name="update_cart"],
body.theme-flatsome .woocommerce-cart-form .button[name="apply_coupon"],
body.theme-flatsome .checkout_coupon .button {
  background-color: var(--tedi-surface);
  background-image: none;
  color: var(--tedi-fg);
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  min-height: 44px;
  box-shadow: none;
  text-shadow: none;
  transition: background-color var(--tedi-dur) ease, border-color var(--tedi-dur) ease;
}

body.theme-flatsome .button.single_add_to_cart_button:hover,
body.theme-flatsome .woocommerce-button.view:hover,
body.theme-flatsome .woocommerce-cart-form .button[name="update_cart"]:hover,
body.theme-flatsome .woocommerce-cart-form .button[name="apply_coupon"]:hover,
body.theme-flatsome .checkout_coupon .button:hover {
  background-color: var(--tedi-bg);
  border-color: var(--tedi-fg);
  color: var(--tedi-fg);
  box-shadow: none;
}

/* Hủy đơn: chữ đỏ trên nền trắng (4,8:1) */
body.theme-flatsome .woocommerce-button.cancel {
  background: var(--tedi-surface);
  color: var(--tedi-danger);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-md);
  font-weight: 600;
  text-transform: none;
  min-height: 44px;
  box-shadow: none;
}

body.theme-flatsome .woocommerce-button.cancel:hover {
  border-color: var(--tedi-danger);
  background: var(--tedi-surface);
  color: var(--tedi-danger);
}

/* Nút bị tắt (ví dụ chưa chọn phiên bản) */
body.theme-flatsome .button.disabled,
body.theme-flatsome .button:disabled,
body.theme-flatsome .button[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* ==========================================================================
   5. Header máy tính
   ========================================================================== */
body.theme-flatsome .header-bg-color,
body.theme-flatsome .header-bottom {
  background-color: var(--tedi-chrome);
}

/* Ô tìm kiếm: nền trắng thay viền tím trong suốt */
body.theme-flatsome .header-search-form input.search-field {
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  border: 0;
  border-radius: var(--tedi-radius-md);
  box-shadow: none;
  height: 48px;
  font-size: 16px;
}

body.theme-flatsome .header-search-form input.search-field::placeholder {
  color: var(--tedi-fg-muted);
  opacity: 1;
}

body.theme-flatsome .header-search-form .ux-search-submit {
  color: var(--tedi-fg-muted);
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.theme-flatsome .header-search-form .ux-search-submit:hover {
  color: var(--tedi-fg);
}

body.theme-flatsome .header-search-form input.search-field:focus-visible {
  outline: 2px solid var(--tedi-ring-on-chrome);
  outline-offset: 2px;
}

/* Bỏ vòng sáng 4px của TamBH (style.css .header-nav-main > li) — chồng lên viền nút thành 2 vòng lệch */
body.theme-flatsome .flex-col.flex-right .header-nav-main > li {
  box-shadow: none;
  border-radius: var(--tedi-radius-md);
}

/* TamBH còn vẽ khung 3px bo 16px + bóng đổ bằng a:before (style.css "cart icon") — lệch với viền 12px mới */
body.theme-flatsome .flex-col.flex-right .header-nav-main > li > a::before {
  content: none;
  display: none;
}

/* Tài khoản, Giỏ hàng: viền mảnh, chữ trắng */
body.theme-flatsome .header-main a.account-link,
body.theme-flatsome .header-main a.header-cart-link {
  background-color: transparent;
  background-image: none;
  color: var(--tedi-chrome-fg);
  border: 1px solid var(--tedi-chrome-border);
  border-radius: var(--tedi-radius-md);
  min-height: 48px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
  transition: border-color var(--tedi-dur) ease, color var(--tedi-dur) ease;
}

body.theme-flatsome .header-main a.account-link:hover,
body.theme-flatsome .header-main a.header-cart-link:hover {
  border-color: var(--tedi-chrome-muted);
  color: var(--tedi-chrome-fg);
}

body.theme-flatsome .header-main a.account-link:focus-visible,
body.theme-flatsome .header-main a.header-cart-link:focus-visible {
  outline-color: var(--tedi-ring-on-chrome);
}

/* Số lượng trên giỏ hàng: nền xanh, chữ navy */
body.theme-flatsome .header-main a.header-cart-link [data-icon-label]::after {
  background-color: var(--tedi-primary);
  color: var(--tedi-on-primary);
  font-weight: 700;
  box-shadow: none;
}

/* Nút Danh mục: xanh đặc, chữ navy, giữ quầng sáng nhẹ chỉ cho nút này */
body.theme-flatsome .header-vertical-menu__opener {
  background-color: var(--tedi-primary);
  background-image: none;
  color: var(--tedi-on-primary);
  border-radius: var(--tedi-radius-md);
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 0 4px rgb(93 196 22 / .22);
  transition: background-color var(--tedi-dur) ease;
}

body.theme-flatsome .header-vertical-menu__opener:hover {
  background-color: var(--tedi-primary-hover);
}

body.theme-flatsome .header-vertical-menu__opener .header-vertical-menu__title,
body.theme-flatsome .header-vertical-menu__opener i {
  color: var(--tedi-on-primary);
}

/* Hàng menu dưới: thấp hơn, chữ 15px */
body.theme-flatsome .header-bottom {
  border-top: 1px solid var(--tedi-chrome-line);
}

/* Font mới khác độ rộng Roboto: bỏ margin của Flatsome, dùng gap cố định
   để 6 mục + nút Danh mục vẫn nằm trên một dòng trong khung 1190px (đã đo: cần 1142px). */
body.theme-flatsome .header-bottom-nav {
  flex-wrap: nowrap;
  column-gap: 20px;
}

body.theme-flatsome .header-bottom-nav > li {
  margin: 0;
  flex-shrink: 0;
}

body.theme-flatsome .header-bottom-nav > li > a.nav-top-link {
  color: var(--tedi-chrome-fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--tedi-dur) ease;
}

body.theme-flatsome .header-bottom-nav > li > a.nav-top-link:hover,
body.theme-flatsome .header-bottom-nav > li.active > a.nav-top-link,
body.theme-flatsome .header-bottom-nav > li.current-menu-item > a.nav-top-link {
  color: var(--tedi-primary);
}

body.theme-flatsome .header-bottom-nav > li > a.nav-top-link:focus-visible {
  outline-color: var(--tedi-ring-on-chrome);
}

/* Icon menu: thay ảnh màu bằng icon nét (Lucide), cùng màu chữ phụ.
   Gắn theo id mục menu hiện tại; mục mới thêm sẽ giữ icon ảnh cho tới khi được thêm vào đây. */
body.theme-flatsome .header-bottom-nav > li:is(#menu-item-166, #menu-item-167, #menu-item-168, #menu-item-173, #menu-item-174, #menu-item-169) > a > img.ux-menu-icon {
  display: none;
}

body.theme-flatsome .header-bottom-nav > li:is(#menu-item-166, #menu-item-167, #menu-item-168, #menu-item-173, #menu-item-174, #menu-item-169) > a::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: var(--tedi-chrome-muted);
  -webkit-mask: var(--tedi-menu-icon) center / contain no-repeat;
  mask: var(--tedi-menu-icon) center / contain no-repeat;
}

/* Game Steam: tay cầm */
body.theme-flatsome #menu-item-166 > a { --tedi-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' x2='10' y1='11' y2='11'/%3E%3Cline x1='8' x2='8' y1='9' y2='13'/%3E%3Cline x1='15' x2='15.01' y1='12' y2='12'/%3E%3Cline x1='18' x2='18.01' y1='10' y2='10'/%3E%3Cpath d='M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z'/%3E%3C/svg%3E"); }
/* Game Online: quả cầu */
body.theme-flatsome #menu-item-167 > a { --tedi-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E"); }
/* Xbox Game Pass: ô vuông */
body.theme-flatsome #menu-item-168 > a { --tedi-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M9 9h6v6H9z'/%3E%3C/svg%3E"); }
/* Tài khoản Full Thông Tin: người có dấu tích */
body.theme-flatsome #menu-item-173 > a { --tedi-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpolyline points='16 11 18 13 22 9'/%3E%3C/svg%3E"); }
/* Combo nhiều Game: các lớp */
body.theme-flatsome #menu-item-174 > a { --tedi-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3C/svg%3E"); }
/* Làm việc, học tập: cặp tài liệu */
body.theme-flatsome #menu-item-169 > a { --tedi-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3Crect width='20' height='14' x='2' y='6' rx='2'/%3E%3C/svg%3E"); }

/* ==========================================================================
   6. Footer
   ========================================================================== */
body.theme-flatsome #footer a {
  color: var(--tedi-chrome-muted);
  transition: color var(--tedi-dur) ease;
}

body.theme-flatsome #footer a:hover {
  color: var(--tedi-chrome-fg);
}

body.theme-flatsome #footer a:focus-visible {
  outline-color: var(--tedi-ring-on-chrome);
}

/* Tiêu đề cột footer: bỏ viết hoa toàn bộ */
body.theme-flatsome #footer h3,
body.theme-flatsome #footer .widget-title,
body.theme-flatsome #footer .section-title {
  color: var(--tedi-chrome-fg);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

body.theme-flatsome .absolute-footer {
  background-color: var(--tedi-chrome);
  border-top: 1px solid var(--tedi-chrome-line);
  color: var(--tedi-chrome-muted);
}

/* ==========================================================================
   6b. Sửa sau khi xem staging (2026-11-08)
   ========================================================================== */

/* Header: TamBH đổi nền nút Tài khoản / Giỏ hàng sang #E3E8FF khi rê chuột,
   chữ trắng bị trùng nền. Giữ nền tối, chỉ sáng nhẹ. */
body.theme-flatsome .header-main a.account-link:hover,
body.theme-flatsome .header-main a.header-cart-link:hover {
  background-color: rgb(255 255 255 / .08);
  color: var(--tedi-chrome-fg);
}

/* Menu thả xuống của Tài khoản */
body.theme-flatsome .account-item .nav-dropdown {
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-md);
  box-shadow: var(--tedi-shadow-lg);
}

body.theme-flatsome .account-item .nav-dropdown > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: var(--tedi-radius-sm);
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--tedi-dur) ease;
}

body.theme-flatsome .account-item .nav-dropdown > li > a:hover,
body.theme-flatsome .account-item .nav-dropdown > li.is-active > a {
  background-color: var(--tedi-surface-soft);
  color: var(--tedi-fg);
}

body.theme-flatsome .account-item .nav-dropdown > li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--tedi-border);
}

body.theme-flatsome .account-item .nav-dropdown > li.woocommerce-MyAccount-navigation-link--customer-logout > a {
  color: var(--tedi-fg-muted);
}

/* Nút thanh toán: TamBH tô gradient cam, đổi về nút chính */
body.theme-flatsome a.checkout-button.button.alt.wc-forward,
body.theme-flatsome button#place_order {
  background: var(--tedi-primary);
  color: var(--tedi-on-primary);
  border-radius: var(--tedi-radius-md);
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
}

body.theme-flatsome a.checkout-button.button.alt.wc-forward:hover,
body.theme-flatsome button#place_order:hover {
  background: var(--tedi-primary-hover);
  color: var(--tedi-on-primary);
}

/* Nút phụ: Tiếp tục xem sản phẩm, Áp dụng mã */
body.theme-flatsome a.button-continue-shopping.button,
body.theme-flatsome button.button[name="apply_coupon"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

body.theme-flatsome a.button-continue-shopping.button:hover,
body.theme-flatsome button.button[name="apply_coupon"]:hover {
  background: var(--tedi-bg);
  border-color: var(--tedi-fg);
  color: var(--tedi-fg);
}

/* Ô nhập và ô chọn: cao 44px, viền 3:1, bo 12px như nút */
body.theme-flatsome .variations select,
body.theme-flatsome input#coupon_code,
body.theme-flatsome .checkout_coupon .input-text,
body.theme-flatsome .woocommerce-checkout .form-row .input-text,
body.theme-flatsome .woocommerce-checkout .form-row select,
body.theme-flatsome .woocommerce-MyAccount-content .input-text,
body.theme-flatsome .woocommerce-form-login .input-text,
body.theme-flatsome .woocommerce-form-register .input-text {
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--tedi-fg);
  background-color: var(--tedi-surface);
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  box-shadow: none;
}

body.theme-flatsome .variations select,
body.theme-flatsome .woocommerce-checkout .form-row select {
  padding-right: 40px;
}

body.theme-flatsome .woocommerce-checkout .form-row textarea.input-text {
  height: auto;
  min-height: 96px;
  padding: 10px 16px;
}

body.theme-flatsome .variations select:focus,
body.theme-flatsome input#coupon_code:focus,
body.theme-flatsome .woocommerce form .input-text:focus {
  border-color: var(--tedi-fg);
  box-shadow: none;
}

body.theme-flatsome .variations td,
body.theme-flatsome .variations th {
  vertical-align: middle;
}

body.theme-flatsome .variations .label label {
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome .variations .reset_variations {
  color: var(--tedi-link);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

/* Khung mua đặt trên ảnh nền tối (.dark): nhãn trắng, "Xóa" xám sáng */
body.theme-flatsome .dark .variations .label label {
  color: var(--tedi-chrome-fg);
}

body.theme-flatsome .dark .variations .reset_variations {
  color: var(--tedi-chrome-muted);
}

body.theme-flatsome .dark .variations .reset_variations:hover {
  color: var(--tedi-chrome-fg);
}

/* Bộ chọn số lượng: một khối liền, nút - và + trong suốt */
body.theme-flatsome .ux-quantity.quantity {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  overflow: hidden;
  vertical-align: middle;
}

body.theme-flatsome .ux-quantity.quantity .ux-quantity__button {
  width: 40px;
  min-width: 40px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tedi-fg);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  transition: background-color var(--tedi-dur) ease;
}

body.theme-flatsome .ux-quantity.quantity .ux-quantity__button:hover {
  background: var(--tedi-bg);
  color: var(--tedi-fg);
}

body.theme-flatsome .ux-quantity.quantity input.qty {
  width: 44px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--tedi-border);
  border-right: 1px solid var(--tedi-border);
  border-radius: 0;
  background: transparent;
  color: var(--tedi-fg);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}

/* Trang sản phẩm: số lượng cao bằng nút Thêm vào giỏ hàng */
body.theme-flatsome form.cart .ux-quantity.quantity {
  height: 44px;
  margin-right: 12px;
}

/* Bảng giỏ hàng: tiêu đề cột không xuống dòng */
body.theme-flatsome .shop_table thead th {
  white-space: nowrap;
  letter-spacing: 0;
  color: var(--tedi-fg-muted);
  font-weight: 600;
}

/* ==========================================================================
   8. Khu vực tài khoản (Giai đoạn 2)
   ========================================================================== */

body.woocommerce-account .woocommerce:has(> .tedi-account-side) {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 24px 0 48px;
}

body.woocommerce-account .woocommerce:has(> .tedi-account-side) > .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  min-width: 0;
}

body.theme-flatsome .tedi-account-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

body.theme-flatsome .tedi-account-user,
body.theme-flatsome .tedi-account-nav,
body.theme-flatsome .tedi-account-card,
body.theme-flatsome .tedi-account-tile,
body.theme-flatsome .tedi-account-promise {
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
}

body.theme-flatsome .tedi-account-user {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.theme-flatsome .tedi-account-user__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-flatsome .tedi-account-user__avatar {
  flex: 0 0 44px;
  height: 44px;
  border-radius: var(--tedi-radius-pill);
  background: var(--tedi-surface-soft);
  color: var(--tedi-link);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.theme-flatsome .tedi-account-user__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.theme-flatsome .tedi-account-user__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--tedi-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-flatsome .tedi-account-user__meta,
body.theme-flatsome .tedi-muted {
  font-size: 13px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-orders-table__name .tedi-muted,
body.theme-flatsome .tedi-account-recent__name .tedi-muted {
  display: block;
  margin-top: 2px;
}

body.theme-flatsome .tedi-account-wallet-mini {
  background: var(--tedi-bg);
  border-radius: var(--tedi-radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.theme-flatsome .tedi-account-wallet-mini__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.theme-flatsome .tedi-account-wallet-mini__text span {
  font-size: 13px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-account-wallet-mini__text strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--tedi-fg);
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome .tedi-account-wallet-mini a,
body.theme-flatsome .tedi-account-tile__link,
body.theme-flatsome .tedi-account-card__head a,
body.theme-flatsome .tedi-account-help a,
body.theme-flatsome .tedi-account-empty a:not(.button),
body.theme-flatsome .tedi-link {
  color: var(--tedi-link);
  font-size: 14px;
  font-weight: 600;
}

body.theme-flatsome .tedi-account-wallet-mini a:hover,
body.theme-flatsome .tedi-account-tile__link:hover,
body.theme-flatsome .tedi-account-card__head a:hover,
body.theme-flatsome .tedi-account-help a:hover,
body.theme-flatsome .tedi-link:hover {
  color: var(--tedi-link-hover);
  text-decoration: underline;
}

/* Menu bên trái */
body.theme-flatsome .tedi-account-nav {
  padding: 8px;
}

body.theme-flatsome .tedi-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.theme-flatsome .tedi-account-nav li {
  margin: 0;
}

body.theme-flatsome .tedi-account-nav a {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--tedi-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--tedi-dur) ease;
}

body.theme-flatsome .tedi-account-nav a:hover {
  background: var(--tedi-bg);
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-account-nav .tedi-account-nav__icon {
  flex: 0 0 18px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-account-nav li.is-active > a {
  background: var(--tedi-surface-soft);
  font-weight: 600;
}

body.theme-flatsome .tedi-account-nav li.is-active .tedi-account-nav__icon {
  color: var(--tedi-link);
}

body.theme-flatsome .tedi-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--tedi-border);
}

body.theme-flatsome .tedi-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--tedi-fg-muted);
}

/* Khung nội dung */
body.theme-flatsome .tedi-account-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-account-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.theme-flatsome .tedi-account-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-account-sub {
  font-size: 14px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-account-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

body.theme-flatsome .tedi-account-tile {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

body.theme-flatsome .tedi-account-tile__label {
  font-size: 14px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-account-tile__value {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome .tedi-account-tile__note {
  font-size: 14px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-account-tile .tedi-account-tile__button {
  margin: 0;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 40px;
}

body.theme-flatsome .tedi-account-card {
  overflow: hidden;
}

body.theme-flatsome .tedi-account-card__head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tedi-border);
}

body.theme-flatsome .tedi-account-card__head a {
  white-space: nowrap;
}

body.theme-flatsome .tedi-account-card__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome .tedi-account-recent {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

body.theme-flatsome .tedi-account-recent td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--tedi-border);
  font-size: 15px;
  vertical-align: middle;
}

body.theme-flatsome .tedi-account-recent tr:last-child td {
  border-bottom: 0;
}

body.theme-flatsome .tedi-account-recent td:first-child {
  padding-left: 20px;
  width: 110px;
  font-weight: 600;
}

body.theme-flatsome .tedi-account-recent td:last-child,
body.theme-flatsome .tedi-num {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.theme-flatsome .tedi-account-recent td:last-child {
  padding-right: 20px;
}

body.theme-flatsome .tedi-account-empty {
  margin: 0;
  padding: 20px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-account-promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

body.theme-flatsome .tedi-account-promise {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-flatsome .tedi-account-promise svg {
  flex: 0 0 24px;
  color: var(--tedi-link);
}

body.theme-flatsome .tedi-account-promise div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.theme-flatsome .tedi-account-promise strong {
  font-weight: 600;
}

body.theme-flatsome .tedi-account-promise span {
  font-size: 14px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-account-help,
body.theme-flatsome .tedi-account-note {
  margin: 0;
  font-size: 14px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-account-note {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-flatsome .tedi-account-note svg {
  flex: 0 0 18px;
}

/* Nhãn trạng thái đơn (MASTER §4) */
body.theme-flatsome .tedi-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--tedi-radius-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

body.theme-flatsome .tedi-badge--ok { background: var(--tedi-surface-soft); color: var(--tedi-link); }
body.theme-flatsome .tedi-badge--warn { background: #FFF7ED; color: var(--tedi-warning); }
body.theme-flatsome .tedi-badge--hold { background: var(--tedi-border); color: var(--tedi-fg); }
body.theme-flatsome .tedi-badge--muted { background: var(--tedi-bg); color: var(--tedi-fg-muted); box-shadow: inset 0 0 0 1px var(--tedi-border); }

/* Chip lọc */
body.theme-flatsome .tedi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-flatsome .tedi-chip {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-pill);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--tedi-dur) ease, border-color var(--tedi-dur) ease;
}

body.theme-flatsome .tedi-chip:hover {
  border-color: var(--tedi-fg);
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-chip__count {
  color: var(--tedi-fg-muted);
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome .tedi-chip.is-active {
  background: var(--tedi-fg);
  border-color: var(--tedi-fg);
  color: #FFFFFF;
  font-weight: 600;
}

body.theme-flatsome .tedi-chip.is-active .tedi-chip__count {
  color: rgb(255 255 255 / .75);
}

/* Bảng đơn hàng */
body.theme-flatsome .tedi-orders-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

body.theme-flatsome .tedi-orders-table thead th {
  padding: 12px 8px;
  background: var(--tedi-bg);
  border-bottom: 1px solid var(--tedi-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--tedi-fg-muted);
  text-align: left;
}

body.theme-flatsome .tedi-orders-table thead th {
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome .tedi-orders-table thead th.tedi-num {
  text-align: right;
}

body.theme-flatsome .tedi-orders-table thead th:first-child,
body.theme-flatsome .tedi-orders-table td:first-child {
  padding-left: 20px;
}

body.theme-flatsome .tedi-orders-table thead th:last-child,
body.theme-flatsome .tedi-orders-table td:last-child {
  padding-right: 20px;
}

body.theme-flatsome .tedi-orders-table td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--tedi-border);
  font-size: 15px;
  vertical-align: top;
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-orders-table tbody tr:last-child td {
  border-bottom: 0;
}

body.theme-flatsome .tedi-orders-table__no a {
  display: block;
  font-weight: 600;
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-orders-table__no time {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-orders-table__buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

body.theme-flatsome .tedi-btn-secondary,
body.theme-flatsome .tedi-orders-table__buttons .button.tedi-btn-primary,
body.theme-flatsome .tedi-library__action .button.tedi-btn-primary {
  min-height: 40px;
  min-width: 132px;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--tedi-radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.theme-flatsome .tedi-btn-secondary {
  border: 1px solid var(--tedi-border-strong);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  transition: background-color var(--tedi-dur) ease, border-color var(--tedi-dur) ease;
}

body.theme-flatsome .tedi-btn-secondary:hover {
  background: var(--tedi-bg);
  border-color: var(--tedi-fg);
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-orders-table__buttons .tedi-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

body.theme-flatsome .tedi-link--cancel {
  color: var(--tedi-fg-muted);
  font-weight: 500;
}

body.theme-flatsome .tedi-pagination {
  padding: 12px 20px;
  border-top: 1px solid var(--tedi-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.theme-flatsome .tedi-pagination nav {
  display: flex;
  gap: 8px;
}

body.theme-flatsome .tedi-page {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body.theme-flatsome .tedi-page.is-active {
  background: var(--tedi-fg);
  border-color: var(--tedi-fg);
  color: #FFFFFF;
}

body.theme-flatsome .tedi-account-empty-card {
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

body.theme-flatsome .tedi-account-empty-card .button {
  margin: 0;
}

/* Thông báo xác nhận email của WooCommerce trên trang Đơn hàng */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
  margin: 0;
  padding: 14px 16px 14px 20px;
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
  color: var(--tedi-fg);
  font-size: 14px;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .message-container {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .message-container .button.wc-forward {
  order: 2;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 40px;
  margin: 0 0 0 auto;
  padding: 0 14px;
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

/* Thư viện */
body.theme-flatsome .tedi-library__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-flatsome .tedi-library__item {
  margin: 0;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 180px 132px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--tedi-border);
}

body.theme-flatsome .tedi-library__item:last-child {
  border-bottom: 0;
}

body.theme-flatsome .tedi-library__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-border);
  overflow: hidden;
}

body.theme-flatsome .tedi-library__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.theme-flatsome .tedi-library__main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.theme-flatsome .tedi-library__name {
  font-weight: 600;
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-library__item.is-expired .tedi-library__name {
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-library__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-tag {
  padding: 2px 8px;
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-pill);
  background: var(--tedi-bg);
  color: var(--tedi-fg);
  font-weight: 500;
}

body.theme-flatsome .tedi-library__state {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-library__state small {
  font-size: 13px;
  font-weight: 400;
}

body.theme-flatsome .tedi-library__state--ok span { color: var(--tedi-link); }
body.theme-flatsome .tedi-library__state--warn span { color: var(--tedi-warning); }
body.theme-flatsome .tedi-library__state--plain span { color: var(--tedi-fg); font-weight: 500; }

body.theme-flatsome .tedi-library__action {
  display: flex;
  justify-content: flex-end;
}

/* Trang Ví, Mã giảm giá, Cài đặt: chỉ đồng bộ khung và chữ */
body.woocommerce-account .woocommerce-MyAccount-content .tedi-account-wallet,
body.woocommerce-account .woocommerce-MyAccount-content .wt-mycoupons,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
  padding: 20px;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--tedi-border);
}

body.woocommerce-account .woocommerce-EditAccountForm legend {
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--tedi-fg);
}

body.woocommerce-account .woocommerce-MyAccount-content label {
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 600;
}

/* Điện thoại và máy tính bảng */
@media (max-width: 849px) {
  body.woocommerce-account .woocommerce:has(> .tedi-account-side) {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 16px;
  }

  body.theme-flatsome .tedi-account-side {
    position: static;
  }

  body.theme-flatsome .tedi-account-nav {
    padding: 6px;
  }

  body.theme-flatsome .tedi-account-nav ul {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.theme-flatsome .tedi-account-nav ul::-webkit-scrollbar {
    display: none;
  }

  body.theme-flatsome .tedi-account-nav a {
    white-space: nowrap;
    gap: 8px;
  }

  body.theme-flatsome .tedi-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.theme-flatsome .tedi-account-title {
    font-size: 24px;
  }

  body.theme-flatsome .tedi-orders-table thead {
    display: none;
  }

  body.theme-flatsome .tedi-orders-table,
  body.theme-flatsome .tedi-orders-table tbody,
  body.theme-flatsome .tedi-orders-table tr,
  body.theme-flatsome .tedi-orders-table td {
    display: block;
    width: 100%;
  }

  body.theme-flatsome .tedi-orders-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--tedi-border);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  body.theme-flatsome .tedi-orders-table td,
  body.theme-flatsome .tedi-orders-table td:first-child,
  body.theme-flatsome .tedi-orders-table td:last-child {
    padding: 0;
    border: 0;
  }

  body.theme-flatsome .tedi-orders-table td.tedi-orders-table__name,
  body.theme-flatsome .tedi-orders-table td.tedi-orders-table__actions {
    grid-column: 1 / -1;
  }

  body.theme-flatsome .tedi-orders-table__buttons {
    justify-content: flex-start;
  }

  body.theme-flatsome .tedi-library__item {
    padding: 14px 16px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px 12px;
  }

  body.theme-flatsome .tedi-library__state,
  body.theme-flatsome .tedi-library__action {
    grid-column: 2;
  }

  body.theme-flatsome .tedi-library__action {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   8b. Thông báo trong tài khoản, ngăn giỏ hàng
   ========================================================================== */

/* Thông báo thành công (vd. "Đã gửi link xác nhận…") cùng kiểu khung với thông báo khác */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message {
  margin: 0;
  padding: 14px 16px 14px 20px;
  background: var(--tedi-surface-soft);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
  color: var(--tedi-fg);
  font-family: var(--tedi-font);
  font-size: 14px;
  font-weight: 500;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .message-container {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--tedi-fg);
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .message-container i,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .message-container [class^="icon-"] {
  color: var(--tedi-link);
  font-size: 16px;
}

/* Ngăn giỏ hàng bên phải */
body.theme-flatsome #cart-popup .cart-popup-inner {
  background: var(--tedi-surface);
  color: var(--tedi-fg);
}

body.theme-flatsome #cart-popup .cart-popup-title {
  text-align: left;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tedi-border);
  margin-bottom: 8px;
}

body.theme-flatsome #cart-popup .cart-popup-title > span {
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tedi-fg);
}

body.theme-flatsome #cart-popup .cart-popup-title .is-divider {
  display: none;
}

body.theme-flatsome #cart-popup .mini_cart_item {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tedi-border);
}

body.theme-flatsome #cart-popup .mini_cart_item a:not(.remove) {
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

body.theme-flatsome #cart-popup .mini_cart_item a:not(.remove):hover {
  color: var(--tedi-link);
}

body.theme-flatsome #cart-popup .mini_cart_item img {
  border-radius: var(--tedi-radius-sm);
}

body.theme-flatsome #cart-popup .mini_cart_item a.remove {
  width: 28px;
  height: 28px;
  line-height: 26px;
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-pill);
  color: var(--tedi-fg-muted) !important;
  background: var(--tedi-surface);
  font-size: 16px;
}

body.theme-flatsome #cart-popup .mini_cart_item a.remove:hover {
  border-color: var(--tedi-danger);
  color: var(--tedi-danger) !important;
  background: var(--tedi-surface);
}

body.theme-flatsome #cart-popup .ux-mini-cart-qty .product-subtotal,
body.theme-flatsome #cart-popup .mini_cart_item .amount {
  color: var(--tedi-fg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome #cart-popup .ux-mini-cart-qty .ux-quantity.quantity {
  height: 40px;
}

body.theme-flatsome #cart-popup .ux-mini-cart-footer {
  background: var(--tedi-surface);
  border-top: 1px solid var(--tedi-border);
}

body.theme-flatsome #cart-popup .woocommerce-mini-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: var(--tedi-fg);
  font-size: 16px;
}

body.theme-flatsome #cart-popup .woocommerce-mini-cart__total strong {
  font-weight: 600;
}

body.theme-flatsome #cart-popup .woocommerce-mini-cart__total .amount {
  font-size: 18px;
}

body.theme-flatsome #cart-popup .woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-flatsome #cart-popup .woocommerce-mini-cart__buttons .button {
  width: 100%;
  margin: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tedi-radius-md);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome #cart-popup .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) {
  background: var(--tedi-surface);
  background-image: none;
  color: var(--tedi-fg);
  border: 1px solid var(--tedi-border-strong);
  box-shadow: none;
}

body.theme-flatsome #cart-popup .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout):hover {
  background: var(--tedi-bg);
  border-color: var(--tedi-fg);
}

/* ==========================================================================
   8c. Menu "Danh mục" (khối UX Block mega-menu-danh-muc)
   TamBH tô khung navy trong suốt + lớp phủ tối toàn màn hình (che cả header).
   Đổi sang khung trắng; lớp làm mờ nhạt hơn và chỉ nằm dưới mép trên của khung.
   ========================================================================== */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out {
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  border: 1px solid var(--tedi-border);
  border-radius: 0 0 var(--tedi-radius-lg) var(--tedi-radius-lg);
  box-shadow: var(--tedi-shadow-lg), 0 0 0 100vmax rgb(19 19 54 / .35);
  clip-path: inset(0 -100vmax -100vmax -100vmax);
  padding: 28px 32px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out::before {
  display: none;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out h3,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-title * {
  margin: 0 0 12px;
  color: var(--tedi-fg-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out li {
  margin-bottom: 2px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out li a,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box-text,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box-text p,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .text p {
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color var(--tedi-dur) ease;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out li a:hover,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out a:hover .icon-box-text,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out a:hover .icon-box-text p,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out a:hover .text p {
  color: var(--tedi-link);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box {
  align-items: center;
}

/* Chữ "Tìm kiếm nhiều" có style riêng theo id (#text-…) trong khối UX Block, nên cần !important. */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box-text .text {
  color: var(--tedi-fg) !important;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.5;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out a:hover .icon-box-text .text {
  color: var(--tedi-link) !important;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .is-divider {
  max-width: 100% !important;
  height: 1px !important;
  background-color: var(--tedi-border) !important;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .button {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md) !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

/* Bố cục: 3 cột thẳng hàng từ trên, có vạch ngăn, bỏ khoảng trống thừa */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-drop {
  margin: 0;
  align-items: flex-start;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-drop > .col {
  padding-top: 0;
  padding-bottom: 0;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-drop > .col + .col {
  border-left: 1px solid var(--tedi-border);
  padding-left: 32px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-drop .row .col {
  padding-bottom: 0;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .gap-element,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-drop .is-divider,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-drop .row-full-width {
  display: none !important; /* ô cách có display:block viết thẳng trong thẻ */
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-drop > .col:last-child .button {
  margin-top: 12px;
}

/* Cột "Thể Loại" chia 2 cột con: tiêu đề chỉ ở cột trái, cột phải cần lùi xuống cho thẳng hàng */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .menu-drop > .col:first-child .row .col + .col ul {
  margin-top: 33px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out ul {
  margin: 0;
}

/* Icon thương hiệu cùng một cỡ */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box-img {
  width: 20px !important;
  margin-right: 10px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box-img img,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box-img .icon-inner {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box {
  min-height: 32px;
  margin-bottom: 2px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box.is-large .icon-box-text,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .icon-box .icon-box-text {
  padding: 0;
}

/* Nút do tiện ích từ điển "ddict" trong trình duyệt bị lưu nhầm vào nội dung khối (ảnh lỗi chrome-extension://) */
body.theme-flatsome .ddict_btn {
  display: none !important;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .button:hover {
  background: var(--tedi-bg);
  border-color: var(--tedi-fg);
  color: var(--tedi-fg);
}

/* ==========================================================================
   8d. Menu "Danh mục" vẽ lại (template-parts/header/partials/tedi-mega-menu.php)
   Khung trắng + lớp làm mờ dùng lại từ 8c; phần dưới chỉ cho bố cục bên trong.
   ========================================================================== */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out:has(> .tedi-mega) {
  padding: 0;
  overflow: hidden;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 300px;
  text-align: left;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__col {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__genres {
  padding: 28px 32px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__col + .tedi-mega__col {
  border-left: 1px solid var(--tedi-border);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__hot {
  background: var(--tedi-bg);
  gap: 12px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__label {
  margin: 0;
  color: var(--tedi-fg-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega ul,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega li {
  margin: 0 !important;
  padding: 0;
}

/* Hai ô nổi bật */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature {
  min-height: 64px;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: var(--tedi-radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: border-color var(--tedi-dur) ease;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature--new { background: var(--tedi-surface-soft); }
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature--deal { background: #FFF7ED; }

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature:hover {
  border-color: var(--tedi-border-strong);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--tedi-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tedi-link);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature--deal .tedi-mega__feature-icon {
  color: var(--tedi-warning);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature-text strong {
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 600;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__feature-text span {
  color: var(--tedi-fg-muted);
  font-size: 13px;
}

/* Thể loại: 2 cột, mỗi mục có icon */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__genre-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__genre-list a,
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__hot-list a {
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--tedi-radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--tedi-dur) ease;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__genre-list a svg {
  flex: 0 0 18px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__genre-list a:hover {
  background: var(--tedi-bg);
  color: var(--tedi-fg);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__genre-list a:hover svg {
  color: var(--tedi-link);
}

/* Thương hiệu: ô có viền và logo */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__brand {
  min-height: 48px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--tedi-dur) ease;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__brand:hover {
  border-color: var(--tedi-fg);
  color: var(--tedi-fg);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__brand img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__brand-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--tedi-chrome);
  color: var(--tedi-chrome-fg);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* Tìm kiếm nhiều: danh sách có số thứ tự */
body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__hot-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__hot-list a {
  min-height: 44px;
  gap: 12px;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__hot-list a:hover {
  background: var(--tedi-surface);
  color: var(--tedi-fg);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__rank {
  width: 20px;
  flex-shrink: 0;
  color: var(--tedi-fg-muted);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__rank.is-top {
  color: var(--tedi-link);
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__all {
  margin-top: 8px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--tedi-dur) ease;
}

body.theme-flatsome .header-vertical-menu .header-vertical-menu__fly-out .tedi-mega__all:hover {
  border-color: var(--tedi-fg);
  color: var(--tedi-fg);
}

/* ==========================================================================
   9. Thẻ sản phẩm (Giai đoạn 3, bảng "Thẻ sản phẩm" trên canvas)
   Thẻ dọc ở mọi cỡ màn hình: ảnh 1:1, nền tảng, tên 2 dòng, giá 18px, đã bán.
   Ghi đè thẻ ngang 150px của TamBH (style.css "css khối sản phẩm").
   ========================================================================== */
body.theme-flatsome .products .product-small.col > .col-inner {
  height: 100%;
}

body.theme-flatsome .product-small.box-vertical {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
  box-shadow: var(--tedi-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--tedi-dur) ease, border-color var(--tedi-dur) ease;
}

/* Không nhích thẻ khi hover: nhãn giảm giá nằm ngoài thẻ (badge-container) sẽ lệch */
body.theme-flatsome .product-small.box-vertical:hover {
  border-color: #CBD3E1;
  box-shadow: var(--tedi-shadow-md);
}

body.theme-flatsome .product-small.box-vertical:has(.woocommerce-LoopProduct-link:focus-visible) {
  outline: 2px solid var(--tedi-ring);
  outline-offset: 2px;
}

body.theme-flatsome .product-small.box-vertical .woocommerce-LoopProduct-link:focus-visible {
  outline: none;
}

/* Ảnh vuông */
body.theme-flatsome .product-small.box-vertical .box-image,
body.theme-flatsome .products .product-small.box-vertical .box-image {
  width: 100% !important; /* Customizer in "width: 247px !important" (độ rộng ảnh danh mục) */
  min-width: 0 !important;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  flex: none;
  aspect-ratio: 10 / 9; /* 2026-11-09: 4:3 gò quá → 5:4 → 10:9; ảnh gốc vuông, cắt nhẹ trên dưới */
  border-radius: 0;
  background: var(--tedi-border);
  position: relative;
  overflow: hidden;
}

/* Khung ảnh bên trong phủ kín ô 4:3 (Flatsome có padding-top theo "image_height" của shortcode) */
body.theme-flatsome .product-small.box-vertical .box-image > div:not(.image-tools):not(.out-of-stock-label),
body.theme-flatsome .product-small.box-vertical .box-image > div:not(.image-tools):not(.out-of-stock-label) > a {
  display: block;
  height: 100%;
}

body.theme-flatsome .product-small.box-vertical .box-image .image-cover {
  padding-top: 0 !important;
}

body.theme-flatsome .product-small.box-vertical .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* giữ mép trên ảnh (chữ "Deluxe Edition"…), chỉ cắt bớt dưới */
}

/* Nhãn trên ảnh */
body.theme-flatsome .tedi-card__sale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: var(--tedi-radius-sm);
  background: var(--tedi-primary); /* xanh thương hiệu, chữ navy (duyệt 2026-11-08) */
  color: var(--tedi-on-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* Hết hàng: ảnh mờ + nhãn trắng góc trên (nhãn gốc .out-of-stock-label của Flatsome) */
body.theme-flatsome .product-small.out-of-stock .box-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(245 247 251 / .55);
  pointer-events: none;
}

body.theme-flatsome .product-small .box-image .out-of-stock-label {
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: auto;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #CBD3E1;
  border-radius: var(--tedi-radius-sm);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  opacity: 1;
  pointer-events: none;
}

/* Phần chữ */
body.theme-flatsome .product-small.box-vertical .box-text {
  width: 100%;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}

body.theme-flatsome .product-small.box-vertical .title-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.theme-flatsome .tedi-card__platform {
  color: var(--tedi-fg-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

body.theme-flatsome .product-small.box-vertical .product-title {
  margin: 0;
  padding: 0;
  font-size: 15px;
}

body.theme-flatsome .product-small.box-vertical .woocommerce-LoopProduct-link {
  height: auto;
  min-height: 2.8em;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Cả thẻ bấm được: link tên phủ toàn thẻ */
body.theme-flatsome .product-small.box-vertical .woocommerce-LoopProduct-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

body.theme-flatsome .product-small.box-vertical .woocommerce-LoopProduct-link:hover {
  color: var(--tedi-fg);
}

/* Giá: giá bán trước, giá gốc gạch ngang sau */
body.theme-flatsome .product-small.box-vertical .price-wrapper {
  height: auto !important;
  margin: auto 0 0;
  padding: 0;
  display: block;
  font-size: inherit;
}

body.theme-flatsome .product-small.box-vertical .price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  color: var(--tedi-fg);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome .product-small.box-vertical .price ins {
  order: 0;
  color: var(--tedi-fg);
  font-weight: 700;
  text-decoration: none;
}

body.theme-flatsome .product-small.box-vertical .price del {
  order: 1;
  color: var(--tedi-fg-muted);
  font-size: 14px;
  font-weight: 400;
  opacity: 1;
}

body.theme-flatsome .product-small.box-vertical .price del .amount,
body.theme-flatsome .product-small.box-vertical .price del bdi {
  color: inherit;
  font-weight: 400;
}

body.theme-flatsome .product-small.box-vertical .price .tedi-price-from {
  color: var(--tedi-fg-muted);
  font-size: 14px;
  font-weight: 400;
}

/* "Đã bán N": viên xanh nhạt, chữ và icon xanh đậm (chọn 2026-11-09, tham khảo nhãn "Có sẵn" của gamikey) */
body.theme-flatsome .tedi-card__sold {
  display: inline-flex;
  align-self: flex-start; /* .box-text là flex dọc: không kéo viên ra hết bề ngang */
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border: 1px solid #CFEDB8;
  border-radius: var(--tedi-radius-pill);
  background: var(--tedi-surface-soft);
  color: var(--tedi-link);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

/* Biểu tượng và chữ cùng cao 16px để căn giữa đúng (không theo đường chân chữ) */
body.theme-flatsome .tedi-card__sold svg {
  display: block;
  flex: none;
  width: 15px;
  height: 15px;
}

body.theme-flatsome .tedi-card__sold > span {
  display: block;
  line-height: 16px;
}

/* Công cụ hover của Flatsome (đang trống) không che link phủ */
body.theme-flatsome .product-small.box-vertical .image-tools {
  z-index: 3;
}

body.theme-flatsome .product-small.box-vertical .image-tools:empty {
  display: none;
}

/* Lưới 5 cột (trang chủ) và 4 cột (danh mục), 2026-11-09: thẻ hẹp hơn nên chữ nhỏ hơn một bậc */
@media (min-width: 850px) {
  body.theme-flatsome .large-columns-5 .product-small.box-vertical .box-text , body.theme-flatsome .large-columns-4 .product-small.box-vertical .box-text {
    padding: 14px 14px 16px;
    gap: 8px;
  }

  body.theme-flatsome .large-columns-5 .product-small.box-vertical .product-title, body.theme-flatsome .large-columns-4 .product-small.box-vertical .product-title,
  body.theme-flatsome .large-columns-5 .product-small.box-vertical .woocommerce-LoopProduct-link , body.theme-flatsome .large-columns-4 .product-small.box-vertical .woocommerce-LoopProduct-link {
    font-size: 14px;
  }

  body.theme-flatsome .large-columns-5 .product-small.box-vertical .price , body.theme-flatsome .large-columns-4 .product-small.box-vertical .price {
    font-size: 16px;
  }

  body.theme-flatsome .large-columns-5 .product-small.box-vertical .price del, body.theme-flatsome .large-columns-4 .product-small.box-vertical .price del,
  body.theme-flatsome .large-columns-5 .product-small.box-vertical .price .tedi-price-from , body.theme-flatsome .large-columns-4 .product-small.box-vertical .price .tedi-price-from {
    font-size: 13px;
  }
}

@media (max-width: 549px) {
  body.theme-flatsome .product-small.box-vertical .box-text {
    padding: 10px 12px 12px;
    gap: 6px;
  }

  body.theme-flatsome .product-small.box-vertical .price {
    font-size: 16px;
  }

  body.theme-flatsome .product-small.box-vertical .price del {
    font-size: 13px;
  }

  body.theme-flatsome .tedi-card__sale {
    top: 8px;
    left: 8px;
  }
}

/* ==========================================================================
   10. Trang cửa hàng / danh mục: tiêu đề, sắp xếp, cột lọc, phân trang
   ========================================================================== */

/* Tiêu đề trang: nền trắng, H1 28px, đường dẫn ở trên */
body.theme-flatsome .shop-page-title.featured-title {
  background: var(--tedi-surface);
  border-bottom: 1px solid var(--tedi-border);
}

body.theme-flatsome .shop-page-title.featured-title .page-title-bg {
  display: none;
}

body.theme-flatsome .shop-page-title.featured-title .page-title-inner {
  min-height: 0;
  padding-top: 28px;
  padding-bottom: 24px;
  align-items: flex-end;
}

body.theme-flatsome .shop-page-title.featured-title .page-title-inner > .flex-col.flex-grow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.theme-flatsome .shop-page-title.featured-title .page-title-inner > .flex-col.flex-grow > .is-large {
  order: -1;
  font-size: 14px;
}

body.theme-flatsome .shop-page-title.featured-title h1.shop-page-title {
  margin: 0;
  color: var(--tedi-fg);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

body.theme-flatsome .shop-page-title.featured-title .woocommerce-breadcrumb {
  margin: 0;
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.theme-flatsome .shop-page-title.featured-title .woocommerce-breadcrumb a {
  color: var(--tedi-fg-muted);
  font-weight: 400;
}

body.theme-flatsome .shop-page-title.featured-title .woocommerce-breadcrumb a:hover {
  color: var(--tedi-link);
}

body.theme-flatsome .shop-page-title.featured-title .woocommerce-breadcrumb .divider {
  margin: 0 6px;
  color: var(--tedi-border-strong);
  opacity: 1;
}

/* Số kết quả + ô sắp xếp */
body.theme-flatsome .shop-page-title.featured-title .page-title-inner > .flex-col.form-flat {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.theme-flatsome .shop-page-title.featured-title .woocommerce-result-count {
  margin: 0;
  color: var(--tedi-fg-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* Flatsome ép màu chữ ô chọn = currentcolor !important, nên đặt màu ở khối cha */
body.theme-flatsome .shop-page-title .woocommerce-ordering {
  margin: 0;
  color: var(--tedi-fg);
}

body.theme-flatsome .shop-page-title .woocommerce-ordering select.orderby {
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 40px 0 14px;
  background-color: var(--tedi-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23131336' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  box-shadow: none;
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 500;
}

body.theme-flatsome .shop-page-title .woocommerce-ordering select.orderby:hover,
body.theme-flatsome .shop-page-title .woocommerce-ordering select.orderby:focus {
  border-color: var(--tedi-fg);
}

body.theme-flatsome .shop-page-title .category-filtering .filter-button {
  color: var(--tedi-fg);
  text-transform: none;
  letter-spacing: 0;
}

/* Khoảng cách trên lưới */
body.theme-flatsome .category-page-row {
  padding-top: 24px;
}

/* Cột lọc: mỗi khối một thẻ trắng */
body.theme-flatsome #shop-sidebar aside.widget {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
  box-shadow: none;
}

body.theme-flatsome #shop-sidebar span.widget-title {
  margin: 0 0 12px;
  padding: 0;
  box-shadow: none;
  color: var(--tedi-fg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

body.theme-flatsome #shop-sidebar .widget .widget-title::after,
body.theme-flatsome #shop-sidebar .widget .is-divider {
  display: none;
}

/* Danh mục sản phẩm */
body.theme-flatsome #shop-sidebar .product-categories,
body.theme-flatsome #shop-sidebar .product-categories ul.children {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.theme-flatsome #shop-sidebar .product-categories li {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}

body.theme-flatsome #shop-sidebar .product-categories li > a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: var(--tedi-radius-sm);
  display: flex;
  align-items: center;
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--tedi-dur) ease;
}

body.theme-flatsome #shop-sidebar .product-categories li > a:hover {
  background: var(--tedi-bg);
  color: var(--tedi-fg);
}

body.theme-flatsome #shop-sidebar .product-categories li.current-cat > a {
  background: var(--tedi-surface-soft);
  color: var(--tedi-link);
  font-weight: 600;
}

body.theme-flatsome #shop-sidebar .product-categories .count {
  margin-left: 4px;
  padding: 0 4px;
  color: var(--tedi-fg-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}

body.theme-flatsome #shop-sidebar .product-categories ul.children {
  flex: 0 0 100%;
  padding-left: 12px;
}

body.theme-flatsome #shop-sidebar .product-categories ul.children li > a {
  min-height: 36px;
  font-size: 14px;
  font-weight: 400;
}

/* Lọc theo giá */
body.theme-flatsome #shop-sidebar .price_slider_wrapper .ui-slider {
  height: 4px;
  margin: 12px 8px 20px;
  border: 0;
  border-radius: var(--tedi-radius-pill);
  background: var(--tedi-border);
}

body.theme-flatsome #shop-sidebar .price_slider_wrapper .ui-slider .ui-slider-range {
  background: var(--tedi-primary);
}

body.theme-flatsome #shop-sidebar .price_slider_wrapper .ui-slider .ui-slider-handle {
  top: -7px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border: 2px solid var(--tedi-fg);
  border-radius: 50%;
  background: var(--tedi-surface);
  box-shadow: none;
  opacity: 1;
}

body.theme-flatsome #shop-sidebar .price_slider_amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

body.theme-flatsome #shop-sidebar .price_slider_amount .price_label {
  order: -1;
  flex: 1 1 100%;
  color: var(--tedi-fg-muted);
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome #shop-sidebar .price_slider_amount .price_label span {
  color: var(--tedi-fg);
  font-weight: 600;
}

body.theme-flatsome #shop-sidebar .price_slider_amount .button {
  margin: 0;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome #shop-sidebar .price_slider_amount .button:hover {
  border-color: var(--tedi-fg);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
}

/* Khối "Sản phẩm" (danh sách nhỏ có ảnh) */
body.theme-flatsome #shop-sidebar ul.product_list_widget {
  margin: 0;
  padding: 0;
}

/* Giá là chữ trần nằm ngay trong li, nên li để block (flex sẽ tách "a – b" ra 3 dòng) */
body.theme-flatsome #shop-sidebar ul.product_list_widget li {
  min-height: 72px;
  margin: 0;
  padding: 8px 0 8px 68px;
  box-sizing: border-box;
  border: 0;
  position: relative;
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

body.theme-flatsome #shop-sidebar ul.product_list_widget li + li {
  border-top: 1px solid var(--tedi-border);
}

body.theme-flatsome #shop-sidebar ul.product_list_widget li img {
  position: absolute;
  top: 8px;
  left: 0;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: var(--tedi-radius-sm);
  object-fit: cover;
}

body.theme-flatsome #shop-sidebar ul.product_list_widget li a {
  display: block;
  margin-bottom: 2px;
}

body.theme-flatsome #shop-sidebar ul.product_list_widget .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

body.theme-flatsome #shop-sidebar ul.product_list_widget .amount {
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 700;
}

body.theme-flatsome #shop-sidebar ul.product_list_widget del,
body.theme-flatsome #shop-sidebar ul.product_list_widget del .amount {
  color: var(--tedi-fg-muted);
  font-size: 13px;
  font-weight: 400;
  opacity: 1;
}

body.theme-flatsome #shop-sidebar ul.product_list_widget ins {
  text-decoration: none;
}

/* Phân trang: cùng kiểu với trang Đơn hàng */
body.theme-flatsome .woocommerce-pagination {
  margin-top: 16px;
}

body.theme-flatsome .woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

body.theme-flatsome .woocommerce-pagination ul.page-numbers > li {
  margin: 0;
}

body.theme-flatsome .woocommerce-pagination .page-number {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color var(--tedi-dur) ease;
}

body.theme-flatsome .woocommerce-pagination a.page-number:hover {
  border-color: var(--tedi-fg);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
}

body.theme-flatsome .woocommerce-pagination .page-number.current {
  border-color: var(--tedi-fg);
  background: var(--tedi-fg);
  color: #FFFFFF;
}

body.theme-flatsome .woocommerce-pagination .page-number.dots {
  min-width: 24px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--tedi-fg-muted);
}

/* ==========================================================================
   7. Giảm chuyển động
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Dải banner game (plugin Tedi Game Banner) có max-width 1400px + lề 20px: cho thẳng mép với lưới sản phẩm ở khung 1440px (2026-11-09) */
body.theme-flatsome .tedi-game-banner-wrap {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ==========================================================================
   11. Bộ đếm [tedi_stats_bar] (inc/tedi-stats.php) — kiểu A, duyệt 2026-11-09
   Nền trong suốt để khớp nền trang chủ; rộng bằng khung nội dung (1320px).
   ========================================================================== */
body.theme-flatsome .tedi-stats {
  padding: 0 15px 48px; /* khối phía trên đã có khoảng đệm dưới */
  background: transparent;
}

body.theme-flatsome .tedi-stats__list {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
  box-shadow: var(--tedi-shadow-sm);
}

body.theme-flatsome .tedi-stats__item {
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

body.theme-flatsome .tedi-stats__item + .tedi-stats__item {
  border-left: 1px solid var(--tedi-border);
}

body.theme-flatsome .tedi-stats__icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface-soft);
  color: var(--tedi-link);
}

body.theme-flatsome .tedi-stats__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.theme-flatsome .tedi-stats__number {
  color: var(--tedi-fg);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome .tedi-stats__label {
  color: var(--tedi-fg-muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Máy tính bảng / điện thoại: 2 x 2 (kiểm tra kỹ ở bước rà soát điện thoại) */
@media (max-width: 849px) {
  body.theme-flatsome .tedi-stats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-flatsome .tedi-stats__item {
    justify-content: flex-start;
    padding: 16px;
    gap: 12px;
  }

  body.theme-flatsome .tedi-stats__item + .tedi-stats__item {
    border-left: 0;
  }

  body.theme-flatsome .tedi-stats__item:nth-child(even) {
    border-left: 1px solid var(--tedi-border);
  }

  body.theme-flatsome .tedi-stats__item:nth-child(n + 3) {
    border-top: 1px solid var(--tedi-border);
  }

  body.theme-flatsome .tedi-stats__icon {
    width: 40px;
    height: 40px;
  }

  body.theme-flatsome .tedi-stats__number {
    font-size: 22px;
  }

  body.theme-flatsome .tedi-stats__label {
    font-size: 13px;
  }
}

/* ==========================================================================
   12. Header gọn (duyệt 2026-11-09): 178px → 140px
   Hàng trên 72px (logo, tìm kiếm, tài khoản, giỏ hàng), hàng menu 68px (nới 52 → 60 → 68 theo góp ý).
   Đặt cuối file để thắng các quy tắc header phía trên, Flatsome Customizer và TamBH style.css.
   ========================================================================== */
body.theme-flatsome .header-main,
body.theme-flatsome .header-main .header-inner {
  height: 72px;
}

body.theme-flatsome #logo {
  width: auto;
  margin-right: 24px;
}

body.theme-flatsome #logo img {
  width: auto;
  height: 72px;
  max-height: 72px;
}

body.theme-flatsome .header-main .searchform {
  height: auto;
}

body.theme-flatsome .header-main .searchform .search-field {
  height: 42px;
  min-height: 42px;
  padding-left: 16px;
  border-radius: 10px;
  font-size: 14px;
}

body.theme-flatsome .header-main .searchform .button {
  height: 42px;
  min-height: 42px;
}

/* Tài khoản, giỏ hàng */
body.theme-flatsome .flex-col.flex-right .header-nav-main > li {
  height: auto;
  margin-top: 0;
  margin-left: 8px;
}

body.theme-flatsome .header-main a.account-link,
body.theme-flatsome .header-main a.header-cart-link {
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-color: rgb(255 255 255 / .14);
  border-radius: 10px;
  background: rgb(255 255 255 / .04);
  font-size: 14px;
}

body.theme-flatsome .header-main a.account-link:hover,
body.theme-flatsome .header-main a.header-cart-link:hover {
  border-color: rgb(255 255 255 / .3);
}

/* Hàng menu */
body.theme-flatsome .header-bottom {
  min-height: 68px;
  height: 68px;
  border-top: 1px solid rgb(255 255 255 / .06);
}

/* Dải mờ dưới header (kiểu gameseal.com, duyệt 2026-11-09): bóng mềm ngăn header với nội dung.
   Đặt trên .header-wrapper (z-index 1001) nên phủ lên nội dung bên dưới; điện thoại dùng chung. */
body.theme-flatsome #header .header-wrapper {
  box-shadow: 0 6px 24px rgb(19 19 54 / .32);
}

body.theme-flatsome .header-bottom .header-bottom-nav > li {
  margin: 0 0 0 26px;
}

body.theme-flatsome .header-bottom .header-bottom-nav > li:first-child {
  margin-left: 0;
}

body.theme-flatsome .header-bottom .header-bottom-nav > li > a {
  height: 68px;
  min-height: 0;
  padding: 0;
  font-size: 14px;
}

body.theme-flatsome .header-bottom .header-bottom-nav > li > a svg,
body.theme-flatsome .header-bottom .header-bottom-nav > li > a img,
body.theme-flatsome .header-bottom .header-bottom-nav > li > a i {
  opacity: .75;
}

/* Nút Danh mục: xanh đặc, bỏ quầng sáng */
body.theme-flatsome header .header-vertical-menu {
  border-radius: 10px;
  box-shadow: none;
}

body.theme-flatsome header .header-vertical-menu .header-vertical-menu__opener {
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--tedi-primary);
  box-shadow: none;
  font-size: 14px;
}

body.theme-flatsome header .header-vertical-menu .header-vertical-menu__opener::before {
  display: none;
}

/* ==========================================================================
   13. Sửa nhỏ sau khi rà soát 2026-11-09
   ========================================================================== */

/* Giỏ hàng: tên sản phẩm đang xám nhạt (#888FB5), khó đọc */
body.theme-flatsome .woocommerce-cart-form .product-name a {
  color: var(--tedi-fg);
  font-weight: 500;
}

body.theme-flatsome .woocommerce-cart-form .product-name a:hover {
  color: var(--tedi-link);
}

/* Thẻ mã giảm giá (plugin Smart Coupons — màu đặt bằng style inline nên cần !important).
   Cũ: nền xanh chữ trắng, tương phản thấp. Mới: nền xanh rất nhạt, viền đứt xanh, chữ navy. */
body.theme-flatsome .wt_sc_single_coupon {
  background: var(--tedi-surface-soft) !important;
  color: var(--tedi-fg) !important;
  border: 1.5px dashed var(--tedi-primary) !important;
  border-radius: var(--tedi-radius-md);
  box-shadow: none !important;
}

body.theme-flatsome .wt_sc_single_coupon .wt_sc_coupon_content,
body.theme-flatsome .wt_sc_single_coupon .wt-coupon-amount,
body.theme-flatsome .wt_sc_single_coupon .wt_sc_coupon_type,
body.theme-flatsome .wt_sc_single_coupon .wt_sc_coupon_code,
body.theme-flatsome .wt_sc_single_coupon .wt_sc_coupon_code * {
  color: var(--tedi-fg) !important;
}

body.theme-flatsome .wt_sc_single_coupon .wt_sc_coupon_amount,
body.theme-flatsome .wt_sc_single_coupon .wt_sc_coupon_amount * {
  color: var(--tedi-link) !important;
  font-weight: 700;
}

body.theme-flatsome .wt_sc_single_coupon .wt_sc_coupon_code code {
  padding: 2px 8px;
  border: 1px solid var(--tedi-border-strong) !important;
  border-radius: 6px;
  background: var(--tedi-surface) !important;
  font-size: 13px;
}

/* Nút "Đăng nhập" của khách chưa đăng nhập (Flatsome dùng class khác: .nav-top-not-logged-in) — cùng kiểu nút tài khoản */
body.theme-flatsome .header-main .account-item > a.nav-top-not-logged-in {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 10px;
  background: rgb(255 255 255 / .04);
  box-shadow: none;
  color: var(--tedi-chrome-fg);
  font-size: 14px;
  font-weight: 500;
}

body.theme-flatsome .header-main .account-item > a.nav-top-not-logged-in:hover {
  border-color: rgb(255 255 255 / .3);
  color: var(--tedi-chrome-fg);
}

body.theme-flatsome .header-main .account-item > a.nav-top-not-logged-in i,
body.theme-flatsome .header-main .account-item > a.nav-top-not-logged-in img {
  order: 2;
  background: none;
  color: inherit;
}

/* Header khi cuộn (Flatsome thêm .stuck): 140px → 108px để không chiếm màn hình */
body.theme-flatsome .header-wrapper.stuck .header-main,
body.theme-flatsome .header-wrapper.stuck .header-main .header-inner {
  height: 60px !important; /* Flatsome Customizer in ".stuck .header-main{height:70px!important}" */
}

body.theme-flatsome .header-wrapper.stuck #logo img {
  height: 56px;
  max-height: 56px;
}

body.theme-flatsome .header-wrapper.stuck .header-main .searchform .search-field,
body.theme-flatsome .header-wrapper.stuck .header-main .searchform .button,
body.theme-flatsome .header-wrapper.stuck .header-main a.account-link,
body.theme-flatsome .header-wrapper.stuck .header-main a.header-cart-link {
  height: 40px;
  min-height: 40px;
}

body.theme-flatsome .header-wrapper.stuck .header-bottom {
  height: 48px;
  min-height: 48px;
}

body.theme-flatsome .header-wrapper.stuck .header-bottom .header-bottom-nav > li > a {
  height: 48px;
}

body.theme-flatsome .header-wrapper.stuck .header-vertical-menu .header-vertical-menu__opener {
  height: 36px;
  min-height: 36px;
}

/* Tài khoản → Đơn hàng: ô tìm đơn */
body.theme-flatsome .tedi-orders-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 0 0 16px;
}

body.theme-flatsome .tedi-orders-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tedi-fg-muted);
  pointer-events: none;
}

body.theme-flatsome .tedi-orders-search input[type="search"] {
  flex: 1;
  height: 44px;
  margin: 0;
  padding: 0 14px 0 42px;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  box-shadow: none;
  color: var(--tedi-fg);
  font-size: 15px;
}

body.theme-flatsome .tedi-orders-search input[type="search"]:focus {
  border-color: var(--tedi-link);
  outline: 2px solid var(--tedi-ring);
  outline-offset: 1px;
}

body.theme-flatsome .tedi-orders-search .button {
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 20px;
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-primary);
  color: var(--tedi-on-primary);
  font-weight: 600;
  line-height: 44px;
}

body.theme-flatsome .tedi-orders-search__result {
  margin: -6px 0 16px;
  color: var(--tedi-fg-muted);
  font-size: 14px;
}

/* ==========================================================================
   14. Trang đăng nhập / đăng ký (/tai-khoan/ khi chưa đăng nhập) — duyệt 2026-11-09
   Hai thẻ trắng cạnh nhau, ô nhập 44px, nút chính rộng hết thẻ.
   Xem thử khi đang đăng nhập (quản trị): /tai-khoan/?tedi_login_preview=1
   ========================================================================== */
body.theme-flatsome #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 16px auto 56px;
}

body.theme-flatsome #customer_login > .col,
body.theme-flatsome #customer_login.row-divided > .col + .col {
  width: auto;
  max-width: none;
  flex: none;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
  background: var(--tedi-surface);
  box-shadow: var(--tedi-shadow-sm);
}

body.theme-flatsome #customer_login h2 {
  margin: 0 0 20px;
  color: var(--tedi-fg);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

body.theme-flatsome #customer_login .form-row {
  margin: 0 0 16px;
  padding: 0;
}

body.theme-flatsome #customer_login label {
  display: block;
  margin: 0 0 6px;
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 600;
}

body.theme-flatsome #customer_login input.input-text {
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  box-shadow: none;
  color: var(--tedi-fg);
  font-size: 15px;
}

body.theme-flatsome #customer_login input.input-text:focus {
  border-color: var(--tedi-link);
  outline: 2px solid var(--tedi-ring);
  outline-offset: 1px;
}

/* Ghi nhớ + nút Đăng nhập xếp dọc, nút rộng hết thẻ */
body.theme-flatsome #customer_login .form-row:has(.woocommerce-form-login__submit) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

body.theme-flatsome #customer_login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}

body.theme-flatsome #customer_login .woocommerce-form-login__rememberme input {
  margin: 0;
}

body.theme-flatsome #customer_login .woocommerce-form-login__submit,
body.theme-flatsome #customer_login .woocommerce-form-register__submit {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-primary);
  color: var(--tedi-on-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 48px;
  text-transform: none;
}

body.theme-flatsome #customer_login .woocommerce-form-login__submit:hover,
body.theme-flatsome #customer_login .woocommerce-form-register__submit:hover {
  background: var(--tedi-primary-hover);
}

body.theme-flatsome #customer_login .lost_password {
  margin: 16px 0 0;
  text-align: center;
}

body.theme-flatsome #customer_login .lost_password a,
body.theme-flatsome #customer_login .woocommerce-privacy-policy-text a {
  color: var(--tedi-link);
  font-weight: 500;
}

/* Đoạn chữ phụ ở cột Đăng ký */
body.theme-flatsome #customer_login .woocommerce-form-register > p:not(.form-row),
body.theme-flatsome #customer_login .woocommerce-privacy-policy-text p {
  color: var(--tedi-fg-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Nút Google (Site Kit) và ô Cloudflare Turnstile */
body.theme-flatsome #customer_login [class*="sign-in-with-google"] {
  margin: 0 0 16px;
}

body.theme-flatsome #customer_login .cf-turnstile {
  margin: 0 0 16px;
}

@media (max-width: 849px) {
  body.theme-flatsome #customer_login {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.theme-flatsome #customer_login > .col,
  body.theme-flatsome #customer_login.row-divided > .col + .col {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   15. Trang sản phẩm (Giai đoạn 4, duyệt 2026-11-09) — inc/tedi-product.php, assets/js/tedi-product.js
   Lưới 2 cột: nội dung trái, khung mua hàng phải (đi theo khi cuộn). Điện thoại: 1 cột, khung mua ngay dưới thẻ đầu.
   ========================================================================== */
body.theme-flatsome .tedi-pdp {
  padding-top: 24px; /* đã bỏ đường dẫn phía trên (2026-11-09) */
  padding-bottom: 40px;
}

body.theme-flatsome .tedi-pdp__crumbs .woocommerce-breadcrumb {
  margin: 0 0 16px;
  color: var(--tedi-fg-muted);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome .tedi-pdp__crumbs .woocommerce-breadcrumb a {
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  column-gap: 24px;
  align-items: start;
}

body.theme-flatsome .tedi-pdp__grid > * {
  grid-column: 1;
  min-width: 0;
}

body.theme-flatsome .tedi-pdp__aside {
  grid-column: 2;
  grid-row: 1 / span 20;
  align-self: start;
  position: sticky;
  top: 132px;
}

body.theme-flatsome .tedi-pdp__card {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
  background: var(--tedi-surface);
  box-shadow: var(--tedi-shadow-sm);
}

body.theme-flatsome .tedi-pdp__h {
  margin: 0 0 14px;
  color: var(--tedi-fg);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

/* Thẻ đầu trang: ảnh + nhãn + tên + đánh giá, căn trên */
body.theme-flatsome .tedi-pdp__head {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 32px;
}

body.theme-flatsome .tedi-pdp__media .product-images {
  margin: 0;
  border-radius: var(--tedi-radius-md);
  overflow: hidden;
}

body.theme-flatsome .tedi-pdp__media .product-images img {
  border-radius: var(--tedi-radius-md);
}

body.theme-flatsome .tedi-pdp__info {
  padding-top: 4px;
}

body.theme-flatsome .tedi-pdp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

body.theme-flatsome .tedi-pdp__chip {
  padding: 4px 10px;
  border-radius: var(--tedi-radius-pill);
  background: #EEF1F7;
  color: var(--tedi-fg);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

body.theme-flatsome .tedi-pdp__chip.is-primary {
  background: var(--tedi-surface-soft);
  color: var(--tedi-link);
}

body.theme-flatsome .tedi-pdp__info h1.product-title {
  margin: 0 0 16px;
  color: var(--tedi-fg);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

/* Dòng đánh giá / đã bán: hai viên tách bạch (phương án A, 2026-11-09) */
body.theme-flatsome .tedi-pdp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

body.theme-flatsome .tedi-pdp__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 9px;
  border: 1px solid;
  border-radius: var(--tedi-radius-pill);
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--tedi-dur) ease;
}

body.theme-flatsome .tedi-pdp__pill svg {
  flex: none;
}

/* Đánh giá: vàng nhạt, sao tô đặc, số đậm, "· N đánh giá" nhạt hơn */
body.theme-flatsome .tedi-pdp__pill.is-rating {
  border-color: #F5D9A3;
  background: #FFF7E6;
  color: #7A4B00;
}

body.theme-flatsome .tedi-pdp__pill.is-rating svg {
  color: #F59E0B;
  fill: #F59E0B;
}

body.theme-flatsome .tedi-pdp__pill.is-rating > span {
  font-weight: 400;
}

body.theme-flatsome .tedi-pdp__pill.is-rating:hover {
  border-color: #E5B65C;
  color: #7A4B00;
}

/* Chưa có đánh giá: xám, sao rỗng */
body.theme-flatsome .tedi-pdp__pill.is-muted {
  border-color: var(--tedi-border);
  background: var(--tedi-bg);
  color: var(--tedi-fg-muted);
  font-weight: 500;
}

body.theme-flatsome .tedi-pdp__pill.is-muted:hover {
  border-color: var(--tedi-border-strong);
  color: var(--tedi-fg);
}

/* Đã bán: xanh, giống viên trên thẻ sản phẩm */
body.theme-flatsome .tedi-pdp__pill.is-sold {
  border-color: #CFEDB8;
  background: var(--tedi-surface-soft);
  color: var(--tedi-link);
}

/* Dải Giao hàng / Thời gian / Bảo hành (khối UX 405, giữ nội dung gốc) */
body.theme-flatsome .tedi-pdp__policy {
  padding: 20px;
}

body.theme-flatsome .tedi-pdp__policy .box_policy {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.theme-flatsome .tedi-pdp__policy .box_policy > .col {
  padding-bottom: 0;
}

body.theme-flatsome .tedi-pdp__policy .item {
  border-radius: var(--tedi-radius-md);
}

/* Mô tả: nút "Xem thêm / Thu gọn" của TamBH (đang viền đỏ) */
body.theme-flatsome .tedi-pdp .giuseart_readmore_flatsome a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 160px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 600;
}

body.theme-flatsome .tedi-pdp .giuseart_readmore_flatsome a::after {
  border-top-color: var(--tedi-link);
}

body.theme-flatsome .tedi-pdp .giuseart_readmore_flatsome_less a::after {
  border-bottom-color: var(--tedi-link);
}

/* Đánh giá (plugin DevVN): đổi màu xanh dương/cam về màu thương hiệu */
body.theme-flatsome .tedi-pdp .btn-reviews-now,
body.theme-flatsome .tedi-pdp #reviews input.submit,
body.theme-flatsome .tedi-pdp #reviews .form-submit .submit {
  border: 0;
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-primary);
  color: var(--tedi-on-primary);
  font-weight: 600;
  text-transform: none;
}

body.theme-flatsome .tedi-pdp .star_average,
body.theme-flatsome .tedi-pdp .star-average {
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-pdp .devvn_num_reviews,
body.theme-flatsome .tedi-pdp .devvn_perc_rating {
  color: var(--tedi-fg-muted);
}

/* "Sản phẩm tương tự" trải hết chiều ngang dưới lưới */
body.theme-flatsome .tedi-pdp__related .related {
  margin-top: 8px;
}

/* ---------- Khung mua hàng ---------- */
body.theme-flatsome .tedi-buy {
  overflow: hidden;
}

body.theme-flatsome .tedi-buy__price {
  position: relative;
  overflow: hidden;
  margin: -24px -24px 20px;
  padding: 20px 24px 22px;
  color: #fff;
}

/* Vệt sáng lướt qua ô giá */
body.theme-flatsome .tedi-buy__price::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgb(255 255 255 / .18), transparent);
  transform: skewX(-20deg);
  animation: tedi-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tedi-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

/* Lớp mang màu nền cũ, JS làm mờ dần khi đổi phiên bản (thay hiệu ứng "bật" co giãn cũ, 2026-11-09) */
body.theme-flatsome .tedi-buy__fade {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-flatsome .tedi-buy__price::after { display: none; }
}

body.theme-flatsome .tedi-buy__label {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  color: #C3C9DD;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.theme-flatsome .tedi-buy__amount {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

body.theme-flatsome .tedi-buy__now {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

body.theme-flatsome .tedi-buy__was {
  color: #C3C9DD;
  font-size: 16px;
}

body.theme-flatsome .tedi-buy__off {
  padding: 3px 8px;
  border-radius: var(--tedi-radius-sm);
  background: var(--tedi-primary);
  color: var(--tedi-on-primary);
  font-size: 13px;
  font-weight: 700;
}

/* 4 cấp màu theo phiên bản */
body.theme-flatsome .tedi-buy__price.is-t1 {
  background:
    radial-gradient(circle at 100% 0, rgb(93 196 22 / .5) 0, rgb(93 196 22 / 0) 55%),
    radial-gradient(circle at 0 100%, rgb(93 196 22 / .16) 0, rgb(93 196 22 / 0) 45%),
    linear-gradient(135deg, #34406E 0%, #252E57 100%);
}

body.theme-flatsome .tedi-buy__price.is-t2 {
  background:
    radial-gradient(circle at 100% 0, rgb(34 211 238 / .55) 0, rgb(34 211 238 / 0) 55%),
    radial-gradient(circle at 0 100%, rgb(59 130 246 / .4) 0, rgb(59 130 246 / 0) 50%),
    linear-gradient(135deg, #1E3A8A 0%, #312E81 100%);
}

body.theme-flatsome .tedi-buy__price.is-t2 .tedi-buy__off {
  background: #22D3EE;
  color: #0B1240;
}

body.theme-flatsome .tedi-buy__price.is-t3 {
  background:
    radial-gradient(circle at 100% 0, rgb(236 72 153 / .6) 0, rgb(236 72 153 / 0) 55%),
    radial-gradient(circle at 0 100%, rgb(168 85 247 / .45) 0, rgb(168 85 247 / 0) 50%),
    linear-gradient(135deg, #5B21B6 0%, #2E1065 100%);
}

body.theme-flatsome .tedi-buy__price.is-t3 .tedi-buy__off {
  background: #F472B6;
  color: #2E1065;
}

body.theme-flatsome .tedi-buy__price.is-t3::after {
  animation-duration: 3.5s;
}

body.theme-flatsome .tedi-buy__price.is-t4 {
  background:
    radial-gradient(circle at 100% 0, rgb(245 196 81 / .5) 0, rgb(245 196 81 / 0) 55%),
    radial-gradient(circle at 0 100%, rgb(245 158 11 / .22) 0, rgb(245 158 11 / 0) 50%),
    linear-gradient(135deg, #2A2008 0%, #0F0D07 100%);
  box-shadow: inset 0 0 0 1px rgb(245 196 81 / .4);
}

body.theme-flatsome .tedi-buy__price.is-t4 .tedi-buy__label {
  color: #E9D8A6;
}

body.theme-flatsome .tedi-buy__price.is-t4 .tedi-buy__now {
  background: linear-gradient(90deg, #FDE68A 0%, #F5C451 45%, #FFF7D6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-flatsome .tedi-buy__price.is-t4 .tedi-buy__was {
  color: #B8A87A;
}

body.theme-flatsome .tedi-buy__price.is-t4 .tedi-buy__off {
  background: #F5C451;
  color: #2A2008;
}

body.theme-flatsome .tedi-buy__price.is-t4::after {
  background: linear-gradient(105deg, transparent, rgb(255 236 170 / .35), transparent);
  animation-duration: 3s;
}

/* Thẻ chọn phiên bản */
body.theme-flatsome .tedi-buy__sub {
  margin: 0 0 8px;
  color: var(--tedi-fg-muted);
  font-size: 13px;
}

body.theme-flatsome .tedi-opts {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

body.theme-flatsome .tedi-buy .tedi-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--tedi-border);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  box-shadow: none;
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition:
    border-color .35s cubic-bezier(.22, 1, .36, 1),
    background-color .35s cubic-bezier(.22, 1, .36, 1),
    box-shadow .35s cubic-bezier(.22, 1, .36, 1),
    transform .2s cubic-bezier(.22, 1, .36, 1);
}

body.theme-flatsome .tedi-buy .tedi-opt:hover {
  border-color: var(--tedi-border-strong);
}

/* Nhấn: lún nhẹ một chút cho có cảm giác bấm */
body.theme-flatsome .tedi-buy .tedi-opt:active:not(:disabled) {
  transform: scale(.985);
}

@media (prefers-reduced-motion: reduce) {
  body.theme-flatsome .tedi-buy .tedi-opt {
    transition: none;
  }
}

body.theme-flatsome .tedi-opt__price {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
}

body.theme-flatsome .tedi-buy .tedi-opt.is-out {
  opacity: .55;
  cursor: not-allowed;
}

body.theme-flatsome .tedi-buy .tedi-opt.is-on {
  border-color: var(--tedi-primary);
  background: var(--tedi-surface-soft);
  box-shadow: 0 0 0 1px var(--tedi-primary);
}

body.theme-flatsome .tedi-opts[data-tier="2"] .tedi-opt.is-on {
  border-color: #3B82F6;
  background: #EFF6FF;
  box-shadow: 0 0 0 1px #3B82F6;
}

body.theme-flatsome .tedi-opts[data-tier="3"] .tedi-opt.is-on {
  border-color: #A855F7;
  background: #FAF5FF;
  box-shadow: 0 0 0 1px #A855F7;
}

body.theme-flatsome .tedi-opts[data-tier="4"] .tedi-opt.is-on {
  border-color: #D4A017;
  background: #FFFBEB;
  box-shadow: 0 0 0 1px #D4A017;
}

/* Form WooCommerce trong khung mua: ẩn ô chọn gốc khi đã có thẻ; giá/tình trạng của phiên bản đã hiện ở ô giá */
body.theme-flatsome .tedi-buy form.tedi-has-opts table.variations,
body.theme-flatsome .tedi-buy form.cart .reset_variations,
body.theme-flatsome .tedi-buy form.cart .woocommerce-variation-price,
body.theme-flatsome .tedi-buy form.cart .woocommerce-variation-availability,
body.theme-flatsome .tedi-buy form.cart .woocommerce-variation-description {
  display: none !important;
}

body.theme-flatsome .tedi-buy form.cart {
  margin: 0;
}

body.theme-flatsome .tedi-buy form.cart:not(.variations_form),
body.theme-flatsome .tedi-buy .woocommerce-variation-add-to-cart {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

body.theme-flatsome .tedi-buy form.cart .quantity {
  display: flex !important;
  box-sizing: border-box;
  height: 48px;
  margin: 0 !important;
  border: 1.5px solid var(--tedi-border);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  overflow: hidden;
}

body.theme-flatsome .tedi-buy form.cart .quantity input {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tedi-fg) !important;
  font-size: 16px !important;
}

body.theme-flatsome .tedi-buy form.cart .quantity input.qty {
  flex: 1;
  width: auto !important;
  min-width: 0;
  font-weight: 600;
  text-align: center;
}

body.theme-flatsome .tedi-buy form.cart .quantity .minus,
body.theme-flatsome .tedi-buy form.cart .quantity .plus {
  width: 38px !important;
  padding: 0 !important;
}

body.theme-flatsome .tedi-buy form.cart .single_add_to_cart_button {
  width: 100%;
  height: 48px !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1.5px solid var(--tedi-fg) !important;
  border-radius: var(--tedi-radius-md) !important;
  background: var(--tedi-surface) !important;
  color: var(--tedi-fg) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1 !important;
  white-space: nowrap;
  text-transform: none;
  opacity: 1 !important;
}

body.theme-flatsome .tedi-buy form.cart .buy_now_button {
  grid-column: 1 / -1;
  order: -1;
  width: 100%;
  height: 52px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: var(--tedi-radius-md) !important;
  background: var(--tedi-primary) !important;
  color: var(--tedi-on-primary) !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1 !important;
  text-transform: none;
}

body.theme-flatsome .tedi-buy form.cart .buy_now_button:hover {
  background: var(--tedi-primary-hover) !important;
}

/* Hết hàng */
body.theme-flatsome .tedi-buy .stock.out-of-stock {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: var(--tedi-radius-md);
  background: #EEF1F7;
  color: var(--tedi-fg);
  font-weight: 600;
  text-align: center;
}

body.theme-flatsome .tedi-buy__support {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tedi-border);
  color: var(--tedi-fg);
  font-size: 14px;
}

body.theme-flatsome .tedi-buy__support svg {
  flex: none;
  color: var(--tedi-link);
}

body.theme-flatsome .tedi-buy__support:hover {
  color: var(--tedi-link);
}

/* Máy tính bảng / điện thoại (rà kỹ ở bước điện thoại) */
@media (max-width: 849px) {
  body.theme-flatsome .tedi-pdp__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.theme-flatsome .tedi-pdp__aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  body.theme-flatsome .tedi-pdp__head {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  body.theme-flatsome .tedi-pdp__info h1.product-title {
    font-size: 22px;
  }
}

@media (max-width: 549px) {
  body.theme-flatsome .tedi-pdp__head {
    grid-template-columns: minmax(0, 1fr);
  }

  body.theme-flatsome .tedi-pdp__media {
    max-width: 320px;
  }
}

/* Phiên bản đang chọn hết hàng: nút xám, có dòng giải thích (JS thêm .is-unavailable) */
body.theme-flatsome .tedi-buy__oos {
  display: none;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: var(--tedi-radius-md);
  background: #EEF1F7;
  color: var(--tedi-fg);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

body.theme-flatsome .tedi-buy.is-unavailable .tedi-buy__oos {
  display: block;
}

body.theme-flatsome .tedi-buy.is-unavailable form.cart .buy_now_button,
body.theme-flatsome .tedi-buy.is-unavailable form.cart .single_add_to_cart_button {
  border-color: var(--tedi-border) !important;
  background: var(--tedi-border) !important;
  color: var(--tedi-fg-muted) !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Plugin DevVN (đánh giá + hỏi đáp) dùng màu riêng có độ ưu tiên cao: ép về màu thương hiệu */
body.theme-flatsome .tedi-pdp a.btn-reviews-now,
body.theme-flatsome .tedi-pdp #devvn_cmt_submit {
  border: 0 !important;
  border-radius: var(--tedi-radius-md) !important;
  background: var(--tedi-primary) !important;
  color: var(--tedi-on-primary) !important;
  font-weight: 600;
  text-transform: none;
}

body.theme-flatsome .tedi-pdp a.btn-reviews-now:hover,
body.theme-flatsome .tedi-pdp #devvn_cmt_submit:hover {
  background: var(--tedi-primary-hover) !important;
}

body.theme-flatsome .tedi-pdp a.devvn_cmt_reply,
body.theme-flatsome .tedi-pdp a.cmtlike,
body.theme-flatsome .tedi-pdp .devvn_cmt_tool a {
  color: var(--tedi-link) !important;
}

/* Sản phẩm 1 phiên bản: dải Giao hàng / Thời gian / Bảo hành (khối UX 405) nằm trong khung mua, xếp dọc */
body.theme-flatsome .tedi-buy__policy {
  margin-top: 16px;
}

body.theme-flatsome .tedi-buy__policy .box_policy {
  display: grid !important;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin: 0 !important;
}

body.theme-flatsome .tedi-buy__policy .box_policy > .col {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

body.theme-flatsome .tedi-buy__policy .box_policy .col-inner {
  height: auto;
}

body.theme-flatsome .tedi-buy__policy .item {
  border-radius: var(--tedi-radius-md);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Khung mua — chỉnh 2026-11-09: giãn khoảng cách, nút "Thêm vào giỏ hàng" kiểu nền xanh nhạt, nút "Hỗ trợ qua chat" */
body.theme-flatsome .tedi-buy {
  padding: 28px;
}

body.theme-flatsome .tedi-buy__price {
  margin: -28px -28px 24px;
  padding: 22px 28px 24px;
}

body.theme-flatsome .tedi-buy__sub {
  margin-bottom: 10px;
}

body.theme-flatsome .tedi-opts {
  margin-bottom: 20px;
}

body.theme-flatsome .tedi-buy form.cart:not(.variations_form),
body.theme-flatsome .tedi-buy .woocommerce-variation-add-to-cart {
  gap: 12px;
}

/* Nút phụ: nền xanh nhạt, chữ xanh đậm, có icon giỏ hàng */
body.theme-flatsome .tedi-buy form.cart .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #CFEDB8 !important;
  background: var(--tedi-surface-soft) !important;
  color: var(--tedi-link) !important;
  transition: background-color .15s ease, border-color .15s ease;
}

body.theme-flatsome .tedi-buy form.cart .single_add_to_cart_button::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.theme-flatsome .tedi-buy form.cart .single_add_to_cart_button:hover {
  border-color: var(--tedi-primary) !important;
  background: #E2F5D3 !important;
}

/* Dải cam kết trong khung mua (sản phẩm 1 phiên bản): tách bằng đường kẻ, thoáng hơn */
body.theme-flatsome .tedi-buy__policy {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--tedi-border);
}

body.theme-flatsome .tedi-buy__policy .box_policy {
  gap: 10px;
}

body.theme-flatsome .tedi-buy__policy .item {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* "Hỗ trợ qua chat": nút viền mảnh rộng hết khung */
body.theme-flatsome .tedi-buy__support {
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  background: var(--tedi-surface);
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease;
}

body.theme-flatsome .tedi-buy__support:hover {
  border-color: var(--tedi-fg);
  background: var(--tedi-bg);
  color: var(--tedi-fg);
}

body.theme-flatsome .tedi-buy__support svg {
  color: var(--tedi-link);
}

/* Header: mép trái ô tìm kiếm thẳng hàng với mục "Game Steam" ở hàng menu (yêu cầu 2026-11-09).
   Cột logo cố định 180px + lề 24px: ô tìm kiếm bắt đầu trước "Game Steam" ~16px (chỉnh lại lần 3, 2026-11-09). */
@media (min-width: 850px) {
  body.theme-flatsome .header-main #logo {
    flex: 0 0 180px;
    width: 180px !important;
    margin-right: 24px;
  }
}

/* Ô tìm kiếm to hơn chút (kiểu gamikey). Nút kính lúp nằm gọn trong ô (Flatsome kéo cột nút -39px),
   bỏ viền tối 4px của TamBH quanh form. */
@media (min-width: 850px) {
  body.theme-flatsome .header-main .searchform {
    border: 0;
    border-radius: var(--tedi-radius-md);
  }

  body.theme-flatsome .header-main .searchform .search-field {
    height: 48px;
    min-height: 48px;
    padding-left: 18px;
    padding-right: 52px;
    border-radius: var(--tedi-radius-md);
    font-size: 15px;
  }

  body.theme-flatsome .header-main .searchform .flex-col:last-child {
    margin-left: -50px;
  }

  body.theme-flatsome .header-main .searchform .button {
    width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    background: transparent;
  }

  body.theme-flatsome .header-main .searchform .button i {
    font-size: 20px;
  }
}

/* (Quy tắc "chỉ đi theo khi màn hình cao ≥920px" chuyển sang mục 17 + tedi-product.js, ngưỡng tự tính, 2026-11-09.) */

/* 16. Sửa lỗi 2026-11-09 (báo từ điện thoại) ------------------------------------------- */

/* Danh sách trong "Thông tin nhanh" và "Mô tả sản phẩm": thụt lề và hiện gạch đầu dòng.
   Bố cục trang sản phẩm mới không nằm trong .entry-content nên Flatsome không thụt lề danh sách;
   ở phần mô tả, khung "Xem thêm" (overflow: hidden) còn cắt mất dấu chấm nằm ngoài lề. */
body.theme-flatsome .tedi-pdp .product-short-description ul,
body.theme-flatsome .tedi-pdp .product-short-description ol,
body.theme-flatsome .tedi-pdp #tab-description ul,
body.theme-flatsome .tedi-pdp #tab-description ol {
  margin: 0 0 16px;
  padding-left: 1.5em;
}

body.theme-flatsome .tedi-pdp .product-short-description ul,
body.theme-flatsome .tedi-pdp #tab-description ul {
  list-style: disc outside;
}

body.theme-flatsome .tedi-pdp .product-short-description ol,
body.theme-flatsome .tedi-pdp #tab-description ol {
  list-style: decimal outside;
}

body.theme-flatsome .tedi-pdp .product-short-description li,
body.theme-flatsome .tedi-pdp #tab-description li {
  margin: 0 0 6px;
  padding-left: 2px;
}

body.theme-flatsome .tedi-pdp .product-short-description li::marker,
body.theme-flatsome .tedi-pdp #tab-description li::marker {
  color: var(--tedi-fg-muted);
}

/* Điện thoại: ảnh sản phẩm tràn sát mép trên, trái, phải của thẻ (yêu cầu 2026-11-09, lần 2).
   Thẻ đầu trang có padding 20px ở ≤849px nên ảnh kéo ra -20px hai bên và bỏ padding trên. */
@media (max-width: 549px) {
  body.theme-flatsome .tedi-pdp__head {
    overflow: hidden;
    padding-top: 0;
  }

  body.theme-flatsome .tedi-pdp__media {
    width: calc(100% + 40px);
    max-width: none;
    margin: 0 -20px;
  }

  body.theme-flatsome .tedi-pdp__media .product-images {
    border-radius: 0;
  }

  body.theme-flatsome .tedi-pdp__media .woocommerce-product-gallery__image,
  body.theme-flatsome .tedi-pdp__media .product-images img {
    width: 100%;
  }
}

/* Mã giảm giá ở giỏ hàng / thanh toán: thẻ nhỏ gọn 172px.
   Điện thoại/máy tính bảng: một hàng vuốt ngang (trước: 7 thẻ xếp dọc, cao gần 900px).
   Máy tính (2026-11-09, việc số 4): cùng kiểu thẻ nhỏ, xếp hàng ngang tự xuống dòng — 7 thẻ vừa một hàng
   trong khung 1320px (trước: thẻ to chiếm 362px đầu trang thanh toán, ~500px ở giỏ hàng). */
body.theme-flatsome .wt_coupon_wrapper {
  gap: 10px !important;
  margin: 0 0 20px !important;
  padding: 2px !important;
}

@media (max-width: 849px) {
  body.theme-flatsome .wt_coupon_wrapper {
    flex-wrap: nowrap !important;
    padding: 2px 2px 8px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
}

@media all {
  body.theme-flatsome .wt_coupon_wrapper .wt_sc_single_coupon {
    flex: 0 0 auto !important;
    width: 172px !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 4px !important;
    scroll-snap-align: start;
  }

  /* Ô trống plugin chèn để căn lưới: bỏ, kẻo hàng vuốt có khoảng trắng ở cuối */
  body.theme-flatsome .wt_coupon_wrapper .wt-sc-hidden-coupon-box {
    display: none !important;
  }

  body.theme-flatsome .wt_coupon_wrapper .wt_sc_coupon_content {
    padding: 8px 6px !important;
  }

  body.theme-flatsome .wt_coupon_wrapper .wt-coupon-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
  }

  body.theme-flatsome .wt_coupon_wrapper .wt_sc_coupon_amount,
  body.theme-flatsome .wt_coupon_wrapper .wt_sc_coupon_amount * {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  /* Bỏ dòng "Giảm giá đơn hàng" cho thẻ gọn (yêu cầu 2026-11-09) */
  body.theme-flatsome .wt_coupon_wrapper .wt_sc_coupon_type {
    display: none !important;
  }

  body.theme-flatsome .wt_coupon_wrapper .wt_sc_coupon_code {
    margin-top: 6px;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body.theme-flatsome .wt_coupon_wrapper .wt_sc_coupon_code code {
    padding: 2px 6px;
    font-size: 12px;
  }
}

/* 17. Khung mua gọn cho 2–3 phiên bản (duyệt 2026-11-09) ------------------------------------
   Giữ nguyên kiểu dáng cũ, chỉ bớt khoảng trắng (khách chọn sau mockup). 3 phiên bản ≈ 720px.
   Màn hình thấp hơn khung: JS (tedi-product.js) thêm .is-static để khung cuộn cùng trang. */

/* Máy tính: đi theo khi cuộn nếu màn hình thấy hết khung; không thấy hết thì JS thêm .is-static để khung
   cuộn cùng trang (giữ quy tắc cũ, ngưỡng nay tính theo chiều cao thật của khung thay vì cố định 920px). */
@media (min-width: 850px) {
  body.theme-flatsome .tedi-pdp__aside {
    position: sticky;
    top: 120px;
  }

  body.theme-flatsome .tedi-pdp__aside.is-static {
    position: relative;
    top: 0;
  }
}

/* Vùng chính (giá, chọn phiên bản, Mua ngay, giỏ hàng) giữ to và nổi bật như trước (yêu cầu 2026-11-09):
   chỉ bớt khoảng thừa. */
body.theme-flatsome .tedi-buy {
  padding: 24px;
}

/* Siết khoảng trắng vùng chính thêm một chút (2026-11-09, lần 2), giữ nguyên cỡ chữ giá/nút */
body.theme-flatsome .tedi-buy__price {
  margin: -24px -24px 16px;
  padding: 18px 24px 20px;
}

body.theme-flatsome .tedi-buy__sub {
  margin: 0 0 8px;
}

body.theme-flatsome .tedi-opts {
  gap: 8px;
  margin: 0 0 18px;
}

body.theme-flatsome .tedi-buy .tedi-opt {
  min-height: 46px;
  padding: 10px 16px;
  font-size: 14.5px;
}

body.theme-flatsome .tedi-buy form.cart:not(.variations_form),
body.theme-flatsome .tedi-buy .woocommerce-variation-add-to-cart {
  gap: 8px;
}

/* Form phiên bản là flex xuống dòng, gap 16px: dòng trống của WooCommerce (.single_variation) đẩy nút xuống 16px thừa */
body.theme-flatsome .tedi-buy form.variations_form {
  row-gap: 0;
}

body.theme-flatsome .tedi-buy form.cart .buy_now_button {
  height: 50px !important;
}

body.theme-flatsome .tedi-buy form.cart .quantity {
  height: 46px;
}

body.theme-flatsome .tedi-buy form.cart .single_add_to_cart_button {
  height: 46px !important;
}

/* Cam kết (khối UX 405): giữ kiểu 3 ô màu như cũ (khách chọn 2026-11-09), chỉ bớt khoảng trắng */
body.theme-flatsome .tedi-buy__policy {
  margin-top: 16px;
  padding-top: 14px;
}

body.theme-flatsome .tedi-buy__policy .box_policy {
  gap: 8px;
}

body.theme-flatsome .tedi-buy__policy .item {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.theme-flatsome .tedi-buy__policy .item svg {
  width: 26px;
  height: 26px;
}

body.theme-flatsome .tedi-buy__support {
  margin-top: 14px;
}

/* Giá trượt khi đổi phiên bản (kiểu A, khách chọn 2026-11-09): số cũ và số mới chồng cùng một ô, cắt phần tràn */
body.theme-flatsome .tedi-buy__now.is-sliding {
  display: inline-grid;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}

body.theme-flatsome .tedi-buy__now.is-sliding > span {
  grid-area: 1 / 1;
}

/* Bậc 4 (vàng): chữ giá tô gradient, khi đang trượt thì tô cho từng số con thay vì ô cha */
body.theme-flatsome .tedi-buy__price.is-t4 .tedi-buy__now.is-sliding {
  background: none;
}

body.theme-flatsome .tedi-buy__price.is-t4 .tedi-buy__now.is-sliding > span {
  background: linear-gradient(90deg, #FDE68A 0%, #F5C451 45%, #FFF7D6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Điện thoại / máy tính bảng: thẻ chọn phiên bản to hơn cho dễ bấm (yêu cầu 2026-11-09, sau khi xem trên iPhone) */
@media (max-width: 849px) {
  body.theme-flatsome .tedi-opts {
    gap: 10px;
  }

  body.theme-flatsome .tedi-buy .tedi-opt {
    min-height: 54px;
    padding: 14px 16px;
    font-size: 15px;
  }

  body.theme-flatsome .tedi-opt__price {
    font-size: 15px;
  }
}

/* Điện thoại: kích thước co giãn theo bề rộng màn hình (320–430px) để hợp hầu hết các máy, không chỉ iPhone
   (2026-11-09). Đo trước khi sửa: ở 320–375px tên phiên bản dài xuống 2 dòng; ở 320–360px chữ
   "Thêm vào giỏ hàng" tràn khỏi nút. clamp(min, theo màn hình, max): máy hẹp nhỏ lại, máy rộng giữ như cũ. */
@media (max-width: 549px) {
  body.theme-flatsome .tedi-buy {
    --tedi-buy-pad: clamp(16px, 4.6vw, 24px);
    padding: var(--tedi-buy-pad);
  }

  body.theme-flatsome .tedi-buy__price {
    margin: calc(var(--tedi-buy-pad) * -1) calc(var(--tedi-buy-pad) * -1) 16px;
    padding: 18px var(--tedi-buy-pad) 20px;
  }

  body.theme-flatsome .tedi-buy__now {
    font-size: clamp(28px, 8.6vw, 34px);
  }

  body.theme-flatsome .tedi-buy .tedi-opt {
    min-height: 54px;
    gap: 8px;
    padding: 12px clamp(10px, 3.2vw, 16px);
    font-size: clamp(14px, 3.85vw, 16px);
  }

  body.theme-flatsome .tedi-opt__price {
    font-size: clamp(13px, 3.6vw, 16px);
  }

  body.theme-flatsome .tedi-buy form.cart:not(.variations_form),
  body.theme-flatsome .tedi-buy .woocommerce-variation-add-to-cart {
    grid-template-columns: clamp(96px, 27vw, 120px) minmax(0, 1fr);
  }

  body.theme-flatsome .tedi-buy form.cart .quantity .minus,
  body.theme-flatsome .tedi-buy form.cart .quantity .plus {
    width: clamp(28px, 8vw, 38px) !important;
  }

  body.theme-flatsome .tedi-buy form.cart .single_add_to_cart_button {
    gap: 6px;
    padding: 0 8px !important;
    font-size: clamp(13px, 3.7vw, 15px) !important;
  }

  body.theme-flatsome .tedi-pdp__info h1.product-title {
    font-size: clamp(19px, 5.6vw, 22px);
  }
}

/* 18. Banner trang chủ kiểu Steam / Epic (inc/tedi-hero.php + assets/js/tedi-hero.js), duyệt 2026-11-09 -----
   Một khối liền: khung navy, nền là ảnh banner đang hiện làm nhòe (đổi theo game); banner lớn 2:1 hiện trọn
   ảnh + danh sách 4 game trong khung (máy tính: cột phải; điện thoại: hàng vuốt dưới).
   Hiệu ứng: chuyển mờ dần, ảnh phóng chậm rất nhẹ (Ken Burns), mục đang chọn có nền sáng dần theo thời gian. */
body.theme-flatsome .tedi-hero {
  --tedi-hero-ease: cubic-bezier(.22, 1, .36, 1);
  --tedi-hero-delay: 5000ms;
  --tedi-hero-pad: 10px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 6px;
  padding: 0; /* banner chính tràn sát mép trên/dưới/trái của khung (yêu cầu 2026-11-09); lề chỉ còn ở danh sách */
  overflow: hidden;
  border-radius: 20px;
  background: #131336;
  box-shadow: 0 18px 40px -18px rgb(19 19 54 / .45);
}

/* Nền nhòe theo ảnh đang hiện */
body.theme-flatsome .tedi-hero__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

body.theme-flatsome .tedi-hero__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(19 19 54 / .55) 0%, rgb(19 19 54 / .35) 60%, rgb(19 19 54 / .7) 100%);
}

body.theme-flatsome .tedi-hero__glow {
  position: absolute;
  inset: -60px;
  opacity: 0;
  transition: opacity 1s var(--tedi-hero-ease);
}

body.theme-flatsome .tedi-hero__glow.is-on {
  opacity: 1;
}

body.theme-flatsome .tedi-hero__glow img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  filter: blur(42px) saturate(1.35);
  transform: scale(1.1);
}

/* Banner lớn: các ảnh chồng lên nhau, ảnh đang chọn hiện rõ */
body.theme-flatsome .tedi-hero__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: 0;
  background: rgb(0 0 0 / .3);
  box-shadow: 10px 0 30px -12px rgb(0 0 0 / .55);
}

/* Kiểu "trượt chồng" (JS chạy hiệu ứng): banner đang hiện nằm trên, banner vừa rời nằm dưới tới khi trượt xong */
body.theme-flatsome .tedi-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  visibility: hidden;
  background: #131336;
}

body.theme-flatsome .tedi-hero__slide.is-leaving {
  z-index: 1;
  visibility: visible;
}

body.theme-flatsome .tedi-hero__slide.is-on {
  z-index: 2;
  visibility: visible;
}

body.theme-flatsome .tedi-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

/* Chấm chuyển banner (điện thoại) nằm trên các lớp banner */
body.theme-flatsome .tedi-hero__stage .tedi-hero__dots {
  z-index: 3;
}

body.theme-flatsome .tedi-hero__slide:focus-visible {
  outline: 3px solid var(--tedi-ring-on-chrome);
  outline-offset: -3px;
}

/* Danh sách game trong khung */
body.theme-flatsome .tedi-hero__thumbs {
  display: flex;
  gap: 6px;
  padding: var(--tedi-hero-pad);
}

/* Chấm chuyển banner: chỉ dùng trên điện thoại (máy tính có danh sách game) */
body.theme-flatsome .tedi-hero__dots {
  display: none;
}

body.theme-flatsome .tedi-hero__thumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color .3s ease, transform .3s var(--tedi-hero-ease);
}

body.theme-flatsome .tedi-hero__thumb:hover {
  background: rgb(255 255 255 / .07);
}

body.theme-flatsome .tedi-hero__thumb.is-on {
  background: rgb(255 255 255 / .12);
  box-shadow: inset 3px 0 0 var(--tedi-primary);
}

body.theme-flatsome .tedi-hero__thumb:focus-visible {
  outline: 2px solid var(--tedi-ring-on-chrome);
  outline-offset: 2px;
}

body.theme-flatsome .tedi-hero__thumb-img {
  position: relative;
  z-index: 1;
  flex: none;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: rgb(0 0 0 / .3);
  transition: transform .35s var(--tedi-hero-ease);
}

body.theme-flatsome .tedi-hero__thumb:hover .tedi-hero__thumb-img {
  transform: scale(1.03);
}

body.theme-flatsome .tedi-hero__thumb-img img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  opacity: .6;
  transition: opacity .3s ease;
}

body.theme-flatsome .tedi-hero__thumb.is-on .tedi-hero__thumb-img img,
body.theme-flatsome .tedi-hero__thumb:hover .tedi-hero__thumb-img img {
  opacity: 1;
}

body.theme-flatsome .tedi-hero__thumb-title {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgb(255 255 255 / .72);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: color .3s ease;
}

body.theme-flatsome .tedi-hero__thumb.is-on .tedi-hero__thumb-title,
body.theme-flatsome .tedi-hero__thumb:hover .tedi-hero__thumb-title {
  color: #fff;
}

/* Nền sáng dần theo thời gian tới banner kế (kiểu Epic Games Store) */
body.theme-flatsome .tedi-hero__bar {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgb(93 196 22 / .22), rgb(93 196 22 / .1));
  transform: scaleX(0);
  transform-origin: left center;
}

body.theme-flatsome .tedi-hero__thumb.is-on .tedi-hero__bar {
  animation: tedi-hero-bar var(--tedi-hero-delay) linear forwards;
}

body.theme-flatsome .tedi-hero.is-paused .tedi-hero__thumb.is-on .tedi-hero__bar {
  animation-play-state: paused;
}

body.theme-flatsome .tedi-hero.is-static .tedi-hero__bar {
  display: none;
}

@keyframes tedi-hero-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Máy tính: banner lớn bên trái, danh sách bên phải cao bằng banner */
@media (min-width: 850px) {
  /* Cột danh sách rộng hơn → banner lớn hẹp lại → thấp hơn (~435px ở khung 1320) mà vẫn đúng 2:1, không cắt chữ */
  body.theme-flatsome .tedi-hero.has-thumbs {
    grid-template-columns: minmax(0, 1fr) clamp(290px, 34%, 450px);
    align-items: stretch;
  }

  /* Mép phải banner chính mờ dần vào nền khung thay cho đường cắt (yêu cầu 2026-11-09) */
  body.theme-flatsome .tedi-hero__stage {
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 84%, transparent 100%);
  }

  body.theme-flatsome .tedi-hero__thumbs {
    flex-direction: column;
    min-height: 0;
  }

  body.theme-flatsome .tedi-hero__thumb {
    flex: 1 1 0;
    min-height: 0;
  }

  body.theme-flatsome .tedi-hero__thumb:hover {
    transform: translateX(-2px);
  }

  body.theme-flatsome .tedi-hero__thumb-img {
    width: 42%;
    max-height: 100%;
  }

  body.theme-flatsome .tedi-hero__thumb-title {
    font-size: 15px;
  }
}

/* Điện thoại / máy tính bảng: chỉ banner (bỏ dải ảnh nhỏ cho gọn, yêu cầu 2026-11-09);
   vuốt trên banner để đổi, chấm nhỏ đè ở đáy banner báo vị trí */
@media (max-width: 849px) {
  body.theme-flatsome .tedi-hero {
    border-radius: 16px;
    box-shadow: 0 12px 28px -16px rgb(19 19 54 / .5);
  }

  body.theme-flatsome .tedi-hero__thumbs {
    display: none;
  }

  body.theme-flatsome .tedi-hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  body.theme-flatsome .tedi-hero__dot {
    width: 6px;
    height: 6px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--tedi-radius-pill);
    background: rgb(255 255 255 / .55);
    box-shadow: 0 1px 3px rgb(0 0 0 / .35);
    cursor: pointer;
    transition: width .35s var(--tedi-hero-ease), background-color .35s ease;
  }

  body.theme-flatsome .tedi-hero__dot.is-on {
    width: 18px;
    background: var(--tedi-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-flatsome .tedi-hero__slide,
  body.theme-flatsome .tedi-hero__glow,
  body.theme-flatsome .tedi-hero__thumb,
  body.theme-flatsome .tedi-hero__thumb-img,
  body.theme-flatsome .tedi-hero__thumb-img img {
    transition: none;
  }

  body.theme-flatsome .tedi-hero__slide.is-on img {
    animation: none;
  }
}

/* 19. Rà mobile 2026-11-09: các trang chính không tràn ngang; sửa vài điểm nhỏ dễ bấm / dễ đọc ---------- */

/* Nhãn nhỏ trong 3 ô cam kết (trang sản phẩm) 11px → 12px */
body.theme-flatsome .tedi-buy__policy .item .content > span {
  font-size: 12px;
}

@media (max-width: 849px) {
  /* Giỏ hàng: nút xoá "×" 24px khó bấm → vùng bấm 40px (nút giữ nguyên kích thước nhìn thấy) */
  body.theme-flatsome .woocommerce-cart-form .product-remove a.remove::before {
    content: "";
    position: absolute;
    inset: -8px;
  }

  /* Giỏ hàng: "1 x 59.000 ₫" dưới tên sản phẩm 11,7px → 14px */
  body.theme-flatsome .woocommerce-cart-form .mobile-product-price,
  body.theme-flatsome .woocommerce-cart-form .mobile-product-price * {
    font-size: 14px !important;
  }
}

/* ==========================================================================
   20. Giỏ hàng + thanh toán (duyệt mockup 2026-11-09) — inc/tedi-checkout.php, assets/js/tedi-checkout.js
   Thanh bước, thẻ trắng bo 16px, mã giảm giá gom vào cột tổng tiền (ẩn chữ code), nút xoá dạng thùng rác,
   thanh "Tổng · Thanh toán" trên điện thoại, đơn hàng thu gọn ở trang thanh toán (điện thoại), nút "Nạp thêm".
   ========================================================================== */

/* Thanh bước + tiêu đề */
body.theme-flatsome .tedi-co-head {
  margin: 4px 0 20px;
}

body.theme-flatsome .tedi-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--tedi-fg-muted);
}

body.theme-flatsome .tedi-steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body.theme-flatsome .tedi-steps__item + .tedi-steps__item::before {
  content: "";
  width: 32px;
  height: 1px;
  margin-right: 2px;
  background: #C4CADB;
}

body.theme-flatsome .tedi-steps__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tedi-border);
  color: var(--tedi-fg-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

body.theme-flatsome .tedi-steps__item.is-on .tedi-steps__n {
  background: var(--tedi-primary);
  color: var(--tedi-on-primary);
}

body.theme-flatsome .tedi-steps__item.is-done .tedi-steps__n {
  background: var(--tedi-fg);
  color: #fff;
}

body.theme-flatsome .tedi-steps__item.is-on .tedi-steps__t {
  color: var(--tedi-fg);
  font-weight: 600;
}

body.theme-flatsome .tedi-co-title {
  margin: 0;
  color: var(--tedi-fg);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome .tedi-co-title__count {
  color: var(--tedi-fg-muted);
  font-size: 16px;
  font-weight: 400;
}

/* Thẻ trắng: bảng giỏ hàng, cột tổng tiền, form thanh toán, cột đơn hàng */
body.theme-flatsome.woocommerce-cart .row-divided > .col + .col,
body.theme-flatsome.woocommerce-checkout .row-divided > .col + .col {
  border-left: 0;
}

body.theme-flatsome .woocommerce-cart-form,
body.theme-flatsome .cart-sidebar.col-inner,
body.theme-flatsome.woocommerce-checkout #customer_details,
body.theme-flatsome.woocommerce-checkout .checkout-sidebar {
  padding: 20px 24px;
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-lg);
}

body.theme-flatsome.woocommerce-checkout .large-5 > .col-inner.has-border {
  padding: 0;
  border: 0;
}

/* TamBH tô nền trắng + bóng cho cả form thanh toán: bỏ để không thành hai lớp thẻ lồng nhau */
body.theme-flatsome.woocommerce-checkout form.checkout {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 850px) {
  body.theme-flatsome.woocommerce-checkout .large-5 > .col-inner {
    position: sticky;
    top: 120px;
  }
}

/* ---------- Giỏ hàng: từng dòng sản phẩm ---------- */
body.theme-flatsome .woocommerce-cart-form .shop_table {
  margin: 0;
  border: 0;
}

body.theme-flatsome .woocommerce-cart-form .shop_table thead {
  display: none;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tedi-border);
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item:first-child {
  padding-top: 0;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td::before {
  display: none !important;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-thumbnail {
  flex: 0 0 96px;
  width: 96px;
  min-width: 0;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-thumbnail a {
  display: block;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-thumbnail img {
  display: block;
  width: 96px;
  max-width: none;
  height: 64px;
  object-fit: cover;
  border-radius: var(--tedi-radius-sm);
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.4;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-price {
  display: none;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-quantity {
  flex: 0 0 auto;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-subtotal {
  flex: 0 0 104px;
  color: var(--tedi-fg);
  font-weight: 600;
  text-align: right;
}

/* Nút xoá: thùng rác trong ô vuông 36px, nằm cuối dòng */
body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-remove {
  order: 9;
  flex: 0 0 auto;
  width: auto !important; /* Flatsome cho cột này rộng 0 trên điện thoại */
  min-width: 0;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-remove a.remove {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1;
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border);
  border-radius: 10px;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-remove a.remove::after {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--tedi-fg-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-remove a.remove:hover {
  background: #FEF2F2;
  border-color: var(--tedi-danger);
}

body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-remove a.remove:hover::after {
  background: var(--tedi-danger);
}

body.theme-flatsome .woocommerce-cart-form td.actions {
  display: block;
  padding: 16px 0 0;
  border: 0;
}

/* ---------- Cột tổng tiền ---------- */
body.theme-flatsome .cart_totals > table:first-child,
body.theme-flatsome .cart_totals > h2 {
  display: none;
}

body.theme-flatsome .cart_totals .shop_table {
  margin-bottom: 4px;
}

body.theme-flatsome .cart_totals .order-total th,
body.theme-flatsome .cart_totals .order-total td,
body.theme-flatsome .cart_totals .order-total .amount {
  color: var(--tedi-fg);
  font-size: 18px;
  font-weight: 700;
}

body.theme-flatsome .cart_totals .wc-proceed-to-checkout {
  padding: 8px 0 0;
}

body.theme-flatsome .cart_totals .wc-proceed-to-checkout .checkout-button {
  margin-bottom: 0;
}

/* Cam kết dưới nút thanh toán / đặt hàng: 2 ô nền xám nhạt cạnh nhau (duyệt 2026-11-10, trước: một dòng chữ căn giữa) */
body.theme-flatsome .tedi-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--tedi-fg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

body.theme-flatsome .tedi-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  background: var(--tedi-bg);
  border-radius: 10px;
}

body.theme-flatsome .tedi-trust svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--tedi-link);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Câu điều khoản dưới khối cam kết: nhỏ, xám, căn giữa, cách bằng đường kẻ mảnh */
body.theme-flatsome.woocommerce-checkout .woocommerce-privacy-policy-text {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--tedi-border);
}

body.theme-flatsome.woocommerce-checkout .woocommerce-privacy-policy-text p {
  margin: 0;
  color: var(--tedi-fg-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

body.theme-flatsome.woocommerce-checkout .woocommerce-privacy-policy-text a {
  color: var(--tedi-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Mã giảm giá (khung chung cho giỏ hàng và thanh toán) ---------- */
/* Thẻ chỉ còn số tiền giảm: bấm thẻ là áp mã nên không cần chữ code (trang "Mã giảm giá của tôi" vẫn hiện). */
body.theme-flatsome.woocommerce-cart .wt_sc_coupon_code,
body.theme-flatsome.woocommerce-checkout .wt_sc_coupon_code {
  display: none !important;
}

body.theme-flatsome .tedi-cbox {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--tedi-border);
}

body.theme-flatsome .tedi-cbox__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 600;
}

body.theme-flatsome .tedi-cbox__hint {
  color: var(--tedi-fg-muted);
  font-weight: 400;
}

body.theme-flatsome .tedi-cbox__ico,
body.theme-flatsome .tedi-ro-mini__ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: var(--tedi-link);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5v2M15 11v2M15 17v2M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4V7a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5v2M15 11v2M15 17v2M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4V7a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.theme-flatsome .tedi-cbox .wt_coupon_wrapper {
  margin: 0 !important;
}

body.theme-flatsome .tedi-cbox .wt_coupon_wrapper .wt_sc_coupon_amount,
body.theme-flatsome .tedi-cbox .wt_coupon_wrapper .wt_sc_coupon_amount * {
  font-size: 17px !important;
}

body.theme-flatsome .tedi-cbox .wt_coupon_wrapper .wt_sc_coupon_content {
  padding: 10px 6px !important;
}

body.theme-flatsome .tedi-cbox__more {
  min-height: 0;
  margin: 8px 0 0;
  padding: 0;
  color: var(--tedi-link);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  background: none;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

body.theme-flatsome .tedi-cbox__more:hover {
  color: var(--tedi-link-hover);
  text-decoration: underline;
}

body.theme-flatsome .tedi-cbox [hidden] {
  display: none !important;
}

/* Ô nhập mã: một hàng (ô nhập + nút) */
body.theme-flatsome .tedi-cbox form.ux-cart-coupon .widget-title {
  display: none;
}

body.theme-flatsome .tedi-cbox form.ux-cart-coupon .coupon,
body.theme-flatsome .tedi-cbox__row {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
}

body.theme-flatsome .tedi-cbox form.ux-cart-coupon input#coupon_code,
body.theme-flatsome .tedi-cbox__row .input-text {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
}

/* Flatsome đặt .button.expand rộng 100% (!important) */
body.theme-flatsome .tedi-cbox form.ux-cart-coupon .button,
body.theme-flatsome .tedi-cbox__row .button {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 44px;
  margin: 0;
  padding: 0 18px !important;
  color: var(--tedi-fg);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  background: var(--tedi-surface);
  border: 1px solid var(--tedi-border-strong);
  border-radius: var(--tedi-radius-md);
  box-shadow: none;
}

body.theme-flatsome .tedi-cbox form.ux-cart-coupon .button:hover,
body.theme-flatsome .tedi-cbox__row .button:hover {
  background: var(--tedi-bg);
  border-color: var(--tedi-fg);
}

/* Máy tính: lưới 3 thẻ, phần dư ẩn sau "+ N mã khác" */
@media (min-width: 850px) {
  body.theme-flatsome .tedi-cbox .wt_coupon_wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
    padding: 0 !important;
  }

  body.theme-flatsome .tedi-cbox .wt_coupon_wrapper .wt_sc_single_coupon {
    width: auto !important;
  }

  body.theme-flatsome .tedi-cbox .wt_sc_single_coupon.tedi-cbox__extra {
    display: none !important;
  }
}

/* Điện thoại: hàng vuốt ngang (hiện đủ mã), không cần "+ N mã khác" */
@media (max-width: 849px) {
  body.theme-flatsome .tedi-cbox .wt_coupon_wrapper .wt_sc_single_coupon {
    width: 124px !important;
  }

  body.theme-flatsome .tedi-cbox__more {
    display: none !important;
  }
}

/* ---------- Giỏ hàng trên điện thoại ---------- */
body.theme-flatsome .tedi-cart-bar {
  display: none;
}

@media (max-width: 849px) {
  body.theme-flatsome .woocommerce-cart-form,
  body.theme-flatsome .cart-sidebar.col-inner,
  body.theme-flatsome.woocommerce-checkout #customer_details,
  body.theme-flatsome.woocommerce-checkout .checkout-sidebar {
    padding: 14px 14px 16px;
  }

  body.theme-flatsome .tedi-co-title {
    font-size: 22px;
  }

  body.theme-flatsome .tedi-steps {
    font-size: 13px;
  }

  body.theme-flatsome .tedi-steps__item + .tedi-steps__item::before {
    width: 16px;
  }

  /* Chỉ chữ của bước đang ở; các bước khác chỉ còn số cho gọn một hàng */
  body.theme-flatsome .tedi-steps__item:not(.is-on) .tedi-steps__t {
    display: none;
  }

  /* Điện thoại: ảnh | tên + giá, ô số lượng xuống dưới tên | thùng rác (tên không bị bóp hẹp) */
  body.theme-flatsome .woocommerce-cart-form tr.cart_item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name remove"
      "thumb qty remove";
    align-items: start;
    gap: 8px 12px;
    padding: 12px 0;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-thumbnail {
    grid-area: thumb;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-name {
    grid-area: name;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-quantity {
    grid-area: qty;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-remove {
    grid-area: remove;
  }

  /* Bảng đã vừa màn hình: bỏ thanh cuộn ngang của Flatsome (vùng bấm mở rộng của nút xoá làm lố vài px) */
  body.theme-flatsome .woocommerce-cart-form .cart-wrapper {
    overflow: visible;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-thumbnail {
    flex-basis: 64px;
    width: 64px;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-thumbnail img {
    width: 64px;
    height: 44px;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-name {
    font-size: 14px;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-subtotal {
    display: none;
  }

  body.theme-flatsome .woocommerce-cart-form tr.cart_item td.product-remove a.remove {
    width: 34px;
    height: 34px;
  }

  body.theme-flatsome .tedi-cart-bar {
    position: fixed;
    right: 0;
    bottom: 57px; /* trên menu dưới đáy (.footer-menu-mobile cao 57px) */
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--tedi-surface);
    border-top: 1px solid var(--tedi-border);
    box-shadow: 0 -6px 18px rgb(19 19 54 / .08);
  }

  body.theme-flatsome .tedi-cart-bar__sum {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
  }

  body.theme-flatsome .tedi-cart-bar__label {
    color: var(--tedi-fg-muted);
    font-size: 12px;
  }

  body.theme-flatsome .tedi-cart-bar__total,
  body.theme-flatsome .tedi-cart-bar__total .amount {
    color: var(--tedi-fg);
    font-size: 18px;
    font-weight: 700;
  }

  body.theme-flatsome .tedi-cart-bar__go.button {
    flex: 0 0 auto;
    min-height: 46px;
    margin: 0;
    padding: 0 24px;
    color: var(--tedi-on-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 46px;
    text-transform: none;
    letter-spacing: 0;
    background: var(--tedi-primary);
    border: 0;
    border-radius: var(--tedi-radius-md);
  }

  body.theme-flatsome.woocommerce-cart {
    padding-bottom: 72px;
  }

  body.theme-flatsome.woocommerce-cart #top-link {
    bottom: 150px;
  }
}

/* ---------- Thanh toán ---------- */
body.theme-flatsome.woocommerce-checkout .woocommerce-form-coupon-toggle {
  display: none;
}

body.theme-flatsome.woocommerce-checkout .woocommerce-billing-fields > h3,
body.theme-flatsome.woocommerce-checkout #order_review_heading {
  margin: 0 0 14px;
  padding-top: 0;
  color: var(--tedi-fg);
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-flatsome.woocommerce-checkout #order_review_heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.theme-flatsome .tedi-ro-edit {
  color: var(--tedi-link);
  font-size: 14px;
  font-weight: 500;
}

/* Email lên đầu form; chú thích hiện luôn (WooCommerce mặc định hiện ô xanh khi bấm vào ô) */
body.theme-flatsome.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-direction: column;
}

body.theme-flatsome.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
  float: none;
  width: 100%;
}

body.theme-flatsome.woocommerce-checkout #billing_email_field {
  order: -1;
}

body.theme-flatsome.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
  margin-bottom: 16px;
}

body.theme-flatsome.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .input-text {
  margin-bottom: 0;
}

body.theme-flatsome.woocommerce-checkout .form-row .woocommerce-input-wrapper .description {
  display: block !important;
  margin: 6px 0 0;
  padding: 0;
  color: var(--tedi-fg-muted);
  font-size: 13px;
  line-height: 1.4;
  background: none;
  border-radius: 0;
}

body.theme-flatsome.woocommerce-checkout .form-row .woocommerce-input-wrapper .description::before {
  display: none;
}

/* Bảng đơn hàng: ảnh nhỏ cạnh tên */
body.theme-flatsome .woocommerce-checkout-review-order-table td.product-name {
  line-height: 1.4;
}

/* Ảnh nằm ở lề trái ô, chữ (kể cả "× 1") không chảy xuống dưới ảnh */
body.theme-flatsome .woocommerce-checkout-review-order-table td.product-name:has(.tedi-ro-thumb) {
  position: relative;
  height: 80px; /* ô bảng: height = chiều cao tối thiểu */
  padding-left: 78px;
}

body.theme-flatsome .woocommerce-checkout-review-order-table .tedi-ro-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 64px;
  transform: translateY(-50%);
}

body.theme-flatsome .tedi-ro-thumb {
  display: block;
  width: 64px;
}

body.theme-flatsome .tedi-ro-thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

body.theme-flatsome .woocommerce-checkout-review-order-table .order-total th,
body.theme-flatsome .woocommerce-checkout-review-order-table .order-total td,
body.theme-flatsome .woocommerce-checkout-review-order-table .order-total .amount {
  color: var(--tedi-fg);
  font-size: 18px;
  font-weight: 700;
}

/* Dòng "Thêm mã giảm giá" trong cột đơn hàng */
body.theme-flatsome .tedi-cbox--checkout {
  margin: 4px 0 16px;
  padding: 0;
  border: 0;
}

body.theme-flatsome .tedi-cbox__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  color: var(--tedi-link);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  background: var(--tedi-surface-soft);
  border: 1.5px dashed var(--tedi-primary);
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
}

body.theme-flatsome .tedi-cbox__toggle > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.theme-flatsome .tedi-cbox__count {
  color: var(--tedi-fg-muted);
  font-weight: 500;
}

body.theme-flatsome .tedi-cbox--checkout.is-open .tedi-cbox__count > span {
  display: inline-block;
  transform: rotate(90deg);
}

body.theme-flatsome .tedi-cbox__panel {
  padding: 12px 0 0;
}

body.theme-flatsome .tedi-cbox__msg:empty {
  display: none;
}

body.theme-flatsome .tedi-cbox__msg {
  margin: 10px 0 0;
}

body.theme-flatsome .tedi-cbox__msg .woocommerce-error,
body.theme-flatsome .tedi-cbox__msg .woocommerce-message,
body.theme-flatsome .tedi-cbox__msg .woocommerce-info,
body.theme-flatsome .tedi-cbox__msg .message-wrapper {
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
}

/* Phương thức thanh toán + nút */
body.theme-flatsome.woocommerce-checkout #payment {
  background: transparent;
}

/* Mỗi cách thanh toán một ô cách nhau 8px; chỉ ô đang chọn có viền + nền xanh */
body.theme-flatsome.woocommerce-checkout #payment .wc_payment_method {
  margin: 0 0 8px;
  padding: 12px 14px;
  background: var(--tedi-surface);
  border: 1.5px solid var(--tedi-border);
  border-radius: var(--tedi-radius-md);
  transition: border-color var(--tedi-dur), background-color var(--tedi-dur);
}

body.theme-flatsome.woocommerce-checkout #payment .wc_payment_method:last-child {
  margin-bottom: 0;
}

body.theme-flatsome.woocommerce-checkout #payment .wc_payment_method:hover {
  border-color: var(--tedi-border-strong);
}

body.theme-flatsome.woocommerce-checkout #payment .wc_payment_method:has(> input:checked),
body.theme-flatsome.woocommerce-checkout #payment .wc_payment_methods > li:only-child {
  background: #F6FBF1;
  border-color: var(--tedi-primary);
}

body.theme-flatsome.woocommerce-checkout #payment .wc_payment_method > label {
  color: var(--tedi-fg);
  font-weight: 600;
}

body.theme-flatsome.woocommerce-checkout #payment .payment_box {
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
}

body.theme-flatsome.woocommerce-checkout #payment .payment_box::before {
  display: none;
}

body.theme-flatsome .tedi-is-hidden {
  display: none !important;
}

body.theme-flatsome .tedi-has-topup .tedi-wallet-pay__cta {
  display: none !important;
}

body.theme-flatsome a.button.tedi-topup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  color: var(--tedi-on-primary);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  background: var(--tedi-primary);
  border: 0;
  border-radius: var(--tedi-radius-md);
}

body.theme-flatsome a.button.tedi-topup:hover {
  color: var(--tedi-on-primary);
  background: var(--tedi-primary-hover);
}

body.theme-flatsome .tedi-topup__note {
  margin: 6px 0 0;
  color: var(--tedi-fg-muted);
  font-size: 13px;
  text-align: center;
}

/* Đơn hàng thu gọn (điện thoại) */
body.theme-flatsome .tedi-ro-mini {
  display: none;
}

@media (max-width: 849px) {
  body.theme-flatsome .tedi-ro-mini {
    display: block;
    margin: 0 0 12px;
    background: var(--tedi-surface);
    border: 1px solid var(--tedi-border);
    border-radius: var(--tedi-radius-lg);
  }

  body.theme-flatsome .tedi-ro-mini__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 10px 14px;
    color: var(--tedi-fg);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  body.theme-flatsome .tedi-ro-mini__count,
  body.theme-flatsome .tedi-ro-mini__total {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  body.theme-flatsome .tedi-ro-mini__ico {
    background: var(--tedi-fg);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 19a2 2 0 1 0 4 0 2 2 0 1 0-4 0M17 19a2 2 0 1 0 4 0 2 2 0 1 0-4 0M17 17H6V3H4M6 5l14 1-1 7H6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 19a2 2 0 1 0 4 0 2 2 0 1 0-4 0M17 19a2 2 0 1 0 4 0 2 2 0 1 0-4 0M17 17H6V3H4M6 5l14 1-1 7H6'/%3E%3C/svg%3E");
  }

  body.theme-flatsome .tedi-ro-mini__total,
  body.theme-flatsome .tedi-ro-mini__total .amount {
    font-weight: 700;
  }

  body.theme-flatsome .tedi-ro-mini__chev {
    width: 16px;
    height: 16px;
    background: var(--tedi-fg-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--tedi-dur);
  }

  body.theme-flatsome .tedi-ro-mini.is-open .tedi-ro-mini__chev {
    transform: rotate(180deg);
  }

  body.theme-flatsome .tedi-ro-mini__list {
    margin: 0;
    padding: 0 14px 6px;
    list-style: none;
    border-top: 1px solid var(--tedi-border);
  }

  body.theme-flatsome .tedi-ro-mini__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 0;
    font-size: 13px;
    line-height: 1.35;
    border-bottom: 1px solid var(--tedi-border);
  }

  body.theme-flatsome .tedi-ro-mini__list li:last-child {
    border-bottom: 0;
  }

  body.theme-flatsome .tedi-ro-mini__list .tedi-ro-thumb {
    float: none;
    flex: 0 0 44px;
    width: 44px;
    margin: 0;
  }

  body.theme-flatsome .tedi-ro-mini__list .tedi-ro-thumb img {
    width: 44px;
    height: 44px;
  }

  body.theme-flatsome .tedi-ro-mini__name {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.theme-flatsome .tedi-ro-mini__price {
    flex: 0 0 auto;
    font-weight: 600;
  }

  /* Bảng đơn hàng gốc: chỉ giữ dòng tạm tính / tổng (danh sách đã ở khung thu gọn trên đầu) */
  body.theme-flatsome.woocommerce-checkout #order_review_heading,
  body.theme-flatsome .woocommerce-checkout-review-order-table thead,
  body.theme-flatsome .woocommerce-checkout-review-order-table tbody {
    display: none;
  }

  body.theme-flatsome.woocommerce-checkout .large-5 {
    margin-top: 12px;
  }
}

/* ==========================================================================
   21. Ngăn menu trên điện thoại (duyệt mockup 2026-11-09) — inc/tedi-menu.php
   Thay danh sách phẳng của Flatsome: tiêu đề + nút đóng, thẻ tài khoản, 2 ô nổi bật, danh mục chính,
   thể loại game, tìm kiếm nhiều, nút xem tất cả. Danh sách cũ và nút X của Flatsome bị ẩn khi có .tedi-mm.
   ========================================================================== */
body.theme-flatsome #main-menu .sidebar-menu:has(> .tedi-mm) > :not(.tedi-mm) {
  display: none !important;
}

.mfp-wrap:has(.tedi-mm) .mfp-close {
  display: none !important;
}

body.theme-flatsome .tedi-mm {
  padding: 4px 16px 96px; /* chừa chỗ cho menu dưới đáy (57px) */
  color: #fff;
  font-family: var(--tedi-font);
  text-align: left;
}

body.theme-flatsome .tedi-mm a {
  color: #fff;
  text-decoration: none;
}

body.theme-flatsome .tedi-mm a:focus-visible,
body.theme-flatsome .tedi-mm button:focus-visible {
  outline: 2px solid var(--tedi-ring-on-chrome);
  outline-offset: 2px;
}

body.theme-flatsome .tedi-mm svg {
  flex: 0 0 auto;
}

/* Tiêu đề + nút đóng */
body.theme-flatsome .tedi-mm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

body.theme-flatsome .tedi-mm__title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

body.theme-flatsome .tedi-mm__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--tedi-chrome-muted);
  background: transparent;
  border: 1px solid var(--tedi-chrome-line);
  border-radius: 10px;
  box-shadow: none;
  line-height: 1;
}

body.theme-flatsome .tedi-mm__close:hover {
  color: #fff;
  border-color: var(--tedi-chrome-border);
}

/* Thẻ tài khoản */
body.theme-flatsome .tedi-mm__account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px 14px;
  background: var(--tedi-chrome);
  border-radius: 14px;
}

body.theme-flatsome .tedi-mm__avatar {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  height: 36px;
  color: var(--tedi-chrome-muted);
  background: var(--tedi-chrome-line);
  border-radius: 50%;
}

body.theme-flatsome .tedi-mm__account-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

body.theme-flatsome .tedi-mm__account-text strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-flatsome .tedi-mm__account-text span {
  color: var(--tedi-chrome-muted);
  font-size: 12px;
}

body.theme-flatsome .tedi-mm__chev {
  display: flex;
  margin-left: auto;
  color: var(--tedi-chrome-border);
}

/* 2 ô nổi bật */
body.theme-flatsome .tedi-mm__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.theme-flatsome .tedi-mm__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--tedi-chrome);
  border: 1px solid var(--tedi-chrome-line);
  border-radius: 12px;
}

body.theme-flatsome .tedi-mm__feature svg {
  color: var(--tedi-primary);
}

/* Nhãn mục */
body.theme-flatsome .tedi-mm__label {
  margin: 20px 0 6px;
  color: var(--tedi-chrome-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Danh mục chính */
body.theme-flatsome .tedi-mm__list,
body.theme-flatsome .tedi-mm__genres,
body.theme-flatsome .tedi-mm__tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.theme-flatsome .tedi-mm__list li,
body.theme-flatsome .tedi-mm__genres li,
body.theme-flatsome .tedi-mm__tags li {
  margin: 0;
  padding: 0;
}

body.theme-flatsome .tedi-mm__list li + li {
  border-top: 1px solid var(--tedi-chrome);
}

body.theme-flatsome .tedi-mm__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 500;
}

body.theme-flatsome .tedi-mm__ico {
  display: flex;
  color: var(--tedi-primary);
}

body.theme-flatsome .tedi-mm__text {
  flex: 1 1 auto;
  min-width: 0;
}

/* Thể loại game: lưới 2 cột */
body.theme-flatsome .tedi-mm__genres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.theme-flatsome .tedi-mm__genres a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.25;
  background: var(--tedi-chrome);
  border-radius: 10px;
}

body.theme-flatsome .tedi-mm__genres svg {
  color: var(--tedi-primary);
}

/* Tìm kiếm nhiều */
body.theme-flatsome .tedi-mm__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-flatsome .tedi-mm__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: #DFE3EE;
  font-size: 13px;
  border: 1px solid var(--tedi-chrome-line);
  border-radius: var(--tedi-radius-pill);
}

/* Nhấn (điện thoại không có hover) */
body.theme-flatsome .tedi-mm__account:active,
body.theme-flatsome .tedi-mm__feature:active,
body.theme-flatsome .tedi-mm__genres a:active,
body.theme-flatsome .tedi-mm__tags a:active {
  background: var(--tedi-chrome-line);
}

body.theme-flatsome .tedi-mm__list a:active {
  color: var(--tedi-primary);
}

/* Xem tất cả sản phẩm */
body.theme-flatsome .tedi-mm a.tedi-mm__all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 24px 0 0;
  color: var(--tedi-on-primary);
  font-size: 15px;
  font-weight: 600;
  background: var(--tedi-primary);
  border-radius: 12px;
}

body.theme-flatsome .tedi-mm a.tedi-mm__all:active {
  background: var(--tedi-primary-hover);
}

/* ==========================================================================
   22. Tài khoản → Đơn hàng: mỗi đơn một dòng (duyệt 2026-11-10)
   Tên sản phẩm 1 dòng, dài thì cắt "…" (rê chuột xem đủ), "+N" là nhãn nhỏ cuối dòng;
   cột thao tác không xuống dòng (đơn chờ thanh toán chỉ còn "Hủy đơn" + "Thanh toán").
   ========================================================================== */
@media (min-width: 850px) {
  /* Cột tên chiếm phần còn lại; max-width: 0 để ô bảng chịu co lại thay vì đẩy bảng rộng ra */
  body.theme-flatsome .tedi-orders-table td.tedi-orders-table__name {
    width: 100%;
    max-width: 0;
  }

  body.theme-flatsome .tedi-orders-table td:not(.tedi-orders-table__name) {
    white-space: nowrap;
  }

  body.theme-flatsome .tedi-orders-table__buttons {
    flex-wrap: nowrap;
  }
}

body.theme-flatsome .tedi-orders-table__line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.theme-flatsome .tedi-orders-table__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-flatsome .tedi-orders-table__more {
  flex: 0 0 auto;
  padding: 1px 8px;
  color: var(--tedi-fg-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--tedi-bg);
  border: 1px solid var(--tedi-border);
  border-radius: var(--tedi-radius-pill);
}

body.theme-flatsome .tedi-orders-table__name .tedi-muted {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ngăn menu điện thoại: cho khung tự cuộn (duyệt 2026-11-10). Flatsome cuộn trong danh sách cũ đã bị ẩn ở trên,
   nên phần dưới (thể loại, tìm kiếm nhiều, nút xem tất cả) bị cắt và không lướt xuống được. */
body.theme-flatsome #main-menu .sidebar-menu:has(> .tedi-mm) {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Ngăn menu phủ kín màn hình từ mép trên, che cả header (duyệt 2026-11-10). style.css cũ đặt ngăn cách mép 70px,
   nhưng header cao 72px ở đầu trang và 60px khi dính (có hiệu ứng trượt), nên bị hở và khựng khi mở/đóng. */
@media (max-width: 850px) {
  .off-canvas-left.mfp-ready .mfp-content:has(.tedi-mm),
  .off-canvas #main-menu.mobile-sidebar-slide:has(.tedi-mm) {
    top: 0 !important;
  }

  body.theme-flatsome .tedi-mm {
    padding-top: calc(4px + env(safe-area-inset-top, 0px));
  }

  /* Bỏ hiệu ứng trượt từ trái của Flatsome (ngăn đứng ở -300px gần nửa giây rồi mới trượt vào): hiện/ẩn mờ nhanh tại chỗ. */
  .off-canvas-left .mfp-content:has(.tedi-mm) {
    transform: none !important;
    transition: opacity 0.15s ease-out !important;
  }
}

@media (max-width: 850px) and (prefers-reduced-motion: reduce) {
  .off-canvas-left .mfp-content:has(.tedi-mm) {
    transition: none !important;
  }
}

/* ==========================================================================
   23. Xem ảnh sản phẩm phóng to (PhotoSwipe của WooCommerce) — duyệt 2026-11-10
   Nền tối hẳn che trang phía sau; nổi trên menu dưới đáy (z-index 99999 trong style.css);
   nút X tròn, rõ, dễ bấm; trên điện thoại bỏ nút phóng to và toàn màn hình (chụm/chạm đúp vẫn phóng to được).
   ========================================================================== */
body.theme-flatsome .pswp {
  z-index: 100000;
}

body.theme-flatsome .pswp__bg {
  background-color: rgba(8, 9, 20, 0.94);
}

body.theme-flatsome .pswp__top-bar {
  top: env(safe-area-inset-top, 0px);
  height: 64px;
  background: transparent;
}

body.theme-flatsome .pswp__button--close {
  width: 44px;
  height: 44px;
  margin: 10px 10px 0 0; /* tedi-product.js đặt lại vị trí vào góc ảnh */
  background-color: rgba(8, 9, 20, 0.62);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  opacity: 1;
}

body.theme-flatsome .pswp__button--close:hover,
body.theme-flatsome .pswp__button--close:focus-visible {
  background-color: rgba(8, 9, 20, 0.85);
}

@media (max-width: 849px) {
  body.theme-flatsome .pswp__button--fs,
  body.theme-flatsome .pswp__button--zoom {
    display: none !important;
  }
}

/* ==========================================================================
   24. Logo mới (duyệt 2026-11-10, phương án A) — template-parts/header/partials/element-logo.php
   Gấu graffiti cũ (assets/img/tedi-logo-bear.png) + chữ TEDI trắng, SHOP xanh lá (font Bungee, chọn 2026-11-10).
   Dưới 1025px (điện thoại, máy tính bảng) chỉ hiện gấu, như logo điện thoại cũ.
   Rê chuột hoặc focus: gấu nảy nhẹ, có quầng xanh, chữ SHOP sáng lên.
   Vào site lần đầu mỗi phiên: gấu nảy một lần (class .is-intro do đoạn script cạnh logo thêm vào).
   ========================================================================== */
/* Font chữ logo: Bungee (Google Fonts, giấy phép SIL OFL), chỉ gồm 8 chữ T E D I S H O P (1,4KB). Tải trước ở functions.php. */
@font-face {
  font-family: "Tedi Logo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bungee-tedishop.woff2") format("woff2");
}

body.theme-flatsome #logo .tedi-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tedi-chrome-fg);
  text-decoration: none;
  border-radius: var(--tedi-radius-sm);
}

/* Bỏ vệt sáng xanh sau logo (style.css #logo:before), yêu cầu 2026-11-10. */
body.theme-flatsome #logo::before {
  display: none;
}

body.theme-flatsome #logo .tedi-logo:focus-visible {
  outline: 2px solid var(--tedi-ring-on-chrome);
  outline-offset: 4px;
}

body.theme-flatsome #logo img.tedi-logo__bear {
  display: block !important;
  flex: none;
  width: auto;
  height: 46px;
  max-height: none;
  margin: 0;
  padding: 0;
  float: none;
  transform-origin: 50% 92%;
  transition: filter 0.25s ease-out;
}

body.theme-flatsome #logo .tedi-logo__text {
  font-family: "Tedi Logo", var(--tedi-font);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--tedi-chrome-fg);
}

body.theme-flatsome #logo .tedi-logo__shop {
  margin-left: 0.2em;
  color: var(--tedi-primary);
  transition: text-shadow 0.25s ease-out;
}

body.theme-flatsome .header-wrapper.stuck #logo img.tedi-logo__bear {
  height: 40px;
}

body.theme-flatsome .header-wrapper.stuck #logo .tedi-logo__text {
  font-size: 18px;
}

@media (max-width: 1024px) {
  body.theme-flatsome #logo .tedi-logo {
    float: right;
  }

  body.theme-flatsome #logo .tedi-logo__text {
    display: none;
  }

  /* Điện thoại: chỉ hiện gấu, sát mép phải 15px như nút menu bên trái (bỏ lề 24px của bản máy tính). */
  body.theme-flatsome .header-main #logo {
    flex: 0 0 auto;
    margin-right: 0;
  }


  body.theme-flatsome #logo img.tedi-logo__bear,
  body.theme-flatsome .header-wrapper.stuck #logo img.tedi-logo__bear {
    height: 40px;
  }
}

/* Hàng đầu header điện thoại: nút menu | ô tìm kiếm | gấu, cách đều 10px. Ô tìm kiếm giãn ra lấp chỗ trống
   (style.css đặt cột tìm kiếm cố định 65% nên bỏ lề logo thì ô tìm kiếm bị đẩy lệch). */
@media (max-width: 849px) {
  body.theme-flatsome .header-main .show-for-medium.flex-left {
    flex: 0 0 auto;
  }

  body.theme-flatsome .header-main .show-for-medium.flex-right {
    flex: 1 1 auto;
    width: auto;
    margin: 0 6px 0 14px; /* ô tìm kiếm của Flatsome lệch trái 4px trong cột: bù để hai bên đều 10px */
  }
}

@keyframes tedi-logo-hop {
  0%, 100% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-6px) rotate(-4deg); }
  70% { transform: translateY(1px) rotate(1deg); }
}

@media (hover: hover) {
  body.theme-flatsome #logo .tedi-logo:hover img.tedi-logo__bear {
    animation: tedi-logo-hop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
    filter: drop-shadow(0 0 10px rgb(93 196 22 / 0.5));
  }

  body.theme-flatsome #logo .tedi-logo:hover .tedi-logo__shop {
    text-shadow: 0 0 14px rgb(93 196 22 / 0.6);
  }
}

body.theme-flatsome #logo .tedi-logo:focus-visible img.tedi-logo__bear {
  filter: drop-shadow(0 0 10px rgb(93 196 22 / 0.5));
}

body.theme-flatsome #logo .tedi-logo.is-intro img.tedi-logo__bear {
  animation: tedi-logo-hop 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-flatsome #logo .tedi-logo img.tedi-logo__bear {
    animation: none !important;
    transition: none;
  }
}

/* ==========================================================================
   25. Menu Danh mục (máy tính) kiểu gamikey: rê chuột vào thì hiện, rê ra chỗ khác thì tắt (2026-11-10).
   style.css cũ ẩn menu khi đang rê chuột và chỉ hiện khi có class .open (một đoạn script bật/tắt mỗi lần bấm),
   nên menu chỉ tắt khi bấm lại đúng nút. Ở đây việc hiện/ẩn chỉ theo rê chuột, bỏ qua .open và
   header-vertical-menu__fly-out--open của Flatsome. Màn hình cảm ứng (không rê chuột được) vẫn chạm để mở,
   chạm ra ngoài để tắt (script trong template-parts/header/partials/element-nav-vertical.php).
   Khi rê ra, khung mờ dần 0,25 giây và vẫn bắt chuột trong lúc đó, nên lỡ tay ra ngoài một chút vẫn kịp quay lại.
   ========================================================================== */
@media (min-width: 850px) {
  body.theme-flatsome .custom-menu .header-vertical-menu .header-vertical-menu__fly-out {
    opacity: 0;
    visibility: hidden;
  }

  /* Lớp nền tối phủ màn hình (style.css ::before) không được tính là "đang rê trên menu". */
  body.theme-flatsome .custom-menu .header-vertical-menu .header-vertical-menu__fly-out::before {
    pointer-events: none;
  }
}

@media (min-width: 850px) and (hover: hover) {
  body.theme-flatsome .custom-menu .header-vertical-menu:hover .header-vertical-menu__fly-out {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 850px) and (hover: none) {
  body.theme-flatsome .custom-menu .header-vertical-menu .header-vertical-menu__fly-out.open {
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   26. Thông báo đầu trang thanh toán: Cloud Gaming / GeForce NOW / máy thuê / quán net (2026-11-15)
   inc/tedi-checkout.php tedi_co_notice(). Tông vàng nhạt (lưu ý, không phải lỗi), một dòng trên máy tính,
   nút "Liên hệ" nằm bên phải; điện thoại tự xuống dòng, nút nằm dưới chữ.
   ========================================================================== */
body.theme-flatsome .tedi-co-notice {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 16px;
  padding: 10px 12px 10px 14px;
  color: #5C4300;
  background: #FFF8E6;
  border: 1px solid #F1D68F;
  border-radius: var(--tedi-radius-md);
}

body.theme-flatsome .tedi-co-notice__icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--tedi-warning);
  stroke-width: 2;
  stroke-linecap: round;
}

body.theme-flatsome .tedi-co-notice__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: inherit;
}

body.theme-flatsome .tedi-co-notice__text strong {
  font-weight: 600;
}

body.theme-flatsome a.tedi-co-notice__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  color: #5C4300;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid #E5C267;
  border-radius: var(--tedi-radius-sm);
  transition: background-color var(--tedi-dur), border-color var(--tedi-dur);
}

body.theme-flatsome a.tedi-co-notice__btn:hover {
  background: #FFF1CC;
  border-color: #D9AE3F;
  color: #4A3600;
}

body.theme-flatsome a.tedi-co-notice__btn:focus-visible {
  outline: 2px solid var(--tedi-ring);
  outline-offset: 2px;
}

body.theme-flatsome a.tedi-co-notice__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

@media (max-width: 849px) {
  body.theme-flatsome .tedi-co-notice {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  body.theme-flatsome .tedi-co-notice__icon {
    margin-top: 1px;
  }

  body.theme-flatsome .tedi-co-notice__text {
    flex-basis: calc(100% - 32px);
    font-size: 13.5px;
  }

  body.theme-flatsome a.tedi-co-notice__btn {
    min-height: 40px;
    margin-left: 32px;
  }
}

/* ==========================================================================
   27. Tài khoản → "Đơn gần đây" trên điện thoại (2026-11-21): bảng 4 cột bóp tên game thành vài chữ mỗi dòng.
   Dưới 850px mỗi đơn là một thẻ 2 dòng: [#mã · trạng thái · tổng tiền] rồi tên game một dòng, dài thì cắt "…".
   ========================================================================== */
@media (max-width: 849px) {
  body.theme-flatsome .tedi-account-recent,
  body.theme-flatsome .tedi-account-recent tbody {
    display: block;
  }

  body.theme-flatsome .tedi-account-recent tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "no status total"
      "name name name";
    align-items: center;
    gap: 6px 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tedi-border);
  }

  body.theme-flatsome .tedi-account-recent tr:last-child {
    border-bottom: 0;
  }

  body.theme-flatsome .tedi-account-recent td,
  body.theme-flatsome .tedi-account-recent td:first-child,
  body.theme-flatsome .tedi-account-recent td:last-child {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  body.theme-flatsome .tedi-account-recent__no {
    grid-area: no;
  }

  body.theme-flatsome .tedi-account-recent__status {
    grid-area: status;
    justify-self: start;
  }

  body.theme-flatsome .tedi-account-recent__total {
    grid-area: total;
  }

  body.theme-flatsome .tedi-account-recent__name {
    grid-area: name;
    min-width: 0;
    overflow: hidden;
    color: var(--tedi-fg-muted);
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.theme-flatsome .tedi-account-recent__name .tedi-muted {
    display: inline;
    margin: 0 0 0 6px;
  }
}

/* ==========================================================================
   28. Khung giá + thẻ phiên bản không xuống dòng (2026-11-24, sản phẩm nhiều phiên bản như Key Windows 11)
   - Dòng "GIÁ BÁN · tên phiên bản" một dòng: chỉ in phần tên chính (trước " - "), dài thì cắt "…".
   - Dòng giá một hàng: cỡ chữ giá co theo bề rộng khung (container query), giá gạch nhỏ lại và cắt "…" nếu
     vẫn thiếu chỗ, nhãn % không bị đẩy xuống dòng. Chiều cao khung giá giữ nguyên khi đổi phiên bản.
   - Thẻ phiên bản: phần sau gạch ngang ("BH cài lại vĩnh viễn") là dòng phụ nhỏ, kể cả tên thiếu dấu cách
     trước gạch (tedi-product.js tách tên; thay đoạn script tách tên "t2l" chỉ nhận " - ").
   ========================================================================== */
body.theme-flatsome .tedi-buy__price {
  container-type: inline-size;
}

body.theme-flatsome .tedi-buy__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.theme-flatsome .tedi-buy__amount {
  flex-wrap: nowrap;
  gap: 4px 8px;
}

body.theme-flatsome .tedi-buy__now,
body.theme-flatsome .tedi-buy__off {
  flex: none;
}

body.theme-flatsome .tedi-buy__now {
  font-size: clamp(26px, 10cqi, 34px);
}

body.theme-flatsome .tedi-buy__was {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.theme-flatsome .tedi-buy .tedi-opt__title {
  display: block;
}

body.theme-flatsome .tedi-buy .tedi-opt__sub {
  display: block;
  margin-top: 3px;
  font-size: .84em;
  font-weight: 500;
  line-height: 1.3;
  opacity: .72;
}

@media (max-width: 849px) {
  body.theme-flatsome .tedi-buy__now {
    font-size: clamp(26px, 10cqi, 34px);
  }
}
