/* ==========================================================================
   Black Friday 2026 - product page + cart drawer (local-only feature)
   Source of truth for the geometry: docs/black-friday-2026/reference/SPEC.md sections 4 (mobile PDP,
   390 CSS px) and 5 (mobile cart drawer, 390x844). Linked by layout/theme.liquid ONLY while
   `black_friday.active`, after custom.css, so the sale off means this file is never requested.

   Every selector is namespaced .bf-* or scoped to the sale's own markup. PDP rules hang off `.product-section.bf-pdp`,
   a class product-template.liquid adds only when `bf_book_active` (the six books), so the Cover and the Stand PDPs are
   never restyled; the drawer rules hang off #CartDrawer.
   Compiled by scripts/compile-theme-css.py (copied verbatim to public/assets/).
   ========================================================================== */

/* Custom properties live on the two roots that use them (the sale PDP and the drawer), not on :root, so a
   non-sale PDP computes exactly what it computes with the sale off. */
.product-section.bf-pdp,
#CartDrawer {
  --bf-orange: #ec791c;
  --bf-ink: #0f0f0f;
  --bf-body: #3d3d3b;
  --bf-grey: #6a6a66;
  --bf-edge: #b8b8b4;
  --bf-hair: #e6e7e2;
  --bf-cream: #f4f5f0;
  --bf-red: #aa0a0b;
  --bf-dim: #b8b5ae;
  --bf-paper: #f3f2ed;
  /* The mockup is set in Helvetica Neue (400 / 500 / 700); this is the stack the homepage BF block uses. The theme
     forces Neue Haas Grotesk Display Pro Roman on div/span/p/button/strong/h1-h3 with !important (custom.css), so
     the family is stated with !important on the BF scopes below, and only on them. */
  --bf-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bf-timer-bar,
.bf-timer-bar *,
.bf-pdp-badge,
.bf-offer,
.bf-offer *,
.bf-add-to-cart.btn,
.bf-add-to-cart.btn *,
.bf-add-note,
.product-section.bf-pdp .product-single__title,
.product-section.bf-pdp .product-block--price .product-price-wrapper,
.product-section.bf-pdp .product-block--price .product-price-wrapper *,
#CartDrawer,
#CartDrawer * {
  font-family: var(--bf-font) !important;
  -webkit-font-smoothing: antialiased;
}

[hidden].bf-cart-upsell,
.bf-cart-progress [hidden],
.bf-cart-upsell [hidden] {
  display: none !important;
}

/* The shared countdown bar ------------------------------------------------ */

.bf-timer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background: var(--bf-ink);
  color: var(--bf-paper);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0;
}

.bf-timer-bar__label {
  position: relative;
  top: 0.2px;
  letter-spacing: 0.174em;
  white-space: nowrap;
}

.bf-timer-bar__clock {
  position: relative;
  top: 0.1px;
  display: flex;
  align-items: baseline;
  gap: 8.2px;
  font-variant-numeric: tabular-nums;
}

.bf-timer-bar__cell {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.bf-timer-bar__cell b {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bf-paper);
}

.bf-timer-bar__cell i {
  font-style: normal;
  font-weight: 700;
  color: var(--bf-dim);
  text-transform: uppercase;
}

.bf-timer-bar--pdp {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin: 19px 0 0;
  font-size: 10.5px;
  line-height: 1;
}

.bf-timer-bar--pdp .bf-timer-bar__cell b {
  font-size: 20px;
  line-height: 1;
}

.bf-timer-bar--pdp .bf-timer-bar__cell i {
  font-size: 11px;
  line-height: 1;
}

.bf-timer-bar--cart {
  flex: none;
  width: 100%;
  height: 44px;
  padding: 0 18.3px 0 20px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
}

.bf-timer-bar--cart .bf-timer-bar__label {
  top: -0.5px;
  letter-spacing: 0.14em;
}

.bf-timer-bar--cart .bf-timer-bar__clock {
  top: -0.1px;
  gap: 6.6px;
}

.bf-timer-bar--cart .bf-timer-bar__cell b {
  font-size: 18px;
  line-height: 1;
}

.bf-timer-bar--cart .bf-timer-bar__cell i {
  font-size: 10px;
  line-height: 1;
}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */

