/**
 * Warehouse skins for WC single / cart / checkout / account.
 * Presentation only — do not hide #payment or alter checkout field names.
 */

/* ---------- Breadcrumbs ---------- */
.woocommerce-breadcrumb,
.ffw-archive .woocommerce-breadcrumb {
  display: none;
}

.collection-page .woocommerce-notices-wrapper,
.ffw-single .woocommerce-notices-wrapper,
.ffw-wc-page .woocommerce-notices-wrapper {
  margin-bottom: 16px;
}

/* ---------- Archive grid overrides (Bandina product-card grid lives in collection.css) ---------- */
.collection-page ul.products::before,
.collection-page ul.products::after,
.ffw-archive ul.products::before,
.ffw-archive ul.products::after,
.woocommerce.tax-product_cat ul.products::before,
.woocommerce.tax-product_cat ul.products::after {
  display: none !important;
  content: none !important;
}

.collection-page ul.products li.product,
.ffw-archive ul.products li.product,
.ffw-archive .products li.product,
.woocommerce.tax-product_cat ul.products li.product,
.collection-page ul.products[class*='columns-'] li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.collection-page ul.products li.product.first,
.collection-page ul.products li.product.last,
.ffw-archive ul.products li.product.first,
.ffw-archive ul.products li.product.last {
  clear: none !important;
  margin-right: 0 !important;
}

.ffw-archive .woocommerce-info,
.collection-page .woocommerce-info,
.ffw-archive .woocommerce-no-products-found,
.collection-page .woocommerce-no-products-found {
  background: transparent;
  border: 0;
  color: inherit;
  text-align: center;
  margin: 48px 0;
  opacity: 0.75;
  padding: 0;
}

.collection-toolbar .woocommerce-ordering {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.collection-toolbar .woocommerce-ordering label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
  color: #fff;
}

.collection-toolbar .woocommerce-ordering select {
  appearance: none;
  border: 1px solid var(--main-color, #ff0090);
  background-color: transparent;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 1em 2.4em 1em 1.25em;
  font: inherit;
  cursor: pointer;
}

.collection-toolbar .woocommerce-ordering label {
  display: none;
}

.woocommerce-pagination {
  margin: 32px 0 8px;
  text-align: center;
}

.woocommerce-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination .page-numbers li {
  margin: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

.woocommerce-pagination .page-numbers .current {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* ---------- Single product ----------
   Layout/visuals live in product-detail.css (Bandina 3-col PDP).
   Keep only light shared leftovers here if needed. */
.ffw-single .woocommerce-breadcrumb {
  display: none;
}

/* ---------- Cart / checkout / account shell ---------- */
.ffw-wc-page,
.ffw-cart .woocommerce,
.ffw-cart-page .woocommerce,
.ffw-checkout .woocommerce,
.ffw-account .woocommerce {
  color: var(--ff-text, #fff);
  padding-block: 8px 48px;
}

.ffw-cart .woocommerce,
.ffw-cart-page .woocommerce,
.ffw-checkout .woocommerce,
.ffw-account .woocommerce {
  max-width: 1100px;
  margin-inline: auto;
}

/* Cart: product list left, Cart totals right — equal-height cards */
.ffw-cart .woocommerce,
.ffw-cart-page .woocommerce,
.ffw-cart-page .entry-content .woocommerce,
body.woocommerce-cart .entry-content .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin-inline: auto;
}

.ffw-cart .woocommerce > .woocommerce-notices-wrapper,
.ffw-cart-page .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.ffw-cart form.woocommerce-cart-form,
.ffw-cart-page form.woocommerce-cart-form,
body.woocommerce-cart form.woocommerce-cart-form {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
}

.ffw-cart .cart-collaterals,
.ffw-cart-page .cart-collaterals,
body.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  overflow: visible;
}

.ffw-cart .cart-collaterals .cross-sells,
.ffw-cart-page .cart-collaterals .cross-sells,
body.woocommerce-cart .cart-collaterals .cross-sells {
  order: 2;
  margin-top: 28px;
}

.ffw-cart form.woocommerce-cart-form table.shop_table,
.ffw-cart-page form.woocommerce-cart-form table.shop_table,
body.woocommerce-cart form.woocommerce-cart-form table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
  background: transparent !important;
  margin: 0;
}

/* Desktop: keep WC cart as a real table (prevents “scattered” responsive rows) */
@media (min-width: 768px) {
  .ffw-cart form.woocommerce-cart-form table.shop_table_responsive,
  .ffw-cart-page form.woocommerce-cart-form table.shop_table_responsive,
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive {
    display: table !important;
    width: 100%;
  }

  .ffw-cart form.woocommerce-cart-form table.shop_table_responsive thead,
  .ffw-cart-page form.woocommerce-cart-form table.shop_table_responsive thead,
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive thead {
    display: table-header-group !important;
  }

  .ffw-cart form.woocommerce-cart-form table.shop_table_responsive tbody,
  .ffw-cart-page form.woocommerce-cart-form table.shop_table_responsive tbody,
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive tbody {
    display: table-row-group !important;
  }

  .ffw-cart form.woocommerce-cart-form table.shop_table_responsive tr,
  .ffw-cart-page form.woocommerce-cart-form table.shop_table_responsive tr,
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive tr {
    display: table-row !important;
  }

  .ffw-cart form.woocommerce-cart-form table.shop_table_responsive th,
  .ffw-cart form.woocommerce-cart-form table.shop_table_responsive td,
  .ffw-cart-page form.woocommerce-cart-form table.shop_table_responsive th,
  .ffw-cart-page form.woocommerce-cart-form table.shop_table_responsive td,
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive th,
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive td {
    display: table-cell !important;
  }

  .ffw-cart form.woocommerce-cart-form table.shop_table_responsive tr td::before,
  .ffw-cart-page form.woocommerce-cart-form table.shop_table_responsive tr td::before,
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive tr td::before {
    display: none !important;
    content: none !important;
  }
}

.ffw-checkout table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.ffw-cart form.woocommerce-cart-form table.shop_table th,
.ffw-cart form.woocommerce-cart-form table.shop_table td,
.ffw-cart-page form.woocommerce-cart-form table.shop_table th,
.ffw-cart-page form.woocommerce-cart-form table.shop_table td,
.ffw-checkout table.shop_table th,
.ffw-checkout table.shop_table td {
  border-color: rgba(255, 255, 255, 0.1) !important;
  padding: 14px 12px;
  color: inherit;
}

.ffw-cart form.woocommerce-cart-form table.shop_table thead th,
.ffw-cart-page form.woocommerce-cart-form table.shop_table thead th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.75;
  background: transparent !important;
}

