/* Clantee Checkout — giao diện gọn theo token storefront v2 (docs/giao-dien-v2/token.md).
   Chỉ nạp ở checkout / order-received / tài khoản, mọi luật nằm dưới body.cc-on.
   Không gọi Google Fonts: Inter nếu máy có, không thì font hệ thống. */

body.cc-on {
  --c-bg: #ffffff;
  --c-ink: #111214;
  --c-ink-2: #2f3237;
  --c-muted: #5c6270;
  --c-tile: #f3f4f6;
  --c-tile-2: #e9ebef;
  --c-line: #e5e7eb;
  --c-line-2: #d1d5db;
  --c-accent: #2352e8;
  --c-accent-hover: #1a3fc4;
  --c-accent-soft: #e9eefc;
  --c-on-accent: #fff;
  --c-ok: #15803d;
  --c-err: #d1172f;
  --f-sans: Inter, "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --tap: 44px;
  --gutter: 20px;

  background: var(--c-bg) !important;
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) {
  body.cc-on { font-size: 16px; }
}

/* Chữ: bỏ font + chữ hoa của theme cũ */
body.cc-on,
body.cc-on h1, body.cc-on h2, body.cc-on h3, body.cc-on h4, body.cc-on h5, body.cc-on h6,
body.cc-on .heading-font, body.cc-on .alt-font, body.cc-on .nav, body.cc-on label,
body.cc-on input, body.cc-on select, body.cc-on textarea, body.cc-on button, body.cc-on .button,
body.cc-on table, body.cc-on th, body.cc-on td {
  font-family: var(--f-sans) !important;
  letter-spacing: normal;
}
body.cc-on h1, body.cc-on h2, body.cc-on h3, body.cc-on h4,
body.cc-on th, body.cc-on .uppercase, body.cc-on label, body.cc-on .button, body.cc-on button {
  text-transform: none !important;
}
body.cc-on h1, body.cc-on h2, body.cc-on h3 {
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
body.cc-on h1 { font-size: 26px; }
body.cc-on h2 { font-size: 20px; margin: 0 0 16px; }
body.cc-on h3 { font-size: 18px; margin: 0 0 16px; }
body.cc-on a { color: var(--c-accent); }
body.cc-on a:hover { color: var(--c-accent-hover); }
body.cc-on :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* Ẩn header / footer / menu của theme cũ (Flatsome đã bị gỡ khỏi HTML; đây là lưới an toàn cho theme khác) */
body.cc-on #header, body.cc-on .header-wrapper, body.cc-on #top-bar, body.cc-on .header-top,
body.cc-on #masthead, body.cc-on header.site-header, body.cc-on .elementor-location-header,
body.cc-on .site-footer, body.cc-on footer#colophon, body.cc-on .elementor-location-footer,
body.cc-on .footer-widgets, body.cc-on .absolute-footer, body.cc-on .footer-1, body.cc-on .footer-2,
body.cc-on .back-to-top, body.cc-on #main-menu, body.cc-on .mobile-sidebar,
body.cc-on .focused-checkout-logo, body.cc-on .focused-checkout-footer {
  display: none !important;
}
body.cc-on #wrapper, body.cc-on #main, body.cc-on .page-wrapper, body.cc-on #main-content {
  background: var(--c-bg) !important;
  box-shadow: none !important;
}
body.cc-on #footer.footer-wrapper { background: none; padding: 0; }

/* ---------- Header mới ---------- */
.cc-head {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.cc-head__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 1160px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
body.cc-on .cc-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
body.cc-on .cc-back:hover { color: var(--c-accent); }
.cc-back__txt { display: none; }
body.cc-on .cc-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-ink);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
body.cc-on .cc-logo:hover { color: var(--c-ink); }
/* 1.0.9: logo tròn gốc (cùng ảnh header storefront /logo-mark.png) cạnh chữ */
body.cc-on .cc-logo__mark { width: 28px; height: 28px; flex: none; border-radius: 50%; margin: 0; }
.cc-lock {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-ok);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.cc-lock svg { flex: none; }
@media (max-width: 380px) {
  .cc-lock span { display: none; }
}
@media (min-width: 640px) {
  .cc-back__txt { display: inline; }
  .cc-back__short { display: none; }
}
@media (min-width: 1024px) {
  .cc-head__in { min-height: 76px; }
  body.cc-on .cc-logo { font-size: 1.625rem; }
  .cc-lock { font-size: 14px; }
}

