/* Deal item template price block. Palette matches the filtered-list Deal
   card (src/react/filtered-list/filtered-list.css) — purple #7938b4, saving
   red #e91817 — kept as literal values here since this component ships on
   its own, independent of that bundle. */

.ofl-deal-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.ofl-deal-price-saving {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: var(--_typography-tokens---body-xlarge--color, #6b6b6b);
  font-size: var(--_typography-tokens---body-xlarge--size, 1.25rem);
  line-height: var(--_typography-tokens---body-xlarge--line-height, 140%);
}

.ofl-deal-price-was {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.ofl-deal-price-save {
  color: #e91817;
  font-weight: 700;
}

.ofl-deal-price-main {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.ofl-deal-price-lead {
  color: #6b6b6b;
  font-size: var(--_typography-tokens---body-medium--size, 1rem);
  line-height: var(--_typography-tokens---body-medium--line-height, 140%);
}

.ofl-deal-price-amount {
  color: #7938b4;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.ofl-deal-price-suffix {
  color: #7938b4;
  font-size: var(--_typography-tokens---body-medium--size, 1rem);
  line-height: var(--_typography-tokens---body-medium--line-height, 140%);
}

/* A `<span>` so the price line and blurb stay one sentence in the DOM; block
   display just breaks it onto its own visual line. */
.ofl-deal-price-blurb {
  display: block;
  width: 100%;
  margin-top: 4px;
  color: #7938b4;
  font-size: var(--_typography-tokens---body-small--size, 0.875rem);
  line-height: var(--_typography-tokens---body-small--line-height, 140%);
}

@media (max-width: 767px) {
  .ofl-deal-price-saving {
    font-size: 0.875rem;
  }
}

/*
 * Card image carousel (ImageSlider.tsx). The values are the Swiper slider's it
 * replaced — Swiper's navigation/pagination defaults with the card overrides
 * (20px white chevrons 8px in from the sides; 12px white dots 2px apart, 8px
 * up from the bottom, pink when active) — so the card looks exactly as before.
 *
 * max-width + min-width cap the root's intrinsic width (all slides side by
 * side), which would otherwise stretch the card and break the page layout.
 */

.ofl-image-slider {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.ofl-image-slider-viewport {
  height: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.ofl-image-slider-track {
  display: flex;
  height: 100%;
}

.ofl-image-slider-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.ofl-image-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ofl-image-slider-button {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 20px;
  height: 20px;
  margin: -10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.ofl-image-slider-button svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.ofl-image-slider-button.is-prev {
  left: 8px;
}

.ofl-image-slider-button.is-prev svg {
  transform: rotate(180deg);
}

.ofl-image-slider-button.is-next {
  right: 8px;
}

/* Inline-block dots in a text-aligned row, as Swiper lays them out, so they
   sit on the same baseline (and the same distance from the bottom edge). */
.ofl-image-slider-pagination {
  position: absolute;
  bottom: 8px;
  left: 0;
  z-index: 10;
  width: 100%;
  text-align: center;
}

.ofl-image-slider-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 2px;
  padding: 0;
  border: none;
  border-radius: 50%;
  box-shadow: none;
  appearance: none;
  background: #fff;
  cursor: pointer;
}

.ofl-image-slider-dot.is-active {
  background: var(--ofl-pink, #ff41f2);
}

.ofl-image-slider-button:focus-visible,
.ofl-image-slider-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ofl-purple, #7938b4);
}

