.wolmart-fbt-v26 {
  --fbt-bg: #DDEFBA;
  --fbt-title: #263B0F;
  --fbt-green: #5B9E1B;
  --fbt-green-dark: #4A8518;
  --fbt-red: #E11A22;
  --fbt-text: #111;
  margin: 24px 0;
}
.wolmart-fbt-v26 * { box-sizing: border-box; }
.wolmart-fbt-v26 .wolmart-fbt-shell {
  padding: 18px 20px 20px;
  border: 0;
  border-radius: 18px;
  background: var(--fbt-bg);
  box-shadow: none;
}
.wolmart-fbt-v26 .wolmart-fbt-head {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  text-align: center;
}
.wolmart-fbt-v26 .wolmart-fbt-title {
  display: inline;
  margin: 0 !important;
  color: var(--fbt-title) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}
.wolmart-fbt-v26 .wolmart-fbt-offer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--fbt-green-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  margin-left: 7px;
  vertical-align: 3px;
  white-space: nowrap;
}
.wolmart-fbt-v26 .wolmart-fbt-mobile-scroll-hint { display: none; width: 100%; text-align: center; }

/* Desktop: products + equals + price card stay directly next to each other. */
.wolmart-fbt-v26 .wolmart-fbt-layout {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
}
.wolmart-fbt-v26 .wolmart-fbt-products-zone {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 250px);
}
.wolmart-fbt-v26 .wolmart-fbt-products-scroll {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wolmart-fbt-v26 .wolmart-fbt-products-scroll::-webkit-scrollbar { display: none; }
.wolmart-fbt-v26 .wolmart-fbt-product {
  flex: 0 0 198px;
  min-width: 198px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.wolmart-fbt-v26 .wolmart-fbt-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f3f3;
}
.wolmart-fbt-v26 .wolmart-fbt-product-image img {
  display: block;
  border-radius: 10px !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wolmart-fbt-v26 .wolmart-fbt-product-info { margin-top: 9px; }
.wolmart-fbt-v26 .wolmart-fbt-product-name {
  display: -webkit-box;
  min-height: 33px;
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--fbt-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.wolmart-fbt-v26 .wolmart-fbt-product-price {
  color: var(--fbt-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}
.wolmart-fbt-v26 .wolmart-fbt-operator {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}
.wolmart-fbt-v26 .wolmart-fbt-plus { margin: 0; }
.wolmart-fbt-v26 .wolmart-fbt-equals {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  font-size: 25px;
}

/* Same width as a product card and placed immediately after the products. */
.wolmart-fbt-v26 .wolmart-fbt-summary {
  flex: 0 0 198px;
  width: 198px;
  min-width: 198px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 14px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.wolmart-fbt-v26 .wolmart-fbt-summary-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wolmart-fbt-v26 .wolmart-fbt-regular {
  display: block;
  color: var(--fbt-red);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.05;
  text-decoration-thickness: 2px;
}
.wolmart-fbt-v26 .wolmart-fbt-bundle-total {
  display: block;
  color: var(--fbt-green);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
}
.wolmart-fbt-v26 .wolmart-fbt-saving {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  margin: 9px auto 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef1e9;
  color: var(--fbt-green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.wolmart-fbt-v26 .wolmart-fbt-saving strong { font-weight: 700; }
.wolmart-fbt-v26 .wolmart-fbt-saving.is-hidden { display: none; }
.wolmart-fbt-v26 .wolmart-fbt-form { margin: 0 !important; }
.wolmart-fbt-v26 .wolmart-fbt-buy-button {
  width: 100%;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 9px 9px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--fbt-green) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-transform: uppercase;
  box-shadow: none !important;
}
.wolmart-fbt-v26 .wolmart-fbt-buy-button:hover,
.wolmart-fbt-v26 .wolmart-fbt-buy-button:focus {
  background: var(--fbt-green-dark) !important;
  color: #fff !important;
}
.wolmart-fbt-v26 .wolmart-fbt-buy-button:disabled {
  opacity: .58;
  cursor: not-allowed;
}
.wolmart-fbt-v26 .wolmart-fbt-buy-button.is-loading { cursor: wait; }
.wolmart-fbt-v26 .wolmart-fbt-error {
  margin: 0 0 8px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff0f0;
  color: #a42121;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.wolmart-fbt-v26 .wolmart-fbt-mobile-scrollbar { display: none; }
.wolmart-fbt-locked-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #f8fafc;
  font-weight: 600;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .wolmart-fbt-v26 .wolmart-fbt-product {
    flex-basis: 182px;
    min-width: 182px;
  }
  .wolmart-fbt-v26 .wolmart-fbt-summary {
    flex-basis: 182px;
    width: 182px;
    min-width: 182px;
  }
}

@media (max-width: 767px) {
  .wolmart-fbt-v26 { margin: 18px 0; }
  .wolmart-fbt-v26 .wolmart-fbt-shell {
    padding: 12px 0 14px;
    border-radius: 16px;
    background: var(--fbt-bg);
  }
  .wolmart-fbt-v26 .wolmart-fbt-head {
    display: block;
    margin: 0;
    padding: 0 14px 4px;
    text-align: center;
  }
  .wolmart-fbt-v26 .wolmart-fbt-title {
    font-size: 20px !important;
  }
  .wolmart-fbt-v26 .wolmart-fbt-offer-badge {
    min-height: 26px;
    margin-left: 6px;
    padding: 4px 9px;
    font-size: 11px;
    vertical-align: 2px;
  }
  .wolmart-fbt-v26 .wolmart-fbt-mobile-scroll-hint {
    display: block;
    width: 100%;
    padding: 0 14px 7px;
    text-align: center;
    color: #61773a;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
  }
  .wolmart-fbt-v26 .wolmart-fbt-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .wolmart-fbt-v26 .wolmart-fbt-products-zone {
    width: 100%;
    max-width: 100%;
  }
  .wolmart-fbt-v26 .wolmart-fbt-products-scroll {
    gap: 11px;
    width: 100%;
    max-width: 100%;
    padding: 2px 14px 5px 14px;
    scroll-padding-left: 14px;
    scroll-snap-type: x proximity;
  }
  .wolmart-fbt-v26 .wolmart-fbt-product {
    flex-basis: 166px;
    min-width: 166px;
    padding: 10px;
    border-radius: 15px;
    scroll-snap-align: start;
  }
  .wolmart-fbt-v26 .wolmart-fbt-product-info { margin-top: 8px; }
  .wolmart-fbt-v26 .wolmart-fbt-product-name {
    min-height: 32px;
    margin-bottom: 6px;
    font-size: 12px;
  }
  .wolmart-fbt-v26 .wolmart-fbt-product-price { font-size: 16px; }
  .wolmart-fbt-v26 .wolmart-fbt-plus {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 22px;
    scroll-snap-align: center;
  }

  /* Always visible pill-shaped custom scrollbar. */
  .wolmart-fbt-v26 .wolmart-fbt-mobile-scrollbar {
    position: relative;
    display: block;
    width: calc(100% - 28px);
    height: 8px;
    margin: 6px 14px 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(38, 59, 15, .16);
    touch-action: none;
  }
  .wolmart-fbt-v26 .wolmart-fbt-mobile-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 58px;
    height: 8px;
    border-radius: 999px;
    background: #789949;
    transform: translateX(0);
    cursor: grab;
    touch-action: none;
  }
  .wolmart-fbt-v26 .wolmart-fbt-mobile-scrollbar-thumb:active { cursor: grabbing; }

  /* No equals sign on phones: price block follows the products directly. */
  .wolmart-fbt-v26 .wolmart-fbt-equals { display: none !important; }
  .wolmart-fbt-v26 .wolmart-fbt-summary {
    flex: none;
    width: calc(100% - 28px);
    min-width: 0;
    margin: 0 14px;
    padding: 13px 14px;
    border-radius: 15px;
  }
  .wolmart-fbt-v26 .wolmart-fbt-summary-top { gap: 4px; }
  .wolmart-fbt-v26 .wolmart-fbt-regular { font-size: 18px; }
  .wolmart-fbt-v26 .wolmart-fbt-bundle-total { font-size: 27px; }
  .wolmart-fbt-v26 .wolmart-fbt-saving {
    margin: 8px auto 9px;
    font-size: 12px;
  }
  .wolmart-fbt-v26 .wolmart-fbt-buy-button {
    min-height: 43px !important;
    font-size: 15px !important;
  }
}

/* Bundle marker in cart / checkout: no discount type or value is shown. */
.wolmart-fbt-cart-badge {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #CAE692;
  color: #263B0E !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .wolmart-fbt-v26 .wolmart-fbt-mobile-scrollbar {
    margin-bottom: 9px;
  }
}

/* v2.12: individual prices inside bundle product cards. */
.wolmart-fbt-v26 .wolmart-fbt-product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
}
.wolmart-fbt-v26 .wolmart-fbt-item-old-price {
  color: #E11A22;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.wolmart-fbt-v26 .wolmart-fbt-item-bundle-price {
  color: #5B9E1B;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.wolmart-fbt-v26 .wolmart-fbt-item-current-price {
  color: #111;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .wolmart-fbt-v26 .wolmart-fbt-item-old-price { font-size: 14px; }
  .wolmart-fbt-v26 .wolmart-fbt-item-bundle-price,
  .wolmart-fbt-v26 .wolmart-fbt-item-current-price { font-size: 16px; }
}

/* v2.13: FBT prices in cart/checkout always show the configured set price, never Club 5. */
.wolmart-fbt-cart-price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.15;
}
.wolmart-fbt-cart-old-price {
  color: #9b9b9b !important;
  font-weight: 400 !important;
  white-space: nowrap;
  text-decoration-thickness: 2px;
}
.wolmart-fbt-cart-set-price {
  color: #5B9E1B !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

/* Only cross-added FBT rows suppress Club 5. The main FBT product remains eligible. */
.wolmart-fbt-cart-cross .club-discount,
.wolmart-fbt-cart-cross .club-discount-price,
.wolmart-fbt-cart-cross .club-membership-discount,
.wolmart-fbt-cart-cross .club-membership-label,
.wolmart-fbt-cart-cross .club5-discount,
.wolmart-fbt-cart-cross .club5-label,
.wolmart-fbt-cart-cross .club5-badge {
  display: none !important;
}

/* v2.14: Total column is intentionally plain black. Price column keeps the discount presentation. */
.wolmart-fbt-cart-total-price {
  color: #111 !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

/* Android/mobile cart: center the FBT badge and all price displays. */
@media (max-width: 767px) {
  .wolmart-fbt-cart-row .wolmart-fbt-cart-badge {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .wolmart-fbt-cart-row .wolmart-fbt-cart-price-stack {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
  }

  .wolmart-fbt-cart-row .wolmart-fbt-cart-old-price,
  .wolmart-fbt-cart-row .wolmart-fbt-cart-set-price,
  .wolmart-fbt-cart-row .wolmart-fbt-cart-total-price,
  .wolmart-fbt-cart-row .product-price,
  .wolmart-fbt-cart-row .product-subtotal {
    text-align: center !important;
  }

  .wolmart-fbt-cart-row .product-price > *,
  .wolmart-fbt-cart-row .product-subtotal > * {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* v2.16: show configured quantity on bundle product cards. */
.wolmart-fbt-v26 .wolmart-fbt-product { position: relative; }
.wolmart-fbt-v26 .wolmart-fbt-item-qty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #263B0E;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 767px) {
  .wolmart-fbt-v26 .wolmart-fbt-item-qty-badge {
    top: 8px;
    right: 8px;
    min-width: 30px;
    height: 25px;
    padding: 0 7px;
    font-size: 12px;
  }
}

/* v2.17: checkout badge is rendered together with the quantity so it never disappears for x2/x3/etc. */
.wolmart-fbt-checkout-bundle-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
}
.wolmart-fbt-checkout-bundle-meta .wolmart-fbt-cart-badge {
  margin-top: 0;
}
.wolmart-fbt-checkout-qty {
  display: block;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .wolmart-fbt-checkout-bundle-meta {
    align-items: flex-start;
  }
}
