/* A row of the add-to-cart popup, styled like the purchased product row
   above it: white, full width, an inset separator at the bottom. */
.package-protection-offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 15px;
  background: #fff;
}

.package-protection-offer::after {
  content: '';
  position: absolute;
  left: 15px;
  bottom: 0;
  width: calc(100% - 30px);
  height: 1px;
  background: #e5e6e8;
}

.package-protection-offer__icon {
  flex: 0 0 auto;
  color: #3a9a5b;
  line-height: 0;
}

.package-protection-offer__image {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.package-protection-offer__body {
  /* Zero basis: on a wrapping (mobile) row only the button moves down,
     the price stays next to the text. */
  flex: 1 1 0;
  min-width: 0;
}

.package-protection-offer__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.package-protection-offer__price {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.package-protection-offer__text a {
  white-space: nowrap;
  text-decoration: underline;
}

.package-protection-offer__added {
  color: #3a9a5b;
  font-weight: 600;
}

.package-protection-offer__error {
  color: #c0392b;
}

.package-protection-offer__add {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .package-protection-offer {
    padding: 16px 30px;
  }

  .package-protection-offer::after {
    left: 30px;
    width: calc(100% - 60px);
  }
}

@media (max-width: 575px) {
  .package-protection-offer {
    flex-wrap: wrap;
  }

  .package-protection-offer__add {
    width: 100%;
  }
}