/* ---------- Footer mới ---------- */
.cc-foot {
  margin-top: 48px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: 13px;
}
.cc-foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  text-align: center;
}
.cc-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
body.cc-on .cc-foot a { color: var(--c-muted); text-decoration: none; }
body.cc-on .cc-foot a:hover { color: var(--c-ink); text-decoration: underline; }
@media (min-width: 1024px) {
  .cc-foot__in { justify-content: space-between; text-align: left; }
}

/* ---------- Khung trang ---------- */
body.cc-on .page-checkout,
body.cc-on .cart-container,
body.cc-on #main > .page-wrapper,
body.cc-on .my-account-header + .page-wrapper,
body.cc-on .woocommerce-account .page-wrapper {
  max-width: 1160px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
}
body.cc-on #main-content { margin: 24px auto !important; max-width: 1160px !important; }
body.cc-on #main-content > #main { padding: 0 !important; }

/* Bước Cart > Checkout > Complete của Flatsome: nhỏ lại, chữ thường */
body.cc-on .checkout-page-title { background: none; padding: 24px 0 8px; border: 0; }
body.cc-on .checkout-page-title .page-title-inner { max-width: 1160px; padding: 0 var(--gutter); min-height: 0; }
body.cc-on .checkout-breadcrumbs { font-size: 14px !important; font-weight: 500; justify-content: flex-start; }
body.cc-on .checkout-breadcrumbs a { color: var(--c-muted); }
body.cc-on .checkout-breadcrumbs a.current { color: var(--c-ink); font-weight: 700; }
body.cc-on .checkout-breadcrumbs .divider { color: var(--c-line-2); margin: 0 8px; }
@media (max-width: 849px) {
  body.cc-on .checkout-page-title .medium-text-center { text-align: left; }
}

/* Account / tiêu đề trang tài khoản của Flatsome */
body.cc-on .my-account-header,
body.cc-on .page-title.my-account-header { background: none !important; color: var(--c-ink) !important; padding: 24px 0 0 !important; }
body.cc-on .my-account-header .page-title-inner { max-width: 1160px; padding: 0 var(--gutter); }
body.cc-on .my-account-header h1 { font-size: 26px; color: var(--c-ink); }
body.cc-on .my-account-header .breadcrumbs { display: none; }
body.cc-on .page-title-bg, body.cc-on .title-overlay { display: none !important; }

/* ---------- Bố cục checkout: 1 cột điện thoại, 2 cột máy tính (form | tóm tắt dính) ---------- */
body.cc-on form.checkout > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.cc-on form.checkout > .row > .col {
  max-width: none;
  width: auto;
  flex: none;
  padding: 0;
}
/* Tắt cột dính bằng JS của Flatsome, dùng position: sticky */
body.cc-on form.checkout .is-sticky-column,
body.cc-on form.checkout .is-sticky-column__inner {
  position: static !important;
  transform: none !important;
  top: auto !important;
  width: auto !important;
}
@media (min-width: 1024px) {
  body.cc-on form.checkout > .row {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 56px;
    align-items: start;
  }
  body.cc-on form.checkout > .row > .large-5 {
    position: sticky;
    top: var(--cc-top, 24px);
  }
}
/* Theme khác (markup Woo chuẩn): bỏ cột float % của theme (vd Storefront: #customer_details 53%, #order_review 41%)
   — trong lưới, % đó tính theo ô lưới nên cột bị bóp còn nửa. */
body.cc-on form.checkout:not(:has(> .row)) > #customer_details,
body.cc-on form.checkout:not(:has(> .row)) > #order_review_heading,
body.cc-on form.checkout:not(:has(> .row)) > #order_review {
  float: none !important;
  width: auto !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
body.cc-on form.checkout:not(:has(> .row)) #customer_details .col-1,
body.cc-on form.checkout:not(:has(> .row)) #customer_details .col-2 { float: none; width: auto; }
@media (min-width: 1024px) {
  body.cc-on form.checkout:not(:has(> .row)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    column-gap: 56px;
    align-items: start;
  }
  body.cc-on form.checkout:not(:has(> .row)) > * { grid-column: 1; }
  body.cc-on form.checkout:not(:has(> .row)) > #order_review_heading { grid-column: 2; grid-row: 1; }
  body.cc-on form.checkout:not(:has(> .row)) > #order_review { grid-column: 2; grid-row: 2 / span 20; position: sticky; top: var(--cc-top, 24px); }
  body.cc-on form.checkout:not(:has(> .row)) #customer_details .col-1,
  body.cc-on form.checkout:not(:has(> .row)) #customer_details .col-2 { float: none; width: auto; }
}