.product-section.bf-pdp .product__main-photos {
  position: relative;
}

/* "BLACK FRIDAY PRICE" badge, 12px in from the bottom-left of the main image */
.bf-pdp-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 27.3px;
  padding: 0 9.2px 0 9.5px;
  background: var(--bf-orange);
  color: var(--bf-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.056em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* Title and price row ------------------------------------------------------ */

.product-section.bf-pdp .product-single__title {
  position: relative;
  top: -1px;
  margin: 0 0 -11.3px !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--bf-ink) !important;
}

.product-section.bf-pdp .product-block--header {
  padding-top: 6px !important;
}

.product-section.bf-pdp .product-block--price .product-price-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  gap: 0 11px !important;
  color: var(--bf-ink);
  letter-spacing: 0;
}

.product-section.bf-pdp .product-block--price .product-price-wrapper .product__price {
  margin: 0 !important;
  padding: 0 !important;
}

.product-section.bf-pdp .product-block--price .product-price-wrapper [data-product-price] {
  order: 1;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--bf-ink) !important;
}

.product-section.bf-pdp .product-block--price .product-price-wrapper [data-product-price-wrap] {
  order: 2;
}

.product-section.bf-pdp .product-block--price .product-price-wrapper [data-product-price-wrap] .product__price--compare {
  font-size: 17.5px !important;
  font-weight: 500 !important;
  color: var(--bf-grey) !important;
  text-decoration: line-through;
}

.product-section.bf-pdp .product-block--price .product-price-wrapper .product__price-savings {
  order: 3;
  margin-left: 1.4px;
  display: inline !important;
  width: auto;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--bf-red) !important;
}

.product-section.bf-pdp .product-block--price .product-price-wrapper .product__price-savings::before {
  content: none !important;
  display: none !important;
}

.product-section.bf-pdp .product-block--price .product-price-wrapper .product__price-savings.hide {
  display: none !important;
}

.product-section.bf-pdp .product-block--price .product-price-break,
.product-section.bf-pdp .product-block--price .product-shipping-badge {
  display: none !important;
}

/* "CHOOSE YOUR OFFER" cards ------------------------------------------------ */

.bf-offer.quantity-card-selector {
  margin: 0;
  padding: 0;
}

.bf-offer__label {
  position: relative;
  top: -1.7px;
  margin: 23px 0 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.139em;
  text-transform: uppercase;
  color: #3d3d3a;
}

.bf-offer .bf-card.quantity-card {
  position: relative;
  display: flex;
  flex-direction: row;
  flex: none;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 68px;
  margin: 0 0 10px;
  padding: 0 14px 0 13px;
  background: #fff;
  border: 1px solid var(--bf-edge);
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  transition: none;
  cursor: pointer;
  color: var(--bf-ink);
}

.bf-offer .bf-card.quantity-card:hover {
  border-color: var(--bf-edge);
  box-shadow: none;
}

.bf-offer .bf-card.quantity-card.active,
.bf-offer .bf-card.quantity-card.active:hover {
  background: #fff;
  border-color: var(--bf-ink);
  box-shadow: inset 0 0 0 1px var(--bf-ink);
}

/* theme's own green check on the active quantity card */
.bf-offer .bf-card.quantity-card.active::after {
  content: none;
  display: none;
}

.bf-offer .bf-card.quantity-card:focus-visible {
  outline: 2px solid var(--bf-ink);
  outline-offset: 2px;
}

.bf-offer .bf-card--six.quantity-card {
  height: 83.3px;
  margin-bottom: 0;
}

.bf-card__radio {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  border: 1.5px solid var(--bf-ink);
  border-radius: 50%;
  background: #fff;
}

.bf-card.active .bf-card__radio::after {
  content: '';
  position: absolute;
  top: 3.5px;
  left: 3.5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bf-ink);
}

.bf-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 0;
}

.bf-card:not(.bf-card--six) .bf-card__body {
  padding-top: 2px;
}

.bf-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--bf-ink);
}

.bf-card__sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 17.7px;
  color: var(--bf-body);
}