.ffw-cart form.woocommerce-cart-form table.shop_table a,
.ffw-cart-page form.woocommerce-cart-form table.shop_table a,
.ffw-checkout a,
.ffw-account a {
  color: inherit;
}

/* Cart quantity stepper */
.ffw-cart .quantity.ffw-qty,
.ffw-cart-page .quantity.ffw-qty,
.ffw-cart form.woocommerce-cart-form .quantity.ffw-qty,
.ffw-cart-page form.woocommerce-cart-form .quantity.ffw-qty {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.ffw-cart .ffw-qty__btn,
.ffw-cart-page .ffw-qty__btn {
  width: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.ffw-cart .ffw-qty__btn:hover,
.ffw-cart-page .ffw-qty__btn:hover {
  background: rgba(255, 0, 144, 0.16);
  color: var(--ff-accent, #ff0090);
}

.ffw-cart .quantity .qty,
.ffw-cart-page .quantity .qty,
.ffw-cart .ffw-qty .qty,
.ffw-cart-page .ffw-qty .qty {
  width: 42px;
  min-width: 42px;
  height: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
  box-shadow: none !important;
}

.ffw-cart .quantity .qty::-webkit-outer-spin-button,
.ffw-cart .quantity .qty::-webkit-inner-spin-button,
.ffw-cart-page .quantity .qty::-webkit-outer-spin-button,
.ffw-cart-page .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Quantity column: header + stepper centered */
.ffw-cart form.woocommerce-cart-form table.shop_table th.product-quantity,
.ffw-cart-page form.woocommerce-cart-form table.shop_table th.product-quantity,
body.woocommerce-cart form.woocommerce-cart-form table.shop_table th.product-quantity,
.ffw-cart form.woocommerce-cart-form table.shop_table td.product-quantity,
.ffw-cart-page form.woocommerce-cart-form table.shop_table td.product-quantity,
body.woocommerce-cart form.woocommerce-cart-form table.shop_table td.product-quantity {
  width: 1%;
  min-width: 118px;
  white-space: nowrap;
  text-align: center !important;
  vertical-align: middle;
}

.ffw-cart form.woocommerce-cart-form table.shop_table td.product-quantity .quantity,
.ffw-cart-page form.woocommerce-cart-form table.shop_table td.product-quantity .quantity,
body.woocommerce-cart form.woocommerce-cart-form table.shop_table td.product-quantity .quantity {
  margin-inline: auto;
}

.ffw-checkout input.input-text,
.ffw-checkout textarea,
.ffw-account input.input-text,
.ffw-account textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 10px 14px;
}

.ffw-account select {
  appearance: none;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-weight: 500;
  padding: 0 36px 0 14px;
  min-height: 44px;
}

.ffw-cart .button,
.ffw-cart-page .button,
.ffw-checkout .button,
.ffw-account .button,
.ffw-cart button.button,
.ffw-cart-page button.button,
.ffw-checkout button.button,
.ffw-account button.button {
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
}

.ffw-cart .cart_totals,
.ffw-cart-page .cart_totals,
body.woocommerce-cart .cart_totals {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  position: relative;
  top: auto;
  box-sizing: border-box;
  box-shadow: none !important;
  container-type: inline-size;
  container-name: ffw-cart-totals;
  overflow: visible;
}

.ffw-cart .cart_totals h2,
.ffw-cart-page .cart_totals h2 {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
}

.ffw-cart .cart_totals .shop_table,
.ffw-cart-page .cart_totals .shop_table {
  width: 100%;
}

/* Coupon + Update cart on one row (inner flex wrapper keeps table intact) */
.ffw-cart td.actions,
.ffw-cart-page td.actions,
body.woocommerce-cart td.actions {
  padding: 20px 0 0 !important;
  border-bottom: 0 !important;
  vertical-align: middle;
}

.ffw-cart .ffw-cart-actions,
.ffw-cart-page .ffw-cart-actions,
body.woocommerce-cart .ffw-cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.ffw-cart td.actions::before,
.ffw-cart-page td.actions::before,
body.woocommerce-cart td.actions::before {
  display: none !important;
}
.ffw-cart .cart_totals table.shop_table,
.ffw-cart-page .cart_totals table.shop_table {
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border-collapse: collapse;
  margin: 0 0 8px;
}

.ffw-cart .cart_totals table.shop_table th,
.ffw-cart .cart_totals table.shop_table td,
.ffw-cart-page .cart_totals table.shop_table th,
.ffw-cart-page .cart_totals table.shop_table td {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 10px 0 !important;
  vertical-align: top;
  background: transparent !important;
  overflow: visible;
}

.ffw-cart .cart_totals table.shop_table th,
.ffw-cart-page .cart_totals table.shop_table th {
  width: 42%;
  font-weight: 600;
  text-align: left;
}

.ffw-cart .cart_totals table.shop_table td,
.ffw-cart-page .cart_totals table.shop_table td {
  text-align: right;
}

.ffw-cart .cart_totals tr.order-total th,
.ffw-cart .cart_totals tr.order-total td,
.ffw-cart-page .cart_totals tr.order-total th,
.ffw-cart-page .cart_totals tr.order-total td {
  border-bottom: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding-top: 16px !important;
  font-size: 1.15rem;
  font-weight: 800;
}

.ffw-cart .cart_totals .shipping-calculator-form,
.ffw-cart-page .cart_totals .shipping-calculator-form,
.ffw-cart .cart_totals #shipping_method,
.ffw-cart-page .cart_totals #shipping_method {
  margin-top: 8px;
}

/* Shipping calculator — keep Shipping | link on one table row */
.ffw-cart .woocommerce-shipping-calculator,
.ffw-cart-page .woocommerce-shipping-calculator,
body.woocommerce-cart .woocommerce-shipping-calculator {
  display: block;
  margin-top: 8px;
  text-align: right;
}

.ffw-cart .shipping-calculator-button,
.ffw-cart-page .shipping-calculator-button,
body.woocommerce-cart .shipping-calculator-button {
  display: inline-block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.ffw-cart .shipping-calculator-button:hover,
.ffw-cart-page .shipping-calculator-button:hover,
body.woocommerce-cart .shipping-calculator-button:hover {
  color: #fff;
}

/*
 * Expanded panel: stretch to full Cart totals width (break out of the value td).
 * 100cqi = cart_totals content width; margin pulls left from the td.
 * Fallback uses th:td ≈ 42:58 from our totals table styles.
 */
.ffw-cart .cart_totals .shipping-calculator-form,
.ffw-cart-page .cart_totals .shipping-calculator-form,
body.woocommerce-cart .cart_totals .shipping-calculator-form {
  display: block;
  width: 172.4137931%;
  max-width: none;
  margin-top: 12px;
  margin-left: -72.4137931%;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
  text-align: left;
}

@supports (width: 100cqi) {
  .ffw-cart .cart_totals .shipping-calculator-form,
  .ffw-cart-page .cart_totals .shipping-calculator-form,
  body.woocommerce-cart .cart_totals .shipping-calculator-form {
    width: 100cqi;
    max-width: 100cqi;
    margin-left: calc(100% - 100cqi);
  }
}

.ffw-cart .shipping-calculator-form .form-row,
.ffw-cart-page .shipping-calculator-form .form-row,
body.woocommerce-cart .shipping-calculator-form .form-row {
  margin: 0 0 12px;
  padding: 0;
  float: none;
  width: 100%;
}

.ffw-cart .shipping-calculator-form .form-row:last-child,
.ffw-cart-page .shipping-calculator-form .form-row:last-child,
body.woocommerce-cart .shipping-calculator-form .form-row:last-child {
  margin-bottom: 0;
}

.ffw-cart .shipping-calculator-form label,
.ffw-cart-page .shipping-calculator-form label,
body.woocommerce-cart .shipping-calculator-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.ffw-cart .shipping-calculator-form select:not(.ffw-select__native):not(.ff-vtp-province):not(.ff-vtp-ward):not(.select2-hidden-accessible),
.ffw-cart-page .shipping-calculator-form select:not(.ffw-select__native):not(.ff-vtp-province):not(.ff-vtp-ward):not(.select2-hidden-accessible),
.ffw-cart .shipping-calculator-form input.input-text,
.ffw-cart-page .shipping-calculator-form input.input-text,
body.woocommerce-cart .shipping-calculator-form select:not(.ffw-select__native):not(.ff-vtp-province):not(.ff-vtp-ward):not(.select2-hidden-accessible),
body.woocommerce-cart .shipping-calculator-form input.input-text {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* Never show pink custom select chrome inside shipping calculator */
.ffw-cart .shipping-calculator-form .ffw-select__button,
.ffw-cart-page .shipping-calculator-form .ffw-select__button,
.ffw-cart .shipping-calculator-form .ffw-select__list,
.ffw-cart-page .shipping-calculator-form .ffw-select__list,
body.woocommerce-cart .shipping-calculator-form .ffw-select__button,
body.woocommerce-cart .shipping-calculator-form .ffw-select__list {
  display: none !important;
}

.ffw-cart .shipping-calculator-form .ffw-select,
.ffw-cart-page .shipping-calculator-form .ffw-select,
body.woocommerce-cart .shipping-calculator-form .ffw-select {
  display: block;
  width: 100%;
  min-width: 0;
}

.ffw-cart .shipping-calculator-form .ffw-select .ffw-select__native,
.ffw-cart-page .shipping-calculator-form .ffw-select .ffw-select__native,
body.woocommerce-cart .shipping-calculator-form .ffw-select .ffw-select__native {
  position: static !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  clip: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  white-space: normal !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
}

.ffw-cart .shipping-calculator-form .select2-container,
.ffw-cart-page .shipping-calculator-form .select2-container,
body.woocommerce-cart .shipping-calculator-form .select2-container {
  width: 100% !important;
}

.ffw-cart .shipping-calculator-form .select2-container--default .select2-selection--single,
.ffw-cart-page .shipping-calculator-form .select2-container--default .select2-selection--single,
body.woocommerce-cart .shipping-calculator-form .select2-container--default .select2-selection--single {
  min-height: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
}

.ffw-cart .shipping-calculator-form .select2-container--default .select2-selection--single .select2-selection__rendered,
.ffw-cart-page .shipping-calculator-form .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-cart .shipping-calculator-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  line-height: 42px;
  padding-left: 14px;
  padding-right: 28px;
}

.ffw-cart .shipping-calculator-form .select2-container--default .select2-selection--single .select2-selection__arrow,
.ffw-cart-page .shipping-calculator-form .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-cart .shipping-calculator-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

.ffw-cart .shipping-calculator-form .button,
.ffw-cart-page .shipping-calculator-form .button,
body.woocommerce-cart .shipping-calculator-form .button {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.ffw-cart .shipping-calculator-form .button:hover,
.ffw-cart-page .shipping-calculator-form .button:hover,
body.woocommerce-cart .shipping-calculator-form .button:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

.ffw-cart #shipping_method,
.ffw-cart-page #shipping_method,
body.woocommerce-cart #shipping_method {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.ffw-cart #shipping_method li,
.ffw-cart-page #shipping_method li,
body.woocommerce-cart #shipping_method li {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ffw-cart #shipping_method li label,
.ffw-cart-page #shipping_method li label,
body.woocommerce-cart #shipping_method li label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ffw-cart .cart_totals p small,
.ffw-cart-page .cart_totals p small {
  opacity: 0.65;
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Totals rows: flat list inside the summary card (no nested table box) */

.ffw-cart .wc-proceed-to-checkout,
.ffw-cart-page .wc-proceed-to-checkout {
  padding-top: 16px;
}

.ffw-cart .wc-proceed-to-checkout a.checkout-button,
.ffw-cart-page .wc-proceed-to-checkout a.checkout-button {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 4px;
}

.ffw-cart .coupon,
.ffw-cart-page .coupon,
body.woocommerce-cart .coupon {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  float: none;
  margin: 0 !important;
  padding: 12px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}

.ffw-cart .coupon .input-text#coupon_code,
.ffw-cart-page .coupon .input-text#coupon_code,
.ffw-cart .coupon input.input-text,
.ffw-cart-page .coupon input.input-text {
  flex: 1 1 160px;
  min-width: 0;
  width: auto !important;
  height: 44px;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 500;
  box-shadow: none !important;
  outline: none;
}

.ffw-cart .coupon .input-text#coupon_code::placeholder,
.ffw-cart-page .coupon .input-text#coupon_code::placeholder,
.ffw-cart .coupon input.input-text::placeholder,
.ffw-cart-page .coupon input.input-text::placeholder {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.ffw-cart .coupon .input-text#coupon_code:focus,
.ffw-cart-page .coupon .input-text#coupon_code:focus,
.ffw-cart .coupon input.input-text:focus,
.ffw-cart-page .coupon input.input-text:focus {
  border-color: rgba(255, 0, 144, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 144, 0.15);
}

.ffw-cart .coupon .button,
.ffw-cart-page .coupon .button,
.ffw-cart .coupon button[name="apply_coupon"],
.ffw-cart-page .coupon button[name="apply_coupon"] {
  flex: 0 0 auto;
  height: 44px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ff-accent, #ff0090) !important;
  color: #fff !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 0, 144, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.ffw-cart .coupon .button:hover,
.ffw-cart-page .coupon .button:hover,
.ffw-cart .coupon button[name="apply_coupon"]:hover,
.ffw-cart-page .coupon button[name="apply_coupon"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 0, 144, 0.34);
  color: #fff !important;
}

.ffw-cart .ffw-cart-actions > .button[name="update_cart"],
.ffw-cart-page .ffw-cart-actions > .button[name="update_cart"],
body.woocommerce-cart .ffw-cart-actions > .button[name="update_cart"],
.ffw-cart td.actions > .button[name="update_cart"],
.ffw-cart-page td.actions > .button[name="update_cart"],
body.woocommerce-cart td.actions > .button[name="update_cart"] {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0 !important;
  height: 44px;
  padding: 0 20px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none;
  white-space: nowrap;
}

.ffw-cart td.actions > .button[name="update_cart"]:hover,
.ffw-cart-page td.actions > .button[name="update_cart"]:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .ffw-cart .ffw-cart-actions,
  .ffw-cart-page .ffw-cart-actions,
  body.woocommerce-cart .ffw-cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ffw-cart .coupon,
  .ffw-cart-page .coupon,
  body.woocommerce-cart .coupon {
    width: 100%;
    margin-bottom: 0 !important;
  }

  .ffw-cart .coupon .button,
  .ffw-cart-page .coupon .button,
  .ffw-cart .coupon button[name="apply_coupon"],
  .ffw-cart-page .coupon button[name="apply_coupon"],
  body.woocommerce-cart .coupon .button,
  body.woocommerce-cart .coupon button[name="apply_coupon"] {
    width: 100%;
  }

  .ffw-cart .woocommerce,
  .ffw-cart-page .woocommerce,
  .ffw-cart-page .entry-content .woocommerce,
  body.woocommerce-cart .entry-content .woocommerce {
    grid-template-columns: 1fr !important;
  }

  .ffw-cart form.woocommerce-cart-form,
  .ffw-cart-page form.woocommerce-cart-form,
  body.woocommerce-cart form.woocommerce-cart-form,
  .ffw-cart .cart-collaterals,
  .ffw-cart-page .cart-collaterals,
  body.woocommerce-cart .cart-collaterals {
    grid-column: 1;
  }

  .ffw-cart .ffw-cart-actions > .button[name="update_cart"],
  .ffw-cart-page .ffw-cart-actions > .button[name="update_cart"],
  body.woocommerce-cart .ffw-cart-actions > .button[name="update_cart"] {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ffw-cart .cart_totals table.shop_table_responsive tr,
  .ffw-cart-page .cart_totals table.shop_table_responsive tr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ffw-cart .cart_totals table.shop_table_responsive tr th,
  .ffw-cart-page .cart_totals table.shop_table_responsive tr th {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0 !important;
  }

  .ffw-cart .cart_totals table.shop_table_responsive tr td,
  .ffw-cart-page .cart_totals table.shop_table_responsive tr td {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0 !important;
    text-align: right;
  }

  .ffw-cart .cart_totals table.shop_table_responsive tr td::before,
  .ffw-cart-page .cart_totals table.shop_table_responsive tr td::before {
    display: none;
  }

  .ffw-cart .cart_totals tr.order-total,
  .ffw-cart-page .cart_totals tr.order-total {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 0;
    padding-top: 16px;
    margin-top: 4px;
  }
}

/* Checkout: preserve #payment and form structure — style only */
.ffw-checkout .woocommerce,
.ffw-checkout-page .woocommerce,
body.woocommerce-checkout .entry-content .woocommerce {
  max-width: 1100px;
  margin-inline: auto;
  color: var(--ff-text, #fff);
}

.ffw-checkout form.checkout.woocommerce-checkout,
.ffw-checkout-page form.checkout.woocommerce-checkout,
body.woocommerce-checkout form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
  align-items: start;
}

.ffw-checkout form.checkout > .woocommerce-NoticeGroup,
.ffw-checkout form.checkout > .woocommerce-notices-wrapper,
.ffw-checkout-page form.checkout > .woocommerce-NoticeGroup,
body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
  grid-column: 1 / -1;
}

.ffw-checkout #customer_details,
.ffw-checkout-page #customer_details,
body.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  margin: 0;
  float: none !important;
  width: auto !important;
  box-sizing: border-box;
}

.ffw-checkout #customer_details .col-1,
.ffw-checkout #customer_details .col-2,
.ffw-checkout-page #customer_details .col-1,
.ffw-checkout-page #customer_details .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none;
  padding: 0;
  margin: 0;
}

.ffw-checkout #customer_details .col-2 {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ffw-checkout #order_review_heading,
.ffw-checkout-page #order_review_heading,
body.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 24px 24px 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  box-sizing: border-box;
}

.ffw-checkout #order_review,
.ffw-checkout-page #order_review,
body.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 18px 24px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  box-sizing: border-box;
}