/* Hộp tóm tắt đơn */
body.cc-on form.checkout .large-5 > .col-inner,
body.cc-on form.checkout .large-5 .is-sticky-column__inner > .col-inner,
body.cc-on form.checkout:not(:has(> .row)) > #order_review {
  background: var(--c-bg);
  border: 1px solid var(--c-line) !important;
  border-radius: var(--r-lg);
  padding: 20px !important;
  box-shadow: none;
}
@media (min-width: 1024px) {
  body.cc-on form.checkout .large-5 > .col-inner,
  body.cc-on form.checkout .large-5 .is-sticky-column__inner > .col-inner { padding: 28px !important; background: #fafafb; }
}
body.cc-on #order_review_heading { font-size: 18px; margin: 0 0 12px; }

/* ---------- Ô nhập ---------- */
body.cc-on .form-row { margin-bottom: 14px; padding: 0; }
body.cc-on .form-row label,
body.cc-on .woocommerce form .form-row label {
  display: block;
  margin: 0 0 6px;
  color: var(--c-ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
body.cc-on .form-row .required { color: var(--c-err); text-decoration: none; border: 0; }
body.cc-on input.input-text,
body.cc-on input[type="text"], body.cc-on input[type="email"], body.cc-on input[type="tel"],
body.cc-on input[type="password"], body.cc-on input[type="number"], body.cc-on input[type="search"],
body.cc-on select, body.cc-on textarea,
body.cc-on .select2-container .select2-selection--single {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--tap);
  height: auto;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--c-line-2) !important;
  border-radius: var(--r-sm) !important;
  background-color: var(--c-bg) !important;
  box-shadow: none !important;
  color: var(--c-ink);
  font-size: 16px; /* >=16px: iPhone không phóng to khi chạm */
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
body.cc-on textarea { min-height: 96px; }
/* Mũi tên ô chọn (tự vẽ, vì đã thay nền của theme) */
body.cc-on select,
body.cc-on .select2-container .select2-selection--single {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6270' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
}
body.cc-on .select2-container .select2-selection--single .select2-selection__arrow { display: none; }
body.cc-on .woocommerce-billing-fields, body.cc-on .woocommerce-shipping-fields { border-top: 0; padding-top: 0; }
body.cc-on .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 36px 0 12px; }
body.cc-on .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--c-ink); }
body.cc-on .select2-container .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; right: 8px; }
body.cc-on input.input-text:focus, body.cc-on input[type="text"]:focus, body.cc-on input[type="email"]:focus,
body.cc-on input[type="tel"]:focus, body.cc-on input[type="password"]:focus, body.cc-on select:focus,
body.cc-on textarea:focus, body.cc-on .select2-container--focus .select2-selection,
body.cc-on .select2-container--open .select2-selection {
  border-color: var(--c-accent) !important;
  box-shadow: 0 0 0 3px var(--c-accent-soft) !important;
  outline: none;
}
body.cc-on .woocommerce-invalid input.input-text,
body.cc-on .woocommerce-invalid .select2-selection { border-color: var(--c-err) !important; }
body.cc-on input[type="checkbox"], body.cc-on input[type="radio"] { accent-color: var(--c-accent); width: 22px; height: 22px; /* 1.0.7: to hơn để dễ chạm (trước 18px) */ vertical-align: -3px; margin-right: 6px; }
body.cc-on .form-row label.checkbox,
body.cc-on .form-row label.woocommerce-form__label-for-checkbox { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; min-height: var(--tap); }
@media (max-width: 639px) {
  body.cc-on .form-row-first, body.cc-on .form-row-last { width: 100% !important; float: none !important; }
}

