/* ═══════════════════════════════════════════════
   FF WHEELS — CART / CHECKOUT / THANK YOU
   Bento Design System · Apple-Card Style
   ═══════════════════════════════════════════════ */

/* ── Steps in hero (dark bg, white text) ── */
.ff-checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.ff-checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
}
.ff-checkout-step span {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-checkout-step.is-done { color: rgba(255,255,255,.7); }
.ff-checkout-step.is-done span { background: rgba(255,255,255,.3); color: #fff; }
.ff-checkout-step.is-active { color: #fff; font-weight: 700; }
.ff-checkout-step.is-active span { background: #fff; color: var(--text); }
.ff-checkout-step__line {
  width: 24px; height: 1px;
  background: rgba(255,255,255,.2);
  margin: 0 4px;
}
.ff-checkout-step__line.is-done { background: rgba(255,255,255,.5); }

/* ── Page background for Cart / Checkout / Thankyou ── */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-order-received {
  background: var(--bg) !important;
  color: var(--text);
}

/* ── Page wrapper ── */
.ff-checkout-page {
  background: transparent;
  padding: 36px 0 80px;
  font-family: var(--font);
  color: var(--text);
}
/* .ff-checkout-page .fx inherits the standard .fx from homepage.css (--max = 1440px) — no override needed */
.ff-page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ff-page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: color .2s;
}
.ff-page-header__back:hover { color: var(--text); }
.ff-page-header__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ── Progress steps ── */
.ff-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.ff-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
}
.ff-step__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-step.is-done .ff-step__num  { background: var(--text); color: #fff; }
.ff-step.is-active .ff-step__num { background: var(--accent); color: #fff; }
.ff-step.is-active { color: var(--text); font-weight: 600; }
.ff-step__line {
  width: 32px; height: 1px;
  background: var(--border);
  margin: 0 4px;
}
.ff-step__line.is-done { background: var(--text); }

/* ── 2-col grid ── */
.ff-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .ff-checkout-grid { grid-template-columns: 1fr; }
}

/* ── Bento cards ── */
.ff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.ff-card__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.ff-card__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ff-card__title { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.ff-card__subtitle { font-size: 12px; color: var(--text2); margin: 0; }
.ff-card__body { padding: 24px; }

/* ── Cart item rows ── */
.ff-cart-items { display: flex; flex-direction: column; gap: 0; }
.ff-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.ff-cart-item:last-child { border-bottom: none; }
.ff-cart-item:hover { background: var(--bg); }

.ff-cart-item__img {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ff-cart-item__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4px;
}
.ff-cart-item__info { min-width: 0; }
.ff-cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff-cart-item__name:hover { color: var(--accent); }
.ff-cart-item__meta { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* HSN/TSN badge in cart */
.ff-hsn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}
.ff-hsn-badge__edit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  transition: color .2s;
  font-family: inherit;
}
.ff-hsn-badge__edit:hover { color: var(--accent); }

/* Qty stepper in cart row */
.ff-cart-item__qty { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: visible; width: fit-content; flex-shrink: 0; }
.ff-cart-item__qty button { width: 30px; height: 30px; background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--text); font-family: inherit; transition: background .15s; }
.ff-cart-item__qty button:hover { background: var(--border); }
.ff-cart-item__qty input { width: 40px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: transparent; font-size: 14px; font-weight: 700; color: #1D1D1F; -webkit-text-fill-color: #1D1D1F; font-family: inherit; -moz-appearance: textfield; appearance: textfield; outline: none; height: 30px; line-height: 30px; padding: 0; box-sizing: border-box; }
.ff-cart-item__qty input::-webkit-inner-spin-button, .ff-cart-item__qty input::-webkit-outer-spin-button { display: none; }
/* Compact variant — for inline row next to HSN/TSN badge */
.ff-cart-item__qty--sm button { width: 26px; height: 26px; font-size: 13px; }
.ff-cart-item__qty--sm input { width: 36px !important; height: 26px; font-size: 13px; line-height: 26px; box-sizing: border-box; padding: 0; }

.ff-cart-item__right { text-align: right; }
.ff-cart-item__price { font-size: 15px; font-weight: 700; color: var(--text); }
.ff-cart-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  font-size: 18px;
  text-decoration: none;
  margin-top: 8px;
  margin-left: auto;
  transition: background .2s, color .2s;
}
.ff-cart-item__remove:hover { background: rgba(239,68,68,.1); color: #ef4444; }

/* ── Cart actions bar ── */
.ff-cart-actions {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--card);
  border-radius: 0 0 var(--r) var(--r);
}
.ff-coupon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-coupon input[type="text"] {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  width: 160px;
  transition: border-color .2s;
}
.ff-coupon input:focus { border-color: var(--text); }

/* ── Order summary card (right) ── */
.ff-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.ff-summary-row:last-child { border-bottom: none; }
.ff-summary-row__label { color: var(--text2); }
.ff-summary-row__value { font-weight: 600; color: var(--text); }
.ff-summary-row--total .ff-summary-row__label { font-size: 15px; font-weight: 700; color: var(--text); }
.ff-summary-row--total .ff-summary-row__value { font-size: 22px; font-weight: 800; color: var(--text); }

.ff-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  border-radius: var(--r-sm);
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: opacity .2s;
}
.ff-checkout-btn:hover { opacity: .85; color: #fff; }

/* Trust badges under CTA */
.ff-trust-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.ff-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}
.ff-trust-pill svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Checkout form fields ── */
.woocommerce-checkout .woocommerce input[type="text"],
.woocommerce-checkout .woocommerce input[type="email"],
.woocommerce-checkout .woocommerce input[type="tel"],
.woocommerce-checkout .woocommerce input[type="number"],
.woocommerce-checkout .woocommerce select,
.woocommerce-checkout .woocommerce textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.woocommerce-checkout .woocommerce input:focus,
.woocommerce-checkout .woocommerce select:focus,
.woocommerce-checkout .woocommerce textarea:focus { border-color: var(--text); }
.woocommerce-checkout .woocommerce label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.woocommerce-checkout .woocommerce label .required { color: var(--accent); }
.woocommerce-checkout .woocommerce .form-row { margin-bottom: 14px; }
.woocommerce-checkout .woocommerce .form-row-first,
.woocommerce-checkout .woocommerce .form-row-last { width: 48%; }
.woocommerce-checkout .woocommerce .form-row-first { float: left; }
.woocommerce-checkout .woocommerce .form-row-last  { float: right; }
.woocommerce-checkout .woocommerce .form-row-wide  { width: 100%; clear: both; }
.woocommerce-checkout .woocommerce .form-row::after { content: ''; display: table; clear: both; }

/* Place order button (WC injected) */
.woocommerce-checkout #place_order,
.woocommerce #place_order {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  padding: 16px !important;
  border-radius: var(--r-sm) !important;
  background: var(--text) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer;
  font-family: var(--font) !important;
  transition: opacity .2s;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.woocommerce-checkout #place_order:hover { opacity: .85; }

/* Order review table in checkout right */
.woocommerce-checkout-review-order table {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-checkout-review-order table td,
.woocommerce-checkout-review-order table th {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.woocommerce-checkout-review-order table th { color: var(--text2); font-weight: 600; }
.woocommerce-checkout-review-order .order-total td,
.woocommerce-checkout-review-order .order-total th { font-size: 16px; font-weight: 800; border-bottom: none; }
.woocommerce-checkout-review-order-table thead { display: none; }

/* Payment section */
#payment { margin-top: 20px; }
#payment .payment_methods { list-style: none; margin: 0; padding: 0; }
#payment .payment_methods li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
#payment .payment_methods li:last-child { border-bottom: none; }
#payment .payment_methods li label { font-size: 14px; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: 0; }
#payment .payment_box {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text2);
}

/* ── Thank You page ── */
.ff-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.ff-thankyou__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.ff-thankyou__icon svg { width: 36px; height: 36px; color: #16a34a; }
.ff-thankyou__title { font-size: 28px; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.ff-thankyou__sub { font-size: 15px; color: var(--text2); margin: 0 0 36px; line-height: 1.6; }

.ff-thankyou__details {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 24px;
  text-align: left;
}
.ff-thankyou__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.ff-thankyou__detail-row:last-child { border-bottom: none; }
.ff-thankyou__detail-label { color: var(--text2); font-weight: 500; }
.ff-thankyou__detail-value { font-weight: 700; color: var(--text); }

.ff-thankyou__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ── WC notices override ── */
.woocommerce-message,
.woocommerce-info {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-left: 4px solid var(--accent) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  padding: 14px 20px !important;
  font-size: 14px;
}
.woocommerce-error {
  background: rgba(239,68,68,.06) !important;
  border: 1px solid rgba(239,68,68,.2) !important;
  border-left: 4px solid #ef4444 !important;
  border-radius: var(--r-sm) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  padding: 14px 20px !important;
  list-style: none;
  font-size: 14px;
}

/* ── Small button helpers ── */
.ff-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  transition: all .2s;
}
.ff-btn-sm:hover { border-color: var(--text); color: var(--text); }
.ff-btn-sm--fill {
  background: var(--text);
  color: #fff !important;
  border-color: var(--text);
}
.ff-btn-sm--fill:hover { opacity: .85; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .ff-checkout-page { padding: 20px 0 60px; }
  .ff-page-header__inner { flex-wrap: wrap; }
  .ff-steps { display: none; }
  .ff-cart-item { grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 16px; }
  .ff-cart-item__img { width: 56px; height: 56px; }
  .ff-cart-actions { flex-direction: column; align-items: stretch; }
  .ff-coupon { flex-direction: column; }
  .ff-coupon input { width: 100%; }
}

/* ── Express Payment Buttons (Stripe / Apple Pay / Google Pay) ── */
.ff-express-payments {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ff-express-payments:empty { display: none; }
.ff-express-payments > * + * { margin-top: 8px; }
/* Divider label */
.ff-express-payments::before {
  content: 'Express Checkout';
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}
/* Stripe payment request button */
.ff-express-payments .wc-stripe-payment-request-button-separator { display: none; }
.ff-express-payments #wc-stripe-payment-request-button-instance,
.ff-express-payments .wc-stripe-payment-request-button { border-radius: var(--r-sm) !important; }

/* ── Checkout order review thumbnail row ── */
.woocommerce-checkout-review-order table.woocommerce-checkout-review-order-table td {
  vertical-align: middle;
  padding: 12px 0;
}
.woocommerce-checkout-review-order table.woocommerce-checkout-review-order-table .product-name {
  display: flex;
  align-items: center;
}

/* ── Flag dropdown scrollbar ── */
.ff-flag-dropdown div::-webkit-scrollbar { width: 4px; }
.ff-flag-dropdown div::-webkit-scrollbar-track { background: transparent; }
.ff-flag-dropdown div::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════════
   DAMINA MODAL SYSTEM — migrated & adapted to FF-Wheels CSS tokens
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Base modal overlay */
.dm-modal {
  display: none; position: fixed; inset: 0; z-index: 999999;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.dm-modal.is-open { display: flex; }
.dm-modal__backdrop { position: absolute; inset: 0; }

/* Modal content box */
.dm-modal__content {
  position: relative; background: var(--card, #fff);
  border-radius: var(--r, 16px); border: 1px solid var(--border, rgba(0,0,0,.07));
  max-width: 640px; width: 90%; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.18); animation: fadeInUp 0.28s ease; z-index: 1;
}

/* Modal header */
.dm-modal__header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
  position: sticky; top: 0; background: var(--card, #fff); z-index: 2;
}
.dm-modal__header-img {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; background: var(--bg, #f5f5f7);
  display: flex; align-items: center; justify-content: center;
}
.dm-modal__header-img img { width: 100%; height: 100%; object-fit: contain; }
.dm-modal__header-text { flex: 1; min-width: 0; }
.dm-modal__close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--text2, #6E6E73); font-size: 20px;
  transition: background .2s; flex-shrink: 0;
}
.dm-modal__close:hover { background: var(--bg, #f5f5f7); color: var(--text, #1D1D1F); }

/* Zoll / size tabs */
.dm-modal__tabs {
  display: flex; gap: 4px; padding: 0 24px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
  overflow-x: auto; position: sticky; top: 97px; background: var(--card, #fff); z-index: 2;
}
.dm-modal__tabs::-webkit-scrollbar { height: 0; }
.dm-modal__tab {
  padding: 14px 16px; font-size: 13px; font-weight: 700;
  color: var(--text2, #6E6E73); border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all .2s;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.dm-modal__tab.is-active, .dm-modal__tab:hover {
  color: var(--text, #1D1D1F); border-bottom-color: var(--text, #1D1D1F);
}

/* Modal body */
.dm-modal__body { padding: 24px; }

/* ── Gutachten: PCD badge, filter chips, PDF links ── */
.dm-gutachten-pcd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 12px; font-weight: 700;
  background: var(--bg, #f5f5f7); border-radius: 8px; color: var(--text, #1D1D1F);
  letter-spacing: .04em; margin-bottom: 12px;
}
.dm-gutachten-filters {
  display: flex; flex-direction: row; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; align-items: center;
}
.dm-gutachten-filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dm-gutachten-filter-label {
  font-size: 11px; font-weight: 700; color: var(--text2, #6E6E73);
  text-transform: uppercase; letter-spacing: .05em; margin-right: 2px;
}
.dm-gutachten-filter-chip {
  padding: 5px 12px; font-size: 12px; font-weight: 600; font-family: inherit;
  border: 1.5px solid var(--border, rgba(0,0,0,.1)); border-radius: 8px;
  background: var(--card, #fff); color: var(--text, #1D1D1F); cursor: pointer;
  transition: all .15s;
}
.dm-gutachten-filter-chip:hover { border-color: rgba(0,0,0,.22); }
.dm-gutachten-filter-chip.is-active {
  background: var(--text, #1D1D1F); color: #fff; border-color: var(--text, #1D1D1F);
}
.dm-gutachten-link-grid { display: flex; flex-direction: column; gap: 6px; }
.dm-gutachten-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--bg, #f5f5f7); border: 1px solid var(--border, rgba(0,0,0,.06));
  text-decoration: none; color: var(--text, #1D1D1F);
  font-size: 13px; font-weight: 600; transition: all .15s;
}
.dm-gutachten-link:hover {
  background: var(--card, #fff); border-color: var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.dm-gutachten-link__icon { font-size: 20px !important; color: #bf0711; flex-shrink: 0; }
.dm-gutachten-link span:nth-child(2) { flex: 1; }

/* ── HSN/TSN Modal (Damina style, adapted) ── */
.dm-hsn-modal__content { max-width: 480px !important; margin: auto; }
.dm-hsn-fields { display: flex; gap: 16px; }
.dm-hsn-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dm-hsn-field__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text, #1D1D1F);
}
.dm-hsn-field__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--text, #1D1D1F); color: #fff;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.dm-hsn-field__input {
  width: 100%; padding: 12px 14px; font-size: 18px; font-weight: 700;
  font-family: var(--font, 'Inter', sans-serif); letter-spacing: 3px;
  border: 1.5px solid var(--border, rgba(0,0,0,.1)); border-radius: 10px;
  background: var(--bg, #f5f5f7); color: var(--text, #1D1D1F);
  outline: none; transition: border-color .15s; text-transform: uppercase;
  box-sizing: border-box;
}
.dm-hsn-field__input:focus { border-color: var(--text, #1D1D1F); background: var(--card, #fff); }
.dm-hsn-field__input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text2); opacity: .5; }
.dm-hsn-field__hint { font-size: 11px; color: var(--text2, #6E6E73); font-weight: 500; }
.dm-hsn-field__error { font-size: 11px; color: #ef4444; font-weight: 600; min-height: 16px; }

/* HSN/TSN badge in cart / checkout / mini cart */
.dm-hsn-tsn-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--text2, #6E6E73);
  padding: 4px 10px; background: var(--bg, #f5f5f7);
  border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 6px; margin-top: 4px;
}
.dm-hsn-tsn-badge__label {
  font-weight: 700; color: var(--text2); font-size: 10px;
  text-transform: uppercase; letter-spacing: .04em;
}
.dm-hsn-tsn-badge__sep { color: var(--border, rgba(0,0,0,.15)); }

.dm-hsn-tsn-cart-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.dm-hsn-edit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid var(--border, rgba(0,0,0,.08)); background: var(--card, #fff);
  color: var(--text2, #6E6E73); cursor: pointer; transition: all .15s;
  padding: 0; flex-shrink: 0;
}
.dm-hsn-edit-btn:hover {
  border-color: var(--border); color: var(--text, #1D1D1F); background: var(--bg, #f5f5f7);
}

/* Save button in HSN/TSN modal */
.dm-hsn-save-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 24px; margin-top: 20px;
  background: var(--text, #1D1D1F); color: #fff; border: none;
  border-radius: var(--r-sm, 10px); font-size: 14px; font-weight: 700;
  font-family: var(--font, inherit); cursor: pointer; transition: opacity .15s;
}
.dm-hsn-save-btn:hover { opacity: .85; }
.dm-hsn-save-btn:disabled { opacity: .5; cursor: wait; }

/* ── Modal Tabs (same as PDP — DRY) ── */
.dm-hsn-modal__content { overflow: visible !important; max-height: none !important; }
.dm-modal__body { overflow: visible; }
.ff-modal-tabs { display: flex; gap: 4px; padding: 12px 24px; background: rgba(0,0,0,0.03); }
.ff-modal-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; background: none; color: rgba(0,0,0,0.4);
  cursor: pointer; border-radius: 10px; transition: all .2s;
  font-family: var(--font, inherit);
}
.ff-modal-tab:hover { color: rgba(0,0,0,0.7); background: rgba(0,0,0,0.03); }
.ff-modal-tab.is-active { color: #0a1017; background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.ff-modal-tab .material-symbols-rounded { font-size: 18px; }

/* ── Searchable Select ── */
.ff-modal-ss { position: relative; margin-bottom: 10px; }
.ff-modal-ss__trigger {
  width: 100%; text-align: left; padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 8px;
  background: #fafafa; font-size: 14px; color: #333;
  cursor: pointer; transition: border-color .2s;
  font-family: var(--font, inherit);
}
.ff-modal-ss__trigger:not([disabled]):hover { border-color: rgba(0,0,0,0.25); }
.ff-modal-ss__trigger[disabled] { opacity: .45; cursor: not-allowed; }
.ff-modal-ss__dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); display: none; max-height: 220px; overflow: hidden;
}
.ff-modal-ss.is-open .ff-modal-ss__dropdown { display: block; }
.ff-modal-ss__search { padding: 8px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ff-modal-ss__search input {
  width: 100%; padding: 8px 10px; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px; font-size: 13px; color: #333; outline: none; box-sizing: border-box;
}
.ff-modal-ss__options { overflow-y: auto; max-height: 170px; padding: 4px; }
.ff-modal-ss__option {
  padding: 8px 12px; font-size: 13px; color: #333;
  cursor: pointer; border-radius: 6px; transition: background .15s;
}
.ff-modal-ss__option:hover { background: rgba(0,0,0,0.04); }
.ff-modal-ss__option.is-selected { background: rgba(10,16,23,0.08); font-weight: 600; }
.ff-modal-ss__icon { position: absolute; right: 12px; top: 10px; pointer-events: none; color: rgba(0,0,0,0.3); font-size: 20px; }
.ff-modal-cascade__result {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #15803d; margin-top: 8px;
}

/* ── Qty stepper input: prevent WooCommerce/theme overrides ── */
.ff-cart-item__qty input.ff-qty-input,
.ff-cart-item__qty--sm input.ff-qty-input {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 48px !important;
  flex: 0 0 36px !important;
  color: #1D1D1F !important;
  -webkit-text-fill-color: #1D1D1F !important;
  background: transparent !important;
  opacity: 1 !important;
  line-height: normal !important;
  padding: 0 !important;
  text-indent: 0 !important;
  font-size: 13px !important;
  visibility: visible !important;
  overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   WOOCOMMERCE NOTICES — Bento-styled, contained in site layout
   ═══════════════════════════════════════════════════════════════════════ */

/* Wrapper that keeps notices inside the .fx grid */
.ff-wc-notices-wrap {
  width: 100%;
  background: var(--bg, #f5f5f7);
  padding: 16px 0 0;
}

/* Reset WooCommerce's default full-bleed notice styles */
.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  list-style: none !important;
  width: auto !important;
  float: none !important;
  clear: none !important;
}

/* Base notice pill style */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.ff-wc-notices-wrap .woocommerce-message,
.ff-wc-notices-wrap .woocommerce-info,
.ff-wc-notices-wrap .woocommerce-error {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  margin: 0 0 10px !important;
  line-height: 1.4 !important;
  border-left: 3px solid !important;
  background: var(--card, #fff) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.05) !important;
  list-style: none !important;
}

/* Success / updated */
.ff-wc-notices-wrap .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
  border-color: #22c55e !important;
  color: #15803d !important;
}
.ff-wc-notices-wrap .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-message::before {
  font-family: 'Material Symbols Rounded', sans-serif !important;
  content: 'check_circle' !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
  font-weight: 300 !important;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24 !important;
}

/* Info */
.ff-wc-notices-wrap .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info {
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}
.ff-wc-notices-wrap .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
  font-family: 'Material Symbols Rounded', sans-serif !important;
  content: 'info' !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24 !important;
}

/* Error */
.ff-wc-notices-wrap .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error {
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}
.ff-wc-notices-wrap .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-error::before {
  font-family: 'Material Symbols Rounded', sans-serif !important;
  content: 'error' !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24 !important;
}

/* Links inside notices (e.g. "Undo") */
.ff-wc-notices-wrap .woocommerce-message a,
.ff-wc-notices-wrap .woocommerce-info a,
.ff-wc-notices-wrap .woocommerce-error a,
.woocommerce-notices-wrapper .woocommerce-message a,
.woocommerce-notices-wrapper .woocommerce-info a,
.woocommerce-notices-wrapper .woocommerce-error a {
  margin-left: auto !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  color: inherit !important;
  opacity: .75 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
.ff-wc-notices-wrap a.button,
.woocommerce-notices-wrapper a.button {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════
   QTY INPUT — force dark color against white-body inheritance
   ═══════════════════════════════════════════════════════════ */
.ff-cart-item__qty input,
.ff-cart-item__qty input.ff-qty-input,
.ff-cart-item__qty--sm input,
.ff-cart-item__qty--sm input.ff-qty-input {
  color: #1D1D1F !important;
  -webkit-text-fill-color: #1D1D1F !important;
  opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════
   WC NOTICES — constrained inside .fx container
   ═══════════════════════════════════════════════════════════ */

/* The notices-wrapper is inside the cart page — limit its width + reset WC styles */
.ff-checkout-page .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-notices-wrapper {
  max-width: var(--fx-max, 1180px) !important;
  margin: 0 auto !important;
  padding: 16px var(--fx-pad, 24px) 0 !important;
  box-sizing: border-box !important;
}

/* Individual notice pills */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error li,
.woocommerce-notices-wrapper ul.woocommerce-error {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 13px 16px !important;
  margin: 0 0 10px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  list-style: none !important;
  background: var(--card, #fff) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.06) !important;
  border: none !important;
  border-left: 3px solid !important;
  color: var(--text, #1D1D1F) !important;
  -webkit-text-fill-color: var(--text, #1D1D1F) !important;
}

.woocommerce-notices-wrapper .woocommerce-message {
  border-color: #22c55e !important;
}
.woocommerce-notices-wrapper .woocommerce-info {
  border-color: #3b82f6 !important;
}
.woocommerce-notices-wrapper ul.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error li {
  border-color: #ef4444 !important;
}

/* Remove WC's own ::before icons — we rely on text */
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before {
  display: none !important;
}

/* Links / buttons inside notices */
.woocommerce-notices-wrapper .woocommerce-message a.restore-item,
.woocommerce-notices-wrapper .woocommerce-message a.button,
.woocommerce-notices-wrapper .woocommerce-info a.button {
  margin-left: auto !important;
  background: transparent !important;
  border: 1px solid var(--border, rgba(0,0,0,.12)) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--text, #1D1D1F) !important;
  -webkit-text-fill-color: var(--text, #1D1D1F) !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

/* ── Notices outer wrapper: aligns to content width ── */
.ff-notices-outer { background: var(--bg, #f5f5f7); padding: 12px 0 0; }
.ff-notices-outer .fx { display: block; }
.ff-notices-outer .woocommerce-notices-wrapper { width: 100%; }
.ff-notices-outer .woocommerce-notices-wrapper:empty { display: none; }