.bf-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 18.3px;
  padding: 0 7.8px 0 8.2px;
  background: var(--bf-orange);
  color: var(--bf-ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-card__prices {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-left: 12px;
  text-align: right;
}

.bf-card__price {
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  color: var(--bf-ink);
}

.bf-card__was {
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  color: var(--bf-grey);
  text-decoration: line-through;
}

/* The bundle picker ("Choose your titles", card 2) is moved by bf-offer-selector.liquid to sit directly under
   card 2; give it the same square, hairline look as the cards. */
.bf-offer__cards .bundle-picker {
  margin: 0 0 10px;
  border: 1px solid var(--bf-edge);
  border-radius: 0;
  background: var(--bf-cream);
}

/* Add to cart ------------------------------------------------------------- */

/* The theme lays the button out in a 1.4fr/1fr grid for a dynamic-checkout column the sale PDP does not have;
   without this the button stops at 58% of the column on desktop. */
.product-section.bf-pdp .payment-buttons-row {
  grid-template-columns: 1fr;
}

.product-section.bf-pdp #mainAddToCart {
  width: 100%;
  max-width: none;
  margin-top: 5px;
}

.bf-add-to-cart.btn {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 58px;
  min-height: 58px;
  margin: 0;
  padding: 0 20px;
  background: var(--bf-ink);
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bf-add-to-cart.btn:hover,
.bf-add-to-cart.btn:focus-visible {
  background: #262626;
  color: #fff;
}

.bf-add-to-cart.btn:disabled {
  background: #6a6a66;
}

.bf-add-to-cart.btn .add-to-cart__text,
.bf-add-to-cart.btn .bf-add-to-cart__price {
  position: relative;
  top: -1.4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.bf-add-to-cart.btn .add-to-cart__text {
  letter-spacing: 0.13em;
}

.bf-add-to-cart__dot {
  display: inline-block;
  flex: none;
  width: 4px;
  height: 4px;
  margin: 0 10.7px 0 9.1px;
  border-radius: 50%;
  background: #fff;
}

.bf-add-to-cart.btn:disabled .bf-add-to-cart__dot,
.bf-add-to-cart.btn:disabled .bf-add-to-cart__price {
  display: none;
}

.bf-add-note {
  margin: 4.7px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  color: var(--bf-body);
}

/* PDP, mobile only: the design is a single full-bleed square image with the title straight under it,
   and a 20px gutter. The thumbnail strip, breadcrumb, review-stars row, USP bullets and policy line that the
   regular PDP carries above the offer are not drawn in the mockup, so they are not shown above the
   note on phones while the sale is on (desktop keeps everything). */
@media screen and (max-width: 768px) {
  .product-section.bf-pdp .product-breadcrumb-wrapper,
  .product-section.bf-pdp .product__thumbs,
  .product-section.bf-pdp .social-proof-stars,
  .product-section.bf-pdp .product-block--price .product-features-list,
  .product-section.bf-pdp .product-block--price .product__policies {
    display: none !important;
  }

  .product-section.bf-pdp .grid--product-images--partial .flickity-slider .product-main-slide {
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* the image panel is full-bleed 390px: cancel the 20px gutter on the photo block */
  .product-section.bf-pdp .product__main-photos {
    margin-left: -20px !important;
    margin-right: -20px !important;
  }

  /* 20px gutter, 350px content column (the regular PDP uses 17px) */
  .product-section.bf-pdp .page-content--product > .page-width {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */

@media screen and (max-width: 768px) {
  #CartDrawer.drawer--right {
    width: 100%;
    max-width: 100%;
    right: -100%;
  }

  #CartDrawer.drawer--right.drawer--is-open {
    transform: translateX(-100%);
  }
}

#CartDrawer {
  --drawer-gutter: 20px;
}

/* Header: CART (n) */
#CartDrawer .drawer__fixed-header {
  box-sizing: border-box;
  height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid #e7e8e2;
}

#CartDrawer .drawer__header {
  height: 55px;
  padding: 0;
  border-bottom: 0;
}

#CartDrawer .drawer__title {
  position: relative;
  top: -1.3px;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: var(--bf-ink);
}

#CartDrawer .drawer__close-button {
  right: -9.3px;
  padding: 0 4px;
  color: var(--bf-ink);
}

#CartDrawer .drawer__close-button .icon {
  width: 31.5px;
  height: 31.5px;
  stroke-width: 3;
}

/* The original free-shipping bar stays in the DOM (theme.js keeps it current, the BF progress block mirrors
   it) but is not drawn. */
