/* Local brand-kit palette. Sage is deepened to #4b6055 for sand text (4.94:1). */
.bf-deals-ticker { width: 100%; min-width: 0; margin: 0; }
.bf-deals-ticker__viewport {
  position: relative; width: 100%; height: 44px; overflow: hidden; overflow: clip;
  background: #662461; color: #d5bb76;
}
/* Fixed stacked rails, independent of the moving track. */
.bf-deals-ticker__viewport::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, #d5bb76 0 1px, transparent 1px 3px, #d5bb76 3px 4px, transparent 4px calc(100% - 4px), #d5bb76 calc(100% - 4px) calc(100% - 3px), transparent calc(100% - 3px) calc(100% - 1px), #d5bb76 calc(100% - 1px));
}
.bf-deals-ticker__track {
  display: flex; width: max-content; height: 100%;
  animation: bf-deals-ticker-scroll var(--bf-deals-duration, 160s) linear infinite;
}
.bf-deals-ticker__run { display: flex; flex: none; height: 100%; list-style: none; padding: 0; margin: 0; }
.bf-deals-ticker__deal { display: flex; align-items: center; flex: none; gap: 18px; padding: 0 12px; white-space: nowrap; }
.bf-deals-ticker__deal--plum { background: #662461; color: #d5bb76; }
.bf-deals-ticker__deal--charcoal { background: #2a2a2a; color: #d5bb76; }
.bf-deals-ticker__deal--sage { background: #4b6055; color: #edd9c4; }
.bf-deals-ticker__deal::after { content: ""; width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); }
.bf-deals-ticker__deal a { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; padding: 5px 3px; border-radius: 3px; }
.bf-deals-ticker__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; }
.bf-deals-ticker__price { font-family: var(--font-utility); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.bf-deals-ticker__pill {
  background: linear-gradient(110deg, #d9c07e, #b08a3a); color: #151515; border-radius: 999px;
  padding: 3px 10px; font: 800 12px var(--font-utility); text-transform: uppercase;
}
.bf-deals-ticker__pill--pulse { animation: bf-deals-ticker-pulse 3s ease-in-out infinite; }
.bf-deals-ticker a:hover .bf-deals-ticker__name { text-decoration: underline; text-underline-offset: 3px; }
.bf-deals-ticker a:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.bf-deals-ticker:hover .bf-deals-ticker__track,
.bf-deals-ticker:focus-within .bf-deals-ticker__track { animation-play-state: paused; }
/* Give native Tab scrolling an untranslated run, including when the script is unavailable. */
.bf-deals-ticker:not([data-pointer-focus]):has(a:focus-visible:not(:hover):not(:active)) .bf-deals-ticker__track { animation-name: none; }
@media (prefers-reduced-motion: no-preference) {
  .bf-deals-ticker__viewport:focus-within { overflow: hidden; }
}
@keyframes bf-deals-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bf-deals-ticker-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (max-width: 620px) {
  .bf-deals-ticker__viewport { height: 38px; }
  .bf-deals-ticker__name { font-size: 14px; }
  .bf-deals-ticker__price { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-deals-ticker__track, .bf-deals-ticker__pill--pulse { animation: none; }
  .bf-deals-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
  .bf-deals-ticker__run[aria-hidden="true"], .bf-deals-ticker__deal[data-repeat]:not([data-repeat="0"]) { display: none; }
}
/* Without :has(), native scrolling keeps every keyboard stop reachable. */
@supports not selector(:has(a:focus-visible)) {
  .bf-deals-ticker__track, .bf-deals-ticker__pill--pulse { animation: none; }
  .bf-deals-ticker__viewport, .bf-deals-ticker__viewport:focus-within { overflow-x: auto; }
  .bf-deals-ticker__run[aria-hidden="true"], .bf-deals-ticker__deal[data-repeat]:not([data-repeat="0"]) { display: none; }
}
@media print { .bf-deals-ticker { display: none; } }
