/* Ava bundle cards. Row reads: image | badges + title + subtitle | pricing.
   Loaded from the page `styles` list, i.e. after next-core.css and
   brand-checkout.css, so equal-specificity overrides win without !important. */

/* Whole card is role="button"; the radio dot is redundant. */
.os-card .radio-style-1 {
  display: none;
}

.os-card__content {
  grid-column-gap: 14px;
  justify-content: flex-start;
}

.os-card__image-slot {
  background-color: transparent;
  flex: none;
  width: 5.5rem;
  height: auto;
}

.os-card__image-slot .image {
  width: 100%;
  height: auto;
}

/* min-width:0 keeps long titles from forcing one word per line. */
.os-card__main-slot {
  min-width: 0;
  justify-content: flex-start;
}

/* Badges share the first row; the title wraps onto its own line under them. */
.os-card__title-wrapper {
  grid-column-gap: 8px;
  grid-row-gap: 6px;
}

.os-card__title-badge,
.os-card__badge-inline {
  order: 1;
}

.os-card__title {
  order: 2;
  width: 100%;
  font-size: 1.375rem;
  color: var(--brand--color--foreground);
}

/* Same pill, unpinned: .os-card__label-2 is normally absolute and offset by
   .os-card__label--middle-*, which this variant deliberately omits. Metrics
   match .os-card__title-badge so both pills on the row read as one set. */
.os-card__badge-inline {
  position: static;
  inset: auto;
  height: auto;
  padding: 4px .5rem;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

/* The inner text node carries its own --font-size--sm, so the size has to be
   set here rather than on the pill for it to match .os-card__title-badge. */
.os-card__badge-inline .os-card__label-text-2 {
  top: 0;
  font-size: var(--font-size--xs);
  font-weight: 700;
}

.os-card__subtitle-wrapper {
  margin-top: 2px;
}

.os-card__subtitle-text {
  font-size: .8125rem;
  text-transform: uppercase;
}

/* Pricing column: compare price, price, shipping line. */
.os-card__secondary-slot {
  flex: none;
  justify-content: center;
}

.os-card__pricing {
  align-items: flex-end;
  flex: none;
}

/* Per-unit price and the "Total:" label are both noise next to one bundle price. */
.os-card__price-container,
.os-card__total-label {
  display: none;
}

.os-card__total-container {
  grid-column-gap: 0;
  grid-row-gap: 2px;
  flex-flow: column;
  align-items: flex-end;
  display: flex;
}

.os-card__total-compare {
  order: 1;
  font-size: .9375rem;
  text-decoration: line-through;
}

.os-card__total-current {
  order: 2;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand--color--foreground);
}

.os-card__shipping-line {
  order: 3;
  margin-top: 2px;
  font-size: .8125rem;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .os-card__wrapper {
    padding: .75rem;
  }

  .os-card__content {
    grid-column-gap: 10px;
  }

  .os-card__image-slot {
    width: 4.5rem;
  }

  .os-card__title {
    font-size: 1.125rem;
  }

  .os-card__subtitle-text,
  .os-card__shipping-line {
    font-size: .6875rem;
  }

  .os-card__badge-inline,
  .os-card__title-badge,
  .os-card__badge-inline .os-card__label-text-2 {
    font-size: .625rem;
    padding: 4px 8px;
  }

  .os-card__badge-inline .os-card__label-text-2 {
    padding: 0;
  }

  .os-card__total-compare {
    font-size: .8125rem;
  }

  .os-card__total-current {
    font-size: 1.25rem;
  }
}