.ffw-checkout .woocommerce-billing-fields h3,
.ffw-checkout .woocommerce-shipping-fields h3,
.ffw-checkout .woocommerce-additional-fields h3,
.ffw-checkout-page .woocommerce-billing-fields h3,
.ffw-checkout-page .woocommerce-shipping-fields h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}

.ffw-checkout .form-row,
.ffw-checkout-page .form-row {
  margin: 0 0 14px;
  padding: 0;
}

.ffw-checkout .form-row label,
.ffw-checkout-page .form-row label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.ffw-checkout .form-row .required,
.ffw-checkout-page .form-row .required {
  color: var(--ff-accent, #ff0090);
  text-decoration: none;
  border: 0;
}

.ffw-checkout input.input-text,
.ffw-checkout textarea,
.ffw-checkout-page input.input-text,
.ffw-checkout-page textarea,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
  box-shadow: none;
}

.ffw-checkout textarea,
.ffw-checkout-page textarea {
  min-height: 96px;
  resize: vertical;
}

.ffw-checkout input.input-text:focus,
.ffw-checkout textarea:focus,
.ffw-checkout-page input.input-text:focus,
.ffw-checkout-page textarea:focus {
  border-color: rgba(255, 0, 144, 0.55);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 144, 0.15);
}

/* Native selects in checkout (non-Select2) */
.ffw-checkout select:not(.ffw-select__native):not(.select2-hidden-accessible):not(.ff-vtp-province):not(.ff-vtp-ward),
.ffw-checkout-page select:not(.ffw-select__native):not(.select2-hidden-accessible):not(.ff-vtp-province):not(.ff-vtp-ward) {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-weight: 500;
  padding: 0 36px 0 14px;
}