#CartDrawer .cart-free-shipping-bar {
  display: none;
}

html.bf-ended #CartDrawer .cart-free-shipping-bar {
  display: block;
}

#CartDrawer .cart-progress {
  flex: none;
  padding: 0;
  background: transparent;
  border: 0;
}

/* Progress block */
.bf-cart-progress {
  box-sizing: border-box;
  flex: none;
  padding: 16px 20px 15px;
  background: var(--bf-cream);
  color: #0f0f0e;
}

.bf-cart-progress__msg {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0;
  text-transform: none;
  color: #0f0f0e;
}

.bf-cart-progress__msg strong {
  font-weight: 700;
}

.bf-cart-progress__bar {
  display: flex;
  gap: 4px;
  margin: 9.3px 0 11px;
}

.bf-cart-progress__seg {
  flex: 1 1 0;
  min-width: 0;
  height: 6px;
  background: #cfcec9;
}

.bf-cart-progress__seg.is-filled {
  background: var(--bf-ink);
}

.bf-cart-progress__ship {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: #3d3e39;
}

.bf-cart-progress__check {
  flex: none;
  margin-left: 2px;
  color: var(--bf-ink);
}

/* Line items */
#CartDrawer .drawer__scrollable {
  padding-top: 0;
}

#CartDrawer .cart__products-wrapper {
  padding: 3.7px 20px 0 !important;
}

#CartDrawer .cart__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13.7px;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 0 13.7px;
  border: 0;
  border-bottom: 1px solid var(--bf-hair);
}

#CartDrawer .cart__image {
  flex: 0 0 76px;
  width: 76px;
  margin: 0;
}

#CartDrawer .cart__item-details {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

#CartDrawer .cart__item-title {
  position: static !important;
  display: block;
  min-height: 38.8px;
  margin: 0;
  padding: 0;
}

#CartDrawer .cart__item-name {
  position: relative;
  top: -0.4px;
  margin: 0 !important;
  display: block !important;
  max-height: none !important;
  padding: 0 84px 0 0 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 17.5px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bf-ink) !important;
  -webkit-line-clamp: unset !important;
}

#CartDrawer .cart__item--variants {
  margin: 5.8px 0 0;
  font-size: 12px;
  line-height: 16.8px;
  color: var(--bf-body);
}

#CartDrawer .cart__item--variants span {
  display: none;
}

#CartDrawer .cart__item-preorder {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4.5px 0 0;
  padding: 0;
  background: none;
  font-size: 12px;
  line-height: 16.8px;
  color: var(--bf-body);
}

#CartDrawer .cart__item-preorder span {
  line-height: 16.8px;
}

#CartDrawer .cart__item-preorder svg {
  display: none;
}

/* Remove: underlined word, right column, vertically centred on the stepper */
#CartDrawer .cart__item-remove {
  position: absolute !important;
  top: auto !important;
  right: 2px !important;
  bottom: 14px !important;
  padding: 0 0 1px !important;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--bf-ink);
  border-radius: 0;
  color: var(--bf-body) !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 0;
  opacity: 1 !important;
  text-transform: none;
}

#CartDrawer .cart__item-remove svg {
  display: none !important;
}

#CartDrawer .cart__item-remove::after {
  content: 'Remove';
}

/* The word is only 48x14 px; on iOS that is a hard tap. Invisible 44 px tall hit area around it, no visual change. */
#CartDrawer .cart__item-remove::before {
  bottom: -15px;
  content: "";
  left: -10px;
  position: absolute;
  right: -10px;
  top: -15px;
}

#CartDrawer .cart__item-sub {
  display: block;
  margin: 2.2px 0 0;
  padding: 0;
}

#CartDrawer .cart__item-sub > div:first-child {
  display: block;
}

/* Quantity stepper, 108x44 */
#CartDrawer .js-qty__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  flex: none;
  width: 108px !important;
  max-width: 108px !important;
  height: 44px;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--bf-edge);
  border-radius: 0;
}

#CartDrawer .js-qty__wrapper .js-qty__num {
  position: static;
  width: 20px;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  color: var(--bf-ink);
  order: 2;
}

#CartDrawer .js-qty__wrapper .js-qty__adjust {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--bf-ink);
}

