  /* ──────────────────────────────────────────────────────────────
     NF • Checkout Upsells Slider
     ────────────────────────────────────────────────────────────── */
  
  .nf-upsells-slider {
    margin: 10px 0 10px;
  }
  
  /* Ensure slider is never inside order review */
  .nf-checkout .nf-order-review .nf-upsells-slider,
  .nf-checkout .nf-order-review .nf-section--upsells {
    display: none !important;
  }
  
  /* Slider should only appear outside order review */
  .nf-checkout .nf-col--right > .nf-upsells-slider,
  .nf-checkout .nf-col--right > .nf-section--upsells {
    display: block;
  }
  
  /* Hide slider when no offers are available */
  .nf-upsells-slider:empty,
  .nf-section--upsells:empty,
  .nf-upsells-mobile:empty,
  .nf-section--upsells:has(.nf-upsells-slider-track:empty),
  .nf-section--upsells:not(:has(.nf-upsell-card)),
  .nf-upsells-slider.nf-slider-hiding {
    display: none !important;
  }
  
  /* Header with countdown timer */
  .nf-upsells-slider-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: linear-gradient(90deg, #35AC5A 0%, #2e9449 100%);
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }
  
  .nf-upsells-slider-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
  }

  .nf-upsells-timer {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    font-family: 'Fira Sans', sans-serif;
  }
  
  /* Slider wrapper */
  .nf-upsells-slider-wrapper {
    position: relative;
    background: rgba(53, 172, 90, 0.05);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }
  
  @media (max-width: 768px) {
    .nf-upsells-slider-wrapper {
      overflow: hidden;
    }
  }
  
  /* Slider track */
  .nf-upsells-slider-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
  }

  /* Mobile slider */
  @media (max-width: 768px) {
    .nf-upsells-slider-track {
      padding: 0;
      margin: 0;
    }

    .nf-upsells-slider .nf-upsell-card {
      min-width: 100%;
      width: 100%;
      flex-shrink: 0;
      margin: 0;
      box-sizing: border-box;
    }
  }

  /* Dots navigation */
  .nf-upsells-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    background: #fff;
  }

  .nf-upsells-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .nf-upsells-dot.is-active {
    background: #35AC5A;
    transform: scale(1.25);
  }

  .nf-upsells-dot:hover {
    background: #2e9449;
  }
  
  /* Upsell card - uses calc to match wrapper width accounting for nav buttons */
.nf-upsells-slider .nf-upsell-card {
  min-width: calc(100% - 0px);
  width: calc(100% - 0px);
  flex-shrink: 0;
  background: #DFF4E8;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px;
  padding: 10px 5px 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

  button.button.nf-upsell-add {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: unset !important;
    line-height: 1 !important;
  }

  
  /* Badge */
  .nf-upsell-badge {
    position: absolute;
    top: 12px;
    left: 100px;
    background: #DE1528;
    color: #fff;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  /* Product image */
  .nf-upsells-slider .nf-upsell-media {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
  }
  
  .nf-upsells-slider .nf-upsell-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  /* Content */
  .nf-upsell-content {
    display: flex;
    flex-direction: column;
  }

  .nf-upsell-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
  }
  
  /* Rating */
  .nf-upsell-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .nf-upsell-rating img.star {
    width: 14px;
    height: 14px;
    display: inline-block;
  }

  .nf-upsell-rating .rating-count {
    color: #000;
    font-size: 14px;
    margin-left: 4px;
    font-weight: 300;
  }
  
  /* Description */
  .nf-upsell-description {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.3;
    color: #000;
    padding-left: 5px;
    font-weight: 300;
  }
  
  /* Price */
  .nf-upsell-price {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
  }

  .nf-upsell-price-original {
    font-size: 14px;
    color: #000;
    text-decoration: line-through;
    color: #000;
  }
  
  .nf-upsell-price-current {
    font-size: 18px;
    font-weight: 500;
    color: #000;
  }

  /* Price + add button row */
  .nf-upsells-slider .nf-upsell-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 13px;
  }

  /* Add button — pushed to far right edge of card */
  .nf-upsells-slider .nf-upsell-add {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto !important;
    margin-right: 20px !important;
  }

  .nf-upsells-slider .nf-upsell-add img {
    width: 30px !important;
    height: 30px !important;
    display: block !important;
    pointer-events: none;
  }

  .nf-upsells-slider .nf-upsell-add:hover {
    opacity: 0.75;
    transform: translateY(-1px);
    box-shadow: none;
    background: transparent;
  }
  
  .nf-upsells-slider .nf-upsell-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  /* Mobile optimizations */
  @media (max-width: 640px) {

    .nf-upsells-slider .nf-upsell-card {
      text-align: center;
    }

    .nf-upsells-slider .nf-upsell-media {
      width: 100%;
      height: 160px;
    }

    .nf-upsell-badge {
      top: 20px;
      left: 88px;
    }

    .nf-upsell-rating {
      justify-content: start;
    }

    .nf-upsell-content * {
      text-align: start;
    }

    button.button.nf-upsell-add {
      align-self: flex-start;
    }

    .nf-upsell-price {
      justify-content: start;
    }

  }

.nf-upsells-slider-header span.light {
  font-weight: 200;
}

button.button.nf-upsell-add:hover {
  background: transparent;
  box-shadow: none;
}
