/* ============================================================
   NV Smart Upsell – Carousel Cards
   Nordic Precision Theme v2.1 — Brand Guideline Compliant
   ============================================================
   Same design tokens as nv-commerce-core.css (Section 06).
   Forbidden: #BFF549, #C6F059, #8FD915, pure black, any blue/purple.
   ============================================================ */

#nv-smart-upsell-checkout,
#nv-smart-upsell-sidecart {
  margin-top: 10px;
}

.nv-smart-upsell .nv-upsell-wrap {
  border: 1px solid #E6E8EC;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 16px;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  box-shadow: 0 1px 3px rgba(17, 19, 24, 0.04);
}

.nv-smart-upsell .nv-upsell-title {
  margin: 0 0 8px !important;
  color: #111318 !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.nv-smart-upsell .nv-upsell-track,
#nv-smart-upsell-sidecart .nv-upsell-track,
#nv-smart-upsell-checkout .nv-upsell-track {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding-bottom: 4px;
}

.nv-smart-upsell .nv-upsell-track::-webkit-scrollbar,
#nv-smart-upsell-sidecart .nv-upsell-track::-webkit-scrollbar,
#nv-smart-upsell-checkout .nv-upsell-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.nv-smart-upsell .nv-upsell-card,
#nv-smart-upsell-sidecart .nv-upsell-card,
#nv-smart-upsell-checkout .nv-upsell-card {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  scroll-snap-align: start !important;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #E6E8EC;
  border-radius: 10px;
  background: #F8F7F3;
  padding: 8px;
  min-height: 96px;
  overflow: hidden;
}

.nv-smart-upsell .nv-upsell-card--clone {
  pointer-events: none;
  user-select: none;
}

.nv-smart-upsell .nv-upsell-image-wrap {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #F8F7F3;
}

.nv-smart-upsell .nv-upsell-image {
  width: 100%;
  height: 64px;
  object-fit: cover;
  display: block;
}

.nv-smart-upsell .nv-upsell-content {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

.nv-smart-upsell .nv-upsell-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid #E6E8EC;
  color: #5F6874 !important;
  background: #F8F7F3;
}

.nv-smart-upsell .nv-upsell-badge--popular {
  color: #0F766E !important;
  border-color: rgba(15, 118, 110, 0.15);
  background: rgba(15, 118, 110, 0.07);
}

.nv-smart-upsell .nv-upsell-badge--new {
  color: #1E8E5A !important;
  border-color: rgba(30, 142, 90, 0.15);
  background: rgba(30, 142, 90, 0.07);
}

.nv-smart-upsell .nv-upsell-name {
  margin: 0 !important;
  color: #111318 !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.nv-smart-upsell .nv-upsell-price {
  color: #111318 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.nv-smart-upsell .nv-upsell-price .woocommerce-Price-amount,
.nv-smart-upsell .nv-upsell-price ins,
.nv-smart-upsell .nv-upsell-price del {
  font-size: inherit !important;
  line-height: inherit !important;
}

.nv-smart-upsell .nv-upsell-price del,
.nv-smart-upsell .nv-upsell-price .amount del,
.nv-smart-upsell .nv-upsell-price .woocommerce-Price-amount del {
  color: #5F6874 !important;
  text-decoration: line-through !important;
  margin-right: 4px !important;
}

.nv-smart-upsell .nv-upsell-price ins,
.nv-smart-upsell .nv-upsell-price .amount ins,
.nv-smart-upsell .nv-upsell-price .woocommerce-Price-amount ins {
  color: #111318 !important;
  text-decoration: none !important;
}

.nv-smart-upsell .nv-upsell-price--variable {
  color: #111318 !important;
}

.nv-smart-upsell .nv-upsell-variation-wrap {
  display: grid;
  gap: 3px;
}

.nv-smart-upsell .nv-upsell-variation-label {
  display: none;
}

.nv-smart-upsell .nv-upsell-variation-select {
  width: 100%;
  min-height: 28px;
  border-radius: 10px;
  border: 1px solid #E6E8EC;
  background: #FFFFFF;
  color: #111318;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  outline: none;
}

.nv-smart-upsell .nv-upsell-variation-select:focus {
  border-color: #0F766E;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.nv-smart-upsell .nv-upsell-btn {
  border: none;
  border-radius: 14px;
  background: #0F766E !important;
  color: #FFFFFF !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  min-height: 30px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.nv-smart-upsell .nv-upsell-btn:hover {
  background: #0B5E58 !important;
  box-shadow: 0 4px 16px rgba(17, 19, 24, 0.06);
}

.nv-smart-upsell .nv-upsell-btn[disabled] {
  opacity: 0.85;
  cursor: wait;
}

.nv-smart-upsell .nv-upsell-carousel-nav {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 12px;
}

.nv-smart-upsell .nv-upsell-carousel-nav.is-hidden {
  display: none;
}

.nv-smart-upsell .nv-upsell-nav-btn {
  display: none !important;
}

.nv-smart-upsell .nv-upsell-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 10px;
}