/* ---------- Bảng tóm tắt đơn ---------- */
body.cc-on table.shop_table { border: 0; margin: 0 0 16px; font-size: 14px; }
body.cc-on table.shop_table th, body.cc-on table.shop_table td {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  vertical-align: top;
}
body.cc-on table.shop_table thead th { color: var(--c-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase !important; }
body.cc-on table.shop_table td.product-total,
body.cc-on table.shop_table tfoot td { text-align: right; white-space: nowrap; font-weight: 600; }
body.cc-on table.shop_table .product-name { padding-right: 12px; font-weight: 500; }
body.cc-on table.shop_table .product-quantity { color: var(--c-muted); font-weight: 500; }
body.cc-on dl.variation, body.cc-on .wc-item-meta { margin: 4px 0 0; color: var(--c-muted); font-size: 13px; font-weight: 400; }
body.cc-on dl.variation dt, body.cc-on dl.variation dd { margin: 0; padding: 0; display: inline; }
body.cc-on dl.variation dt { margin-right: 4px; font-weight: 600; }
body.cc-on .wc-item-meta { list-style: none; padding: 0; }
body.cc-on .wc-item-meta li { margin: 0; }
body.cc-on .wc-item-meta li strong, body.cc-on .wc-item-meta li p { display: inline; margin: 0 4px 0 0; }
body.cc-on dl.variation dd p { display: inline; margin: 0; }
body.cc-on dl.variation dd::after { content: ""; display: block; }
body.cc-on table.shop_table tfoot th { font-weight: 500; color: var(--c-ink-2); }
body.cc-on table.shop_table tr.order-total th,
body.cc-on table.shop_table tr.order-total td { border-bottom: 0; padding-top: 16px; font-size: 18px; font-weight: 800; color: var(--c-ink); }
body.cc-on table.shop_table tr.order-total td small { font-size: 12px; font-weight: 400; color: var(--c-muted); }
body.cc-on .woocommerce-shipping-methods { margin: 0; list-style: none; padding: 0; text-align: right; }
/* 1.0.8: hàng phí ship (Flatsome lồng bảng .shipping__table trong 1 ô tfoot) — bỏ nowrap của tfoot td, không thì câu
   "There are no shipping options available…" kéo bảng tràn ra ngoài khung; nhãn "Shipment" cách chữ bên phải. */
body.cc-on table.shop_table tr.woocommerce-shipping-totals td { white-space: normal; }
body.cc-on table.shop_table .shipping__table { width: 100%; margin: 0; border: 0; }
body.cc-on table.shop_table .shipping__table th,
body.cc-on table.shop_table .shipping__table td { border: 0; padding: 0; }
body.cc-on table.shop_table .shipping__table th { padding-right: 16px; white-space: nowrap; font-weight: 500; color: var(--c-ink-2); }
body.cc-on table.shop_table .shipping__table td { text-align: right; font-weight: 500; }
body.cc-on .woocommerce-no-shipping-available-html,
body.cc-on table.shop_table .shipping__table td p { margin: 0; font-size: 13px; font-weight: 400; color: var(--c-muted); line-height: 1.45; }
/* 1.0.8: dòng lựa chọn do WCPA vẽ (ul.wcpa_cart_meta — WCPA vẽ lại MỌI item_data, kể cả của clantee-ca-nhan) cùng cỡ dòng biến thể */
body.cc-on table.shop_table ul.wcpa_cart_meta { list-style: none; margin: 4px 0 0; padding: 0; color: var(--c-muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
body.cc-on table.shop_table ul.wcpa_cart_meta li { margin: 0; padding: 0; }
body.cc-on table.shop_table ul.wcpa_cart_meta p,
body.cc-on table.shop_table ul.wcpa_cart_meta .wcpa_cart_meta_item-value { display: inline; margin: 0; font-size: inherit; }
body.cc-on table.shop_table ul.wcpa_cart_meta .wcpa_cart_meta_item-label { margin-right: 4px; font-weight: 600; color: var(--c-ink-2); }

/* ---------- Thanh toán + nút đặt hàng ---------- */
body.cc-on #payment { background: none !important; border-radius: 0; padding: 0; }
body.cc-on #payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0 !important; border: 0; }
body.cc-on #payment ul.payment_methods > li {
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  background: var(--c-bg);
  list-style: none;
}
body.cc-on #payment ul.payment_methods > li:has(> input:checked) { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
body.cc-on #payment ul.payment_methods > li > label { display: inline; font-size: 15px; font-weight: 600; color: var(--c-ink); }
body.cc-on #payment ul.payment_methods > li img { max-height: 24px; width: auto; display: inline-block; vertical-align: middle; margin-left: 6px; }
body.cc-on #payment div.payment_box {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--c-tile) !important;
  color: var(--c-ink-2);
  font-size: 14px;
}
body.cc-on #payment div.payment_box::before { display: none; }
body.cc-on #payment .place-order { padding: 0 !important; margin: 0; }
body.cc-on .woocommerce-terms-and-conditions-wrapper,
body.cc-on .woocommerce-privacy-policy-text { font-size: 13px; color: var(--c-muted); }
body.cc-on #place_order {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 12px 0 0;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: background .2s;
}
body.cc-on #place_order:hover, body.cc-on #place_order:focus-visible { background: var(--c-accent-hover); color: var(--c-on-accent); }