/* Select2 (VTP province / ward) — match dark card inputs */
.ffw-checkout .select2-container,
.ffw-checkout-page .select2-container,
body.woocommerce-checkout .select2-container {
  width: 100% !important;
}

.ffw-checkout .select2-container--default .select2-selection--single,
.ffw-checkout-page .select2-container--default .select2-selection--single,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
  min-height: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
}

.ffw-checkout .select2-container--default .select2-selection--single .select2-selection__rendered,
.ffw-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  line-height: 42px;
  padding-left: 14px;
  padding-right: 28px;
}

.ffw-checkout .select2-container--default .select2-selection--single .select2-selection__arrow,
.ffw-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

.ffw-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder,
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.ffw-checkout .woocommerce-checkout-review-order-table,
.ffw-checkout-page .woocommerce-checkout-review-order-table,
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 0 16px;
}

.ffw-checkout .woocommerce-checkout-review-order-table th,
.ffw-checkout .woocommerce-checkout-review-order-table td,
.ffw-checkout-page .woocommerce-checkout-review-order-table th,
.ffw-checkout-page .woocommerce-checkout-review-order-table td {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 10px 0 !important;
  background: transparent !important;
  color: inherit;
  vertical-align: top;
}

.ffw-checkout .woocommerce-checkout-review-order-table tfoot th,
.ffw-checkout-page .woocommerce-checkout-review-order-table tfoot th {
  font-weight: 600;
  text-align: left;
}