.nv-smart-upsell .nv-upsell-dot,
#nv-smart-upsell-sidecart .nv-upsell-dot,
#nv-smart-upsell-checkout .nv-upsell-dot {
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  min-width: 7px !important;
  min-height: 7px !important;
  line-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9999px !important;
  background: #E6E8EC !important;
  transform: none !important;
  cursor: pointer;
}

.nv-smart-upsell .nv-upsell-dot.is-active,
#nv-smart-upsell-sidecart .nv-upsell-dot.is-active,
#nv-smart-upsell-checkout .nv-upsell-dot.is-active {
  width: 18px !important;
  min-width: 18px !important;
  height: 7px !important;
  min-height: 7px !important;
  background: #0F766E !important;
}

/* Side cart: compact */
#nv-smart-upsell-sidecart .nv-upsell-wrap {
  padding: 8px;
  border-radius: 14px;
}

#nv-smart-upsell-sidecart .nv-upsell-title {
  font-size: 16px !important;
  margin-bottom: 6px !important;
}

#nv-smart-upsell-sidecart .nv-upsell-card {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 84px;
  padding: 6px;
  border-radius: 10px;
}

#nv-smart-upsell-sidecart .nv-upsell-image { height: 52px; border-radius: 10px; }
#nv-smart-upsell-sidecart .nv-upsell-name { font-size: 12px !important; }
#nv-smart-upsell-sidecart .nv-upsell-price { font-size: 12px !important; }
#nv-smart-upsell-sidecart .nv-upsell-btn { min-height: 28px; font-size: 10px !important; padding: 5px 8px; }
#nv-smart-upsell-sidecart .nv-upsell-carousel-nav { margin-top: 5px; }

/* Checkout: one-card slider */
#nv-smart-upsell-checkout .nv-upsell-wrap { padding: 16px; }
#nv-smart-upsell-checkout .nv-upsell-title { font-size: 18px !important; }

#nv-smart-upsell-checkout .nv-upsell-card {
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 116px;
  padding: 10px;
  gap: 10px;
}

#nv-smart-upsell-checkout .nv-upsell-image { height: 74px; }
#nv-smart-upsell-checkout .nv-upsell-name { font-size: 15px !important; line-height: 1.22 !important; -webkit-line-clamp: 3 !important; }
#nv-smart-upsell-checkout .nv-upsell-price { font-size: 15px !important; }
#nv-smart-upsell-checkout .nv-upsell-variation-select { min-height: 32px; font-size: 13px; padding: 5px 10px; }
#nv-smart-upsell-checkout .nv-upsell-btn { min-height: 34px; font-size: 12px !important; padding: 7px 10px; }

/* ============================================================
   Mobile — compact upsell
   ============================================================ */
@media (max-width: 767px) {
  .nv-smart-upsell .nv-upsell-wrap { padding: 10px; }
  .nv-smart-upsell .nv-upsell-title { font-size: 16px !important; margin-bottom: 6px !important; }

  .nv-smart-upsell .nv-upsell-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 84px;
    padding: 6px;
    gap: 6px;
  }

  .nv-smart-upsell .nv-upsell-image { height: 54px; }
  .nv-smart-upsell .nv-upsell-name { font-size: 12px !important; }
  .nv-smart-upsell .nv-upsell-price { font-size: 12px !important; }
  .nv-smart-upsell .nv-upsell-variation-select { min-height: 26px; font-size: 10px; padding: 3px 7px; }
  .nv-smart-upsell .nv-upsell-btn { min-height: 27px; font-size: 10px !important; padding: 5px 8px; }

  #nv-smart-upsell-checkout .nv-upsell-card {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 96px;
    padding: 8px;
    gap: 8px;
  }

  #nv-smart-upsell-checkout .nv-upsell-image { height: 62px; }
  #nv-smart-upsell-checkout .nv-upsell-name { font-size: 13px !important; -webkit-line-clamp: 2 !important; }
  #nv-smart-upsell-checkout .nv-upsell-price { font-size: 13px !important; }
  #nv-smart-upsell-checkout .nv-upsell-variation-select { min-height: 28px; font-size: 11px; padding: 4px 8px; }
  #nv-smart-upsell-checkout .nv-upsell-btn { min-height: 29px; font-size: 11px !important; padding: 5px 8px; }
}