/* Nút chung (đăng nhập, áp mã, tài khoản) — nút đen theo storefront */
body.cc-on .button:not(#place_order):not(.paypal-button):not([class*="ppcp"]),
body.cc-on button.button, body.cc-on input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
}
body.cc-on .button:not(#place_order):hover, body.cc-on button.button:hover { background: var(--c-ink-2); color: #fff; }

/* Ô mã giảm giá + thông báo */
body.cc-on .woocommerce-form-coupon-toggle .woocommerce-info,
body.cc-on .woocommerce-form-login-toggle .woocommerce-info {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-tile);
  color: var(--c-ink-2);
  font-size: 14px;
}
body.cc-on .woocommerce-form-coupon-toggle .woocommerce-info::before,
body.cc-on .woocommerce-form-login-toggle .woocommerce-info::before { display: none; }
body.cc-on form.checkout_coupon, body.cc-on form.woocommerce-form-login {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
/* 1.1.1: ô mã luôn hiện (bỏ dòng "Have a coupon? Click here"); ô nhập + nút cùng hàng, cùng cao. */
body.cc-on .woocommerce-form-coupon-toggle { display: none !important; }
body.cc-on form.checkout_coupon { display: block !important; }
body.cc-on form.checkout_coupon > p:first-child { margin: 0 0 10px; font-size: 14px; color: var(--c-ink-2); }
body.cc-on form.checkout_coupon .coupon .flex-row { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 8px; margin: 0; }
body.cc-on form.checkout_coupon .coupon .flex-col { padding: 0; margin: 0; }
body.cc-on form.checkout_coupon .coupon .flex-grow { flex: 1 1 auto; min-width: 0; }
body.cc-on form.checkout_coupon .coupon .fl-wrap { margin: 0; }
body.cc-on form.checkout_coupon .coupon .fl-wrap > label { display: none; }
body.cc-on form.checkout_coupon .coupon input.input-text,
body.cc-on.fl-labels form.checkout_coupon .coupon .fl-wrap.fl-is-active input.input-text {
  height: 48px; min-height: 48px; padding: 10px 12px; margin: 0;
}
body.cc-on form.checkout_coupon .coupon .button { flex: none; height: 48px; min-height: 48px; width: auto; margin: 0; white-space: nowrap; }
body.cc-on form.checkout_coupon .coupon-error-notice { display: block; margin-top: 6px; font-size: 13px; color: var(--c-err); }
body.cc-on .woocommerce-error, body.cc-on .woocommerce-message, body.cc-on .woocommerce-info,
body.cc-on .woocommerce-NoticeGroup .woocommerce-error, body.cc-on .message-wrapper {
  border-radius: var(--r-md);
  font-size: 14px;
}
body.cc-on ul.woocommerce-error, body.cc-on .woocommerce-error {
  border: 1px solid #f3c2c9;
  background: #fdf1f3;
  color: var(--c-err);
  padding: 12px 14px 12px 34px;
}
body.cc-on .woocommerce-message { border: 1px solid #c4e5cf; background: #f0faf3; color: var(--c-ok); padding: 12px 14px; }

/* ---------- Trang cảm ơn (order-received) ---------- */
body.cc-on .woocommerce-order { margin-top: 16px; }
body.cc-on .woocommerce-thankyou-order-received,
body.cc-on .woocommerce-notice--success {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: var(--r-md);
  background: #f0faf3;
  color: var(--c-ok);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
body.cc-on .is-well { background: #fafafb !important; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: none !important; }
body.cc-on ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  list-style: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
body.cc-on ul.woocommerce-order-overview li { margin: 0; padding: 0; border: 0; font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
body.cc-on ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 15px; color: var(--c-ink); text-transform: none; letter-spacing: 0; }
body.cc-on .woocommerce-order-details, body.cc-on .woocommerce-customer-details {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
body.cc-on .woocommerce-customer-details address { border: 0; padding: 0; font-style: normal; }

/* ---------- Tài khoản ---------- */
body.cc-on .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
body.cc-on .woocommerce-MyAccount-navigation li { margin: 0; border: 0; }
body.cc-on .woocommerce-MyAccount-navigation li a {
  display: flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  border-radius: var(--r-sm); color: var(--c-ink-2); text-decoration: none; font-weight: 500;
}
body.cc-on .woocommerce-MyAccount-navigation li.is-active a,
body.cc-on .woocommerce-MyAccount-navigation li a:hover { background: var(--c-tile); color: var(--c-ink); }
body.cc-on .account-container .large-3 { border-right: 1px solid var(--c-line); }
@media (max-width: 849px) {
  body.cc-on .account-container .large-3 { border-right: 0; }
}

/* Không tràn ngang trên điện thoại (clip, không phải hidden — hidden làm hỏng position: sticky) */
body.cc-on #wrapper { overflow-x: clip; }

/* Trang ngắn (tài khoản): footer nằm đáy, không lộ nền xám của theme bên dưới. File này chỉ nạp ở 3 loại trang trên. */
html { background: #fff !important; }
body.cc-on #wrapper { display: flex; flex-direction: column; min-height: 100vh; }
body.cc-on #wrapper > #main { flex: 1 0 auto; }
body.admin-bar.cc-on #wrapper { min-height: calc(100vh - 32px); }

/* Storefront bỏ đệm + viền dưới của cổng thanh toán cuối → giữ khung như các cổng khác. */
body.cc-on #payment ul.payment_methods > li:last-child { padding-bottom: 12px; border-bottom: 1px solid var(--c-line-2); }

/* ---------- Flatsome "nhãn nổi" (Theme Options → Forms → Floating labels) ----------
   Flatsome đặt nhãn tuyệt đối ở mép trên ô và chừa chỗ bằng padding-top 1.1em; padding 10px ở phần "Ô nhập" đè mất
   chỗ đó → nhãn dính vào chữ khách gõ (bản 1.0.2). Ô cao hơn, nhãn rõ hơn, chữ khách gõ nằm dưới nhãn. */
body.cc-on.fl-labels .fl-wrap > label[for]:first-child,
body.cc-on .fl-labels .fl-wrap > label[for]:first-child {
  top: 9px;
  left: 13px;
  right: auto;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-ink-2);
  letter-spacing: 0;
  text-transform: none;
}
body.cc-on.fl-labels .fl-wrap.fl-is-active > label[for]:first-child,
body.cc-on .fl-labels .fl-wrap.fl-is-active > label[for]:first-child { opacity: 1; }
body.cc-on.fl-labels .form-row input:not([type="checkbox"]):not([type="radio"]),
body.cc-on.fl-labels .form-row select,
body.cc-on .fl-labels .form-row input:not([type="checkbox"]):not([type="radio"]),
body.cc-on .fl-labels .form-row select {
  height: auto;
  min-height: 56px;
  padding-top: 16px;
  padding-bottom: 16px;
  line-height: 1.4;
}
body.cc-on.fl-labels .fl-wrap.fl-is-active input:not([type="checkbox"]):not([type="radio"]),
body.cc-on.fl-labels .fl-wrap.fl-is-active select,
body.cc-on.fl-labels .fl-wrap.fl-is-active textarea,
body.cc-on .fl-labels .fl-wrap.fl-is-active input:not([type="checkbox"]):not([type="radio"]),
body.cc-on .fl-labels .fl-wrap.fl-is-active select,
body.cc-on .fl-labels .fl-wrap.fl-is-active textarea {
  padding-top: 26px;
  padding-bottom: 7px;
}
body.cc-on.fl-labels .fl-wrap .select2-container .select2-selection--single,
body.cc-on .fl-labels .fl-wrap .select2-container .select2-selection--single { min-height: 56px; }
body.cc-on.fl-labels .fl-wrap.fl-is-active .select2-container .select2-selection--single,
body.cc-on .fl-labels .fl-wrap.fl-is-active .select2-container .select2-selection--single { padding-top: 18px; }