.ffw-checkout .woocommerce-checkout-review-order-table tfoot td,
.ffw-checkout-page .woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
}

.ffw-checkout .woocommerce-checkout-review-order-table .order-total th,
.ffw-checkout .woocommerce-checkout-review-order-table .order-total td,
.ffw-checkout-page .woocommerce-checkout-review-order-table .order-total th,
.ffw-checkout-page .woocommerce-checkout-review-order-table .order-total td {
  border-bottom: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding-top: 16px !important;
  font-size: 1.1rem;
  font-weight: 800;
}

.ffw-checkout #payment,
.ffw-checkout-page #payment,
body.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 16px;
  margin: 0;
  padding: 0;
}

.ffw-checkout #payment ul.payment_methods,
.ffw-checkout-page #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border: 0 !important;
}

.ffw-checkout #payment ul.payment_methods li,
.ffw-checkout-page #payment ul.payment_methods li {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ffw-checkout #payment ul.payment_methods li label,
.ffw-checkout-page #payment ul.payment_methods li label {
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.ffw-checkout #payment div.payment_box,
.ffw-checkout-page #payment div.payment_box {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ffw-checkout #payment div.payment_box::before,
.ffw-checkout-page #payment div.payment_box::before {
  display: none;
}

.ffw-checkout #payment .place-order,
.ffw-checkout-page #payment .place-order {
  margin: 0;
  padding: 8px 0 0;
  border: 0 !important;
}