#CartDrawer .js-qty__wrapper .js-qty__adjust--minus {
  order: 1;
}

#CartDrawer .js-qty__wrapper .js-qty__adjust--plus {
  order: 3;
}

#CartDrawer .js-qty__wrapper .js-qty__adjust .icon {
  width: 10.3px;
  height: 10.3px;
}

#CartDrawer .js-qty__wrapper .js-qty__adjust .icon path {
  fill: var(--bf-ink);
}

/* Prices: bold current price on top, struck price under it */
#CartDrawer .cart__item-price-col {
  position: absolute;
  top: 0.6px;
  right: 2px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 2.3px;
  text-align: right;
}

#CartDrawer .cart__item-price-col .cart__price {
  font-size: 15px;
  font-weight: 700;
  line-height: 16px;
  color: var(--bf-ink);
}

#CartDrawer .cart__item-price-col .cart__price--strikethrough {
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  color: #686965;
  text-decoration: line-through;
}

/* the discount-allocation caption ("Buy 2 books · $239 (-$19.50)") is not drawn in the design; the struck
   price above the charged price already shows the saving. */
#CartDrawer .cart__item-price-col small.cart__discount {
  display: none;
}

/* Dark upsell box */
.bf-cart-upsell {
  box-sizing: border-box;
  margin: 16px 20px 0;
  padding: 14px;
  background: var(--bf-ink);
  color: var(--bf-paper);
}

.bf-cart-upsell__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 13.2px;
}

.bf-cart-upsell__text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 165px;
  position: relative;
  top: 1.3px;
}

.bf-cart-upsell__eyebrow {
  margin: 0 0 4.25px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 14.4px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bf-orange);
}

.bf-cart-upsell__body {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 17.6px;
  letter-spacing: 0;
  text-transform: none;
  color: #f2f2ee;
}

.bf-cart-upsell__art {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 137px;
  height: 44px;
}

.bf-cart-upsell__art img {
  display: block;
  flex: 0 1 44px;
  width: 44px;
  min-width: 0;
  height: 44px;
  object-fit: cover;
}

.bf-cart-upsell__art.is-composite img {
  flex: none;
  width: 137px;
  height: 44px;
  object-fit: fill;
}

.bf-cart-upsell__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 48.3px;
  margin: 0;
  padding: 0 14px;
  background: var(--bf-orange);
  border: 0;
  border-radius: 0;
  color: var(--bf-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  cursor: pointer;
}

.bf-cart-upsell__btn.btn--loading {
  opacity: 0.7;
}

.bf-cart-upsell__dot {
  display: inline-block;
  flex: none;
  width: 4.3px;
  height: 4.5px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--bf-ink);
}

.bf-cart-upsell__error {
  margin: 8px 0 0;
  font-size: 12px;
  color: #ffb4a8;
}

/* Footer */
#CartDrawer .drawer__footer {
  box-sizing: border-box;
  padding: 16.35px 20px 19.1px;
  border-top: 1px solid #e7e8e2;
}

#CartDrawer .drawer__footer .cart__item-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 6px !important;
  padding: 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--bf-ink);
}

#CartDrawer .ajaxcart__subtotal {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0 !important;
  text-transform: none;
  color: var(--bf-ink);
}

#CartDrawer .drawer__footer [data-subtotal] {
  font-size: 15px;
  font-weight: 700;
  color: var(--bf-ink);
}

/* Before-sale total struck beside the subtotal, and the single "Discounts" row (snippets/cart-drawer.liquid). */
#CartDrawer .bf-subtotal {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
#CartDrawer .bf-subtotal__was {
  color: #8a8a86;
  font-size: 14px;
  font-weight: 400;
  text-decoration: line-through;
}
#CartDrawer .bf-subtotal__was[hidden],
#CartDrawer .bf-discount-row[hidden] {
  display: none;
}
#CartDrawer .bf-discount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--bf-body);
}
#CartDrawer .bf-discount-row__value {
  color: #b3261e;
  font-weight: 500;
}

/* Empty drawer CTA: the sale's square black button, like CHECK OUT and ADD TO CART, not the theme's pill. */
body:has([data-bf-offer]) #CartDrawer .cart-empty-state__cta,
#CartDrawer:has(.bf-cart-upsell) .cart-empty-state__cta {
  border-radius: 0;
  background: #0f0f0f;
  min-height: 52px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.1em;
}

