/* ==========================================================================
   Cart Upsell Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Meals Promo Banner
   -------------------------------------------------------------------------- */

.cart-upsell-banner {
  margin: 16px 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e8ffd4;
}

.cart-upsell-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.cart-upsell-banner__heading {
  font-family: new-science-mono, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.3;
}

.cart-upsell-banner__chevron {
  font-size: 0.625rem;
  color: #000;
  transition: transform 0.25s ease;
  line-height: 1;
  transform: rotate(0deg);
}

.cart-upsell-banner.is-open .cart-upsell-banner__chevron {
  transform: rotate(180deg);
}

/* Collapsible body */

.cart-upsell-banner__body {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 1;
}

.cart-upsell-banner__body.is-collapsed {
  max-height: 0;
  opacity: 0;
}

.cart-upsell-banner__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 14px;
}

.cart-upsell-banner__image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.cart-upsell-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-upsell-banner__info {
  flex: 1;
  min-width: 0;
}

.cart-upsell-banner__title {
  font-family: new-science-mono, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 4px;
  line-height: 1.3;
}

.cart-upsell-banner__desc {
  font-family: new-science-mono, monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.cart-upsell-banner__add {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #000;
  background: none;
  text-decoration: none;
  color: #000;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-upsell-banner__add:hover {
  background: #000;
  color: #fff;
}

.cart-upsell-banner__add-icon {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   "Pair it with:" Section
   -------------------------------------------------------------------------- */

.cart-upsell-pair {
  margin: 16px 16px 0;
}

.cart-upsell-pair__heading {
  font-family: new-science-mono, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 10px;
  line-height: 1.3;
}

.cart-upsell-pair__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-upsell-pair__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  background: #fff;
  min-width: 0;
}

.cart-upsell-pair__card-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f5f5f5;
}

.cart-upsell-pair__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-upsell-pair__card-info {
  flex: 1;
  min-width: 0;
}

.cart-upsell-pair__card-title {
  font-family: new-science-mono, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 3px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-upsell-pair__card-price {
  font-family: new-science-mono, monospace;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #555;
  margin: 0;
  line-height: 1.3;
}

.cart-upsell-pair__card-add {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #000;
  background: none;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-upsell-pair__card-add:hover {
  background: #000;
  color: #fff;
}

.cart-upsell-pair__card-add-icon {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

/* Loading state for add-to-cart button */

.cart-upsell-pair__card-add.is-loading {
  pointer-events: none;
  opacity: 0.5;
}