.ffw-checkout #place_order,
.ffw-checkout-page #place_order,
body.woocommerce-checkout #place_order {
  display: block;
  width: 100%;
  height: 48px;
  margin: 8px 0 0;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--ff-accent, #ff0090) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(255, 0, 144, 0.28);
  cursor: pointer;
}

.ffw-checkout #place_order:hover,
.ffw-checkout-page #place_order:hover {
  filter: brightness(1.06);
}

.ffw-checkout .woocommerce-form-coupon-toggle,
.ffw-checkout-page .woocommerce-form-coupon-toggle,
.ffw-checkout .woocommerce-form-login-toggle,
.ffw-checkout-page .woocommerce-form-login-toggle {
  margin-bottom: 16px;
}

.ffw-checkout .woocommerce-form-coupon,
.ffw-checkout-page .woocommerce-form-coupon,
.ffw-checkout .woocommerce-form-login,
.ffw-checkout-page .woocommerce-form-login {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.ffw-checkout .woocommerce-privacy-policy-text,
.ffw-checkout-page .woocommerce-privacy-policy-text {
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.45;
  margin: 0 0 8px;
}

.ffw-checkout .woocommerce-terms-and-conditions-wrapper,
.ffw-checkout-page .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .ffw-checkout form.checkout.woocommerce-checkout,
  .ffw-checkout-page form.checkout.woocommerce-checkout,
  body.woocommerce-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr;
  }

  .ffw-checkout #customer_details,
  .ffw-checkout-page #customer_details,
  body.woocommerce-checkout #customer_details,
  .ffw-checkout #order_review_heading,
  .ffw-checkout-page #order_review_heading,
  body.woocommerce-checkout #order_review_heading,
  .ffw-checkout #order_review,
  .ffw-checkout-page #order_review,
  body.woocommerce-checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  .ffw-checkout #order_review_heading,
  .ffw-checkout-page #order_review_heading,
  body.woocommerce-checkout #order_review_heading {
    margin-top: 8px;
  }
}

