.bf-sales,
.bf-sales * {
  box-sizing: border-box;
}

.bf-sales[hidden],
.bf-sales .bf-sale-card[hidden] {
  display: none !important;
}

.bf-sales {
  --bf-paper: #fbf6ec;
  --bf-muted: #c7bfb5;
  --bf-line: #554840;
  --bf-gold: #ffbb56;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  isolation: isolate;
  margin-block: 0 32px;
  padding: 19px;
  border: 1px solid #614e3a;
  background:
    repeating-linear-gradient(130deg, transparent 0 21px, #f9ab5410 22px 23px, transparent 24px 49px),
    radial-gradient(ellipse at 8% 48%, #ab692b36, transparent 49%),
    linear-gradient(105deg, #100e0d 0%, #1f1715 58%, #191518 100%);
  color: var(--bf-paper);
}

.bf-sales-heading {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 9px;
}
.bf-sales .bf-brand-title {
  margin: 0;
  font: 900 clamp(1.9rem, 4.3vw, 3rem)/.95 "Arial Black", Impact, Arial, sans-serif;
  letter-spacing: -.048em;
  white-space: nowrap;
  color: var(--bf-paper);
}
.bf-brand-title span:last-child {
  color: var(--bf-gold);
}
.bf-sales .bf-season-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 11px;
  border: 1px solid #ffd98e;
  background: linear-gradient(110deg, #ffcb70, #ffe1a1 55%, var(--bf-gold));
  color: #201305;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}
.bf-sales .bf-season-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #754719;
  transform: rotate(45deg);
}
.bf-sales .bf-zone {
  margin: 0;
  width: 100%;
  color: var(--bf-muted);
  font-size: .73rem;
}
.bf-pr {
  display: inline-block;
  margin-inline-start: .4rem;
  padding: 0 .25rem;
  border: 1px solid var(--bf-line);
  font-size: .65rem;
}

.bf-sale-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 10px;
  min-width: 0;
}
.bf-sales .bf-sale-card {
  --bf-store: #ff6200;
  --bf-store-wash: #161d26;
  --bf-phase: #ffad79;
  --bf-button: var(--bf-store);
  --bf-button-ink: #1a1110;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 11px 14px 13px;
  border: 1px solid var(--bf-line);
  border-top: 3px solid var(--bf-store);
  background: linear-gradient(110deg, var(--bf-store-wash), #191716 75%);
}
.bf-sales .bf-sale-card[data-store="yahoo"] {
  --bf-store: #ff0033;
  --bf-store-wash: #2c1118;
  --bf-phase: #ff9cae;
  --bf-button: #d6002b;
  --bf-button-ink: #fff;
}
.bf-sales .bf-sale-card[data-store="rakuten"] {
  --bf-store: #bf0000;
  --bf-store-wash: #2b1515;
  --bf-phase: #ff9b9b;
  --bf-button-ink: #fff;
}
.bf-sale-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 9px;
}
.bf-sales .bf-sale-top h3 {
  margin: 0;
  color: var(--bf-paper);
  font: 800 1.1875rem/1.3 Arial, var(--sans, sans-serif);
  letter-spacing: -.02em;
}
.bf-sales .bf-merchant-mark {
  display: inline-flex;
  width: 158px;
  height: 47px;
  padding: 7px 11px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #fff;
}
.bf-sales .bf-merchant-mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.bf-sales [data-sale-phase] {
  color: var(--bf-phase);
  font-size: .73rem;
  font-weight: 700;
}
.bf-sale-clock {
  display: grid;
  margin: 0;
  gap: 2px;
  line-height: 1.4;
}
.bf-sales [data-sale-countdown] {
  grid-row: 1;
  color: var(--bf-gold);
  font-size: clamp(1.1rem, 2.5vw, 1.63rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.bf-sales [data-sale-deadline] {
  color: var(--bf-muted);
  font-size: .78rem;
}
.bf-sales :is(a.bf-sale-link, .bf-sale-link-slot a) {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 39px;
  margin-top: auto;
  padding: 5px 12px;
  border: 1px solid var(--bf-store);
  color: var(--bf-button-ink);
  background: var(--bf-button);
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}
.bf-sales :is(a.bf-sale-link, .bf-sale-link-slot a):hover {
  color: #110f0f;
  background: var(--bf-paper);
  border-color: var(--bf-paper);
}
.bf-sales :is(a.bf-sale-link, .bf-sale-link-slot a):focus-visible {
  outline: 2px solid var(--bf-paper);
  outline-offset: 3px;
}
.bf-sales .bf-sale-link-slot {
  margin-top: auto;
}
.bf-sales .bf-sale-link-slot img {
  position: absolute;
  inset: 0 auto auto 0;
}

@media (min-width: 960px) {
  .bf-sales {
    grid-template-columns: minmax(177px, .73fr) minmax(0, 2fr);
    padding: 20px 22px;
  }
  .bf-sales-heading {
    padding-inline: 6px;
  }
  .bf-brand-title span {
    display: block;
  }
}

@media (max-width: 640px) {
  .bf-sales {
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px;
  }
  .bf-sales-heading {
    gap: 7px;
  }
  .bf-sales .bf-season-label {
    font-size: .75rem;
  }
  .bf-sale-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
  .bf-sales .bf-sale-card {
    gap: 5px;
    padding: 8px 9px;
  }
  .bf-sales .bf-sale-top h3 {
    font-size: .8125rem;
    white-space: nowrap;
  }
  .bf-sales [data-sale-countdown] {
    font-size: 1rem;
  }
  .bf-sales :is(a.bf-sale-link, .bf-sale-link-slot a) {
    align-self: stretch;
    width: 100%;
    min-height: 44px;
    padding-inline: 5px;
  }
}

.entry-content .bf-article-sale {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 1.35rem 0;
  padding: 14px 16px;
  border-radius: 4px;
  line-height: 1.4;
  scroll-margin-top: 148px;
}

.entry-content .bf-article-sale img {
  margin: 0;
}

.entry-content .bf-article-sale .bf-sales-heading {
  gap: 7px;
  padding-inline: 0;
}

.entry-content .bf-article-sale .bf-brand-title {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
}

.entry-content .bf-article-sale .bf-season-label {
  max-width: 100%;
  font-size: .78rem;
  white-space: normal;
}

.entry-content .bf-article-sale .bf-sale-card {
  gap: 5px;
  padding: 8px 10px;
}

.entry-content .bf-article-sale .bf-sale-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
}

.bf-article-sale .bf-merchant-mark {
  width: 132px;
  height: 35px;
  padding: 4px 7px;
}

.bf-article-sale .bf-card-name {
  color: var(--bf-paper);
  font-weight: 800;
}

.bf-article-sale [data-sale-countdown] {
  font-size: 1.12rem;
}

.entry-content .bf-article-sale .bf-sale-clock {
  line-height: 1.4;
}

.entry-content .bf-article-sale :is(a.bf-sale-link, .bf-sale-link-slot a) {
  min-height: 38px;
  color: var(--bf-button-ink);
  text-decoration: none;
}

.entry-content .bf-article-sale :is(a.bf-sale-link, .bf-sale-link-slot a):hover {
  color: #110f0f;
}

@media (min-width: 960px) {
  .entry-content .bf-article-sale {
    grid-template-columns: minmax(192px, .87fr) minmax(0, 2.13fr);
  }
}

@media (max-width: 640px) {
  .entry-content .bf-article-sale {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }

  .entry-content .bf-article-sale .bf-sale-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-content .bf-article-sale :is(a.bf-sale-link, .bf-sale-link-slot a) {
    min-height: 44px;
  }
}

.bf-article-sale .bf-card-name {
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  padding: 3px 8px;
  border-radius: 3px;
  background: #fff;
  color: #181818;
  font: 700 1rem/1.35 system-ui, sans-serif;
}
.bf-article-sale [data-store="yahoo"] .bf-card-name { color: #aa0025; }