.bf-ship-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--bf-body);
}

.bf-ship-row__label {
  font-weight: 400;
}

.bf-ship-row__value {
  font-size: 15px;
  font-weight: 400;
}

#CartDrawer .cart__checkout-wrapper {
  margin-top: 11.95px !important;
}

#CartDrawer .cart__checkout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  min-height: 56px !important;
  padding: 0 20px !important;
  background: var(--bf-ink) !important;
  border: 0;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1;
  letter-spacing: 0.123em !important;
  text-transform: uppercase;
}

.bf-checkout__dot {
  display: inline-block;
  flex: none;
  width: 4.3px;
  height: 4px;
  margin: 0 10px;
  border-radius: 50%;
  background: #fff;
}

.bf-cart-note {
  margin: 13.3px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  color: var(--bf-body);
}

/* Same container focus ring as the menu drawer (see custom.css): no outline on the drawer itself. */
#CartDrawer:focus,
#CartDrawer:focus-visible {
  outline: none !important;
}

/* Sticky add-to-cart bar on the sale PDP (any page holding the sale offer selector; accessory PDPs keep the
   theme bar). Hidden until bf-offer-selector sets data-bf-show, i.e. after a short scroll past the first
   screen. Restyled to the sale design: white bar, hairline, square corners,
   Helvetica Neue, black ADD TO CART button like the PDP button (SPEC 4). */
body:has([data-bf-offer]) #FloatingCartBar {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  /* Wider than the theme's 400px so the full title fits beside the larger button and prices. */
  max-width: 520px;
}
body:has([data-bf-offer]) #FloatingCartBar:not([data-bf-show]) {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
body:has([data-bf-offer]) #FloatingCartBar * {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
body:has([data-bf-offer]) .floating-cart-bar__content {
  background: #fff;
  border: 1px solid #e6e7e2;
  border-radius: 0;
  box-shadow: 0 6px 24px rgba(15, 15, 15, 0.14);
  padding: 12px 12px 12px 20px;
  gap: 16px;
}
/* Bigger bar with the offer's struck price beside its price (client request). The name takes its own
   row; price and strike share the second row. */
body:has([data-bf-offer]) .floating-cart-bar__product-info {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
}
body:has([data-bf-offer]) .floating-cart-bar__product-name {
  flex-basis: 100%;
  color: #0f0f0f;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
body:has([data-bf-offer]) .floating-cart-bar__price {
  color: #0f0f0f;
  font-size: 18px;
  font-weight: 700;
}
body:has([data-bf-offer]) .floating-cart-bar__was {
  color: #8a8a86;
  font-size: 15px;
  font-weight: 400;
  text-decoration: line-through;
}
body:has([data-bf-offer]) .floating-cart-bar__was[hidden] {
  display: none;
}
body:has([data-bf-offer]) .floating-cart-bar__button,
body:has([data-bf-offer]) .floating-cart-bar__button--preorder,
body:has([data-bf-offer]) .floating-cart-bar__button.is-success {
  background: #0f0f0f;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  height: 56px;
  letter-spacing: 0.1em;
  padding: 0 28px;
}
@media only screen and (max-width: 768px) {
  body:has([data-bf-offer]) .floating-cart-bar__content { padding: 10px 10px 10px 16px; gap: 12px; }
  body:has([data-bf-offer]) .floating-cart-bar__product-name { font-size: 15px; }
  body:has([data-bf-offer]) .floating-cart-bar__price { font-size: 17px; }
  body:has([data-bf-offer]) .floating-cart-bar__was { font-size: 14px; }
  body:has([data-bf-offer]) .floating-cart-bar__button,
  body:has([data-bf-offer]) .floating-cart-bar__button--preorder,
  body:has([data-bf-offer]) .floating-cart-bar__button.is-success { height: 52px; font-size: 14px; padding: 0 20px; }
}
body:has([data-bf-offer]) .floating-cart-bar__button:hover:not(:disabled),
body:has([data-bf-offer]) .floating-cart-bar__button--preorder:hover:not(:disabled) {
  background: #2a2a2a;
}
body:has([data-bf-offer]) .floating-cart-bar__button:disabled {
  background: #6a6a66;
}