/* Account: CSS only — do not hide menu endpoints / alter SSO forms.
   Nav + content must sit side-by-side. Earlier rules set both to
   width:100% + float:none; if the parent grid did not win, everything
   stacked full-bleed. Use WC-style float columns (narrower nav). */
.ffw-account .woocommerce,
.ffw-account-page .woocommerce,
body.woocommerce-account .entry-content .woocommerce,
body.woocommerce-account .woocommerce {
  max-width: 1100px;
  margin-inline: auto;
  color: var(--ff-text, #fff);
  display: block !important;
}

.ffw-account .woocommerce::after,
.ffw-account-page .woocommerce::after,
body.woocommerce-account .woocommerce::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

.ffw-account .woocommerce > .woocommerce-notices-wrapper,
.ffw-account-page .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
  display: block;
  width: 100%;
  clear: both;
  margin-bottom: 16px;
}

/* Left rail — fixed narrow column, not full row */
.ffw-account .woocommerce-MyAccount-navigation,
.ffw-account-page .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
  float: left !important;
  width: 200px !important;
  max-width: 200px !important;
  margin: 0 24px 0 0 !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 14px;
  box-sizing: border-box;
}

.ffw-account .woocommerce-MyAccount-navigation ul,
.ffw-account-page .woocommerce-MyAccount-navigation ul,
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ffw-account .woocommerce-MyAccount-navigation li,
body.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border: 0 !important;
  list-style: none;
}

.ffw-account .woocommerce-MyAccount-navigation a,
body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  line-height: 1.3;
}

.ffw-account .woocommerce-MyAccount-navigation li.is-active a,
.ffw-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Right pane — beside nav, not under it */
.ffw-account .woocommerce-MyAccount-content,
.ffw-account-page .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-content,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
  float: right !important;
  width: calc(100% - 224px) !important;
  max-width: calc(100% - 224px) !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.ffw-account .woocommerce-MyAccount-content::after,
.ffw-account .woocommerce-MyAccount-content::before {
  display: none !important;
  content: none !important;
}

.ffw-account .woocommerce-MyAccount-content > *:not(:last-child),
.ffw-account .woocommerce-MyAccount-content p,
.ffw-account .woocommerce-MyAccount-content .woocommerce-info {
  margin-bottom: 14px;
}

.ffw-account .woocommerce-MyAccount-content h2,
.ffw-account .woocommerce-MyAccount-content h3 {
  font-weight: 800;
  margin: 0 0 14px;
  font-size: 1.15rem;
}

/* Login / register (guest) */
.ffw-account #customer_login.col2-set,
.ffw-account .u-columns.col2-set,
.ffw-account-page #customer_login.col2-set,
body.woocommerce-account #customer_login.col2-set {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  float: none !important;
}

.ffw-account #customer_login .u-column1,
.ffw-account #customer_login .u-column2,
.ffw-account #customer_login .col-1,
.ffw-account #customer_login .col-2,
.ffw-account .woocommerce-Addresses .u-column1,
.ffw-account .woocommerce-Addresses .u-column2,
.ffw-account .woocommerce-Addresses .col-1,
.ffw-account .woocommerce-Addresses .col-2,
body.woocommerce-account .woocommerce-Addresses .col-1,
body.woocommerce-account .woocommerce-Addresses .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-sizing: border-box;
}

.ffw-account .woocommerce-Addresses.col2-set,
.ffw-account-page .woocommerce-Addresses.col2-set,
body.woocommerce-account .woocommerce-Addresses.col2-set {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  float: none !important;
}

.ffw-account .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ffw-account .woocommerce-Address-title h2,
.ffw-account .woocommerce-Address-title h3 {
  margin: 0;
}

.ffw-account .woocommerce-Address address {
  font-style: normal;
  line-height: 1.55;
  opacity: 0.9;
}

