/* ── Research Water upsell modal ─────────────────────────────────────────────
   Mirrors .ncl-quick-buy structure and CSS variables. */

.ncl-water-upsell {
  position: fixed;
  inset: 0;
  z-index: 1400; /* above the add-to-cart toast (1300), below age gate (9999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.ncl-water-upsell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 11, 39, 0.55);
}

.ncl-water-upsell__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 24px 64px rgba(3, 11, 39, 0.35);
}

/* Confirmation + upsell label banner across the top of the panel */
.ncl-water-upsell__banner {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md);
  padding: 1rem 3.75rem 1rem var(--space-md);
  background: #f0faf4;
  border-bottom: 1px solid #c3e6d0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.ncl-water-upsell__banner-added {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: #1a6e3c;
}

.ncl-water-upsell__banner-link {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: #1a6e3c;
  text-decoration: underline;
}

.ncl-water-upsell__banner-link:hover {
  text-decoration: none;
}

.ncl-water-upsell__section-label {
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}

.ncl-water-upsell__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--slate);
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.ncl-water-upsell__close:hover { color: var(--navy); background: var(--fog); }

.ncl-water-upsell__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding-top: 0.25rem;
}

.ncl-water-upsell__image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.ncl-water-upsell__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.ncl-water-upsell__name {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  color: var(--navy);
  margin: 0;
}

.ncl-water-upsell__price {
  font-size: 1rem;
  color: var(--navy);
}

/* Qty stepper — matches .ncl-quick-buy__qty */
.ncl-water-upsell__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: fit-content;
}

.ncl-water-upsell__qty-btn {
  width: 36px;
  height: 44px;
  font-size: 1.125rem;
  color: var(--navy);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.ncl-water-upsell__qty-btn:hover { color: var(--cobalt); }

.ncl-water-upsell__qty-btn:disabled {
  color: var(--slate);
  opacity: 0.4;
  cursor: not-allowed;
}

.ncl-water-upsell__qty-btn:disabled:hover { color: var(--slate); }

.ncl-water-upsell__qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: var(--fw-semibold);
  color: var(--navy);
}

.ncl-water-upsell__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ncl-water-upsell__add {
  display: flex; /* override ncl-btn's inline-flex */
  flex: 1;
}

.ncl-water-upsell__skip {
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 0.875rem;
  color: var(--slate);
  text-decoration: none;
  text-align: center;
  padding: 1rem 0 0.25rem;
  transition: color var(--duration) var(--ease);
  font-weight: var(--fw-medium);
}

.ncl-water-upsell__skip:hover { color: var(--navy); }

.ncl-water-upsell__error {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--red);
}

/* Bottom sheet on small screens */
@media (max-width: 600px) {
  .ncl-water-upsell {
    align-items: flex-end;
    padding: 0;
  }

  .ncl-water-upsell__panel {
    max-width: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}