/* Guest login when registration is off — single form card */
.ffw-account form.woocommerce-form-login:not(#customer_login form),
.ffw-account .woocommerce > form.login,
.ffw-account .woocommerce > form.woocommerce-form-login,
.ffw-account .woocommerce > form.lost_reset_password,
.ffw-account form.woocommerce-ResetPassword,
.ffw-account form.woocommerce-EditAccountForm,
.ffw-account form.woocommerce-address-fields {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  box-sizing: border-box;
}

.ffw-account #customer_login form.woocommerce-form-login,
.ffw-account #customer_login form.woocommerce-form-register,
.ffw-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
.ffw-account .woocommerce-MyAccount-content form.woocommerce-address-fields {
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.ffw-account .woocommerce form .form-row,
.ffw-account-page .woocommerce form .form-row {
  margin: 0 0 14px;
  padding: 0;
  float: none !important;
  width: 100% !important;
}

.ffw-account .woocommerce form .form-row-first,
.ffw-account .woocommerce form .form-row-last {
  float: none !important;
  width: 100% !important;
}

.ffw-account .woocommerce form .form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.ffw-account .woocommerce form .form-row .woocommerce-input-wrapper,
.ffw-account .woocommerce form .form-row input.input-text,
.ffw-account .woocommerce form .form-row textarea,
.ffw-account .woocommerce form .form-row select {
  width: 100%;
  max-width: 100%;
}

.ffw-account .woocommerce form .show-password-input {
  right: 12px;
}

/* Account details — Save changes on its own row (not stuck to password fieldset) */
.ffw-account form.woocommerce-EditAccountForm fieldset,
body.woocommerce-account form.woocommerce-EditAccountForm fieldset {
  margin: 8px 0 0;
  padding: 18px 0 4px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ffw-account form.woocommerce-EditAccountForm fieldset legend,
body.woocommerce-account form.woocommerce-EditAccountForm fieldset legend {
  padding: 0;
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 1.05rem;
  float: none;
  width: auto;
}

.ffw-account form.woocommerce-EditAccountForm > .clear,
body.woocommerce-account form.woocommerce-EditAccountForm > .clear {
  clear: both !important;
  display: block;
  width: 100%;
  height: 0;
}

.ffw-account form.woocommerce-EditAccountForm p:has(> button[name="save_account_details"]),
.ffw-account form.woocommerce-EditAccountForm p:has(> .woocommerce-Button),
body.woocommerce-account form.woocommerce-EditAccountForm p:has(> button[name="save_account_details"]) {
  clear: both !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 22px 0 0 !important;
  padding: 20px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.ffw-account form.woocommerce-EditAccountForm button[name="save_account_details"],
.ffw-account form.woocommerce-EditAccountForm button.woocommerce-Button,
body.woocommerce-account form.woocommerce-EditAccountForm button[name="save_account_details"] {
  float: none !important;
  clear: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  position: static !important;
}

/* Same treatment for Save address */
.ffw-account .woocommerce-address-fields > p:has(> button[name="save_address"]),
body.woocommerce-account .woocommerce-address-fields > p:has(> button[name="save_address"]) {
  clear: both !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  margin: 22px 0 0 !important;
  padding: 20px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100% !important;
}

.ffw-account .woocommerce-address-fields button[name="save_address"],
body.woocommerce-account .woocommerce-address-fields button[name="save_address"] {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* Orders / downloads / view-order tables — keep real table layout */
.ffw-account table.shop_table,
.ffw-account-page table.shop_table,
body.woocommerce-account table.shop_table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse;
  background: transparent;
  border: 0;
  margin: 0 0 16px;
}

.ffw-account table.shop_table thead {
  display: table-header-group;
}

.ffw-account table.shop_table tbody {
  display: table-row-group;
}

.ffw-account table.shop_table tr {
  display: table-row;
}

.ffw-account table.shop_table th,
.ffw-account table.shop_table td {
  display: table-cell;
  border-color: rgba(255, 255, 255, 0.1) !important;
  padding: 12px 10px;
  vertical-align: middle;
  color: inherit;
  float: none !important;
  width: auto !important;
}

.ffw-account table.shop_table thead th {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.75;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: transparent !important;
}

.ffw-account .woocommerce-orders-table__cell-order-actions .button,
.ffw-account .woocommerce-pagination .button,
.ffw-account .woocommerce-Button {
  display: inline-block;
  margin: 2px 4px 2px 0;
}

.ffw-account .woocommerce-pagination {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .ffw-account .woocommerce-MyAccount-navigation,
  .ffw-account-page .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation,
  .ffw-account .woocommerce-MyAccount-content,
  .ffw-account-page .woocommerce-MyAccount-content,
  body.woocommerce-account .woocommerce-MyAccount-content,
  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 16px !important;
  }

  .ffw-account #customer_login.col2-set,
  .ffw-account .woocommerce-Addresses.col2-set,
  body.woocommerce-account #customer_login.col2-set,
  body.woocommerce-account .woocommerce-Addresses.col2-set {
    grid-template-columns: 1fr;
  }

  /* WC responsive tables stack cells — keep labels readable */
  .ffw-account table.shop_table_responsive thead {
    display: none !important;
  }

  .ffw-account table.shop_table_responsive tr {
    display: block !important;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px 12px;
  }

  .ffw-account table.shop_table_responsive td,
  .ffw-account table.shop_table_responsive th {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    border: 0 !important;
    padding: 8px 0 !important;
    text-align: right;
  }

  .ffw-account table.shop_table_responsive td::before {
    content: attr(data-title);
    font-weight: 700;
    opacity: 0.7;
    text-align: left;
    flex: 0 1 42%;
  }
}

/* WC messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 14px !important;
  border-top: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.woocommerce-error {
  background: rgba(220, 50, 50, 0.25) !important;
}
