/*
 * Product bundles - product page notice, mini cart sets, mp-checkout sets.
 * Shop palette: leaf #1E913D, ink #253D4E, mint #E9F7EF, pollen #FDC040; Quicksand / Lato.
 * Linked from porto/template/common/header.tpl while bundles_status is on.
 */
.bundle-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FDC040;
  color: #253D4E;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Product page notice */
.detail-extralink .bundle-offer,
.bundle-offer {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  margin: 14px 0 6px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 145, 61, 0.24);
  border-radius: 12px;
  background: linear-gradient(160deg, #F2FAED 0%, #FFFFFF 58%, #FFFAF0 100%);
  color: #253D4E;
}

.bundle-offer::after {
  position: absolute;
  top: -52px;
  right: -40px;
  width: 136px;
  height: 136px;
  border: 20px solid rgba(253, 192, 64, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.bundle-offer__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bundle-offer__icon {
  display: inline-flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 7px;
  background: linear-gradient(145deg, #1E913D, #16712F);
  color: #FFFFFF;
  box-shadow: 0 8px 18px -10px rgba(20, 104, 43, 0.9);
}

/* Same box, colours and glyph size as the planting density calculator tile (.planting-density-tool__visual). */
.bundle-offer__icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 1;
}

@media only screen and (max-width: 480px) {
  .bundle-offer__icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .bundle-offer__icon svg {
    width: 39px;
    height: 39px;
  }
}

.bundle-offer__titles {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}

.bundle-offer__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1E913D;
  font-size: 13px;
  font-weight: 700;
}

.bundle-offer__title {
  color: #253D4E;
  font-family: 'Quicksand', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.bundle-offer__badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1E913D;
  color: #FFFFFF;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bundle-offer__badge[hidden] {
  display: none;
}

.bundle-offer__text {
  position: relative;
  z-index: 1;
  margin: -4px 0 12px;
  color: #4F5D6A;
  font-size: 14px;
  line-height: 1.5;
}

.bundle-offer__rows {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #E6EEE6;
}

.bundle-offer__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.bundle-offer__row + .bundle-offer__row {
  border-top: 1px solid #EEF2EE;
}

.bundle-offer__thumb {
  display: inline-flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: #F5F2ED;
}

.bundle-offer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-offer__info {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.bundle-offer__name {
  overflow: hidden;
  color: #253D4E;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

a.bundle-offer__name:hover,
a.bundle-offer__name:focus-visible {
  color: #1E913D;
}

.bundle-offer__meta {
  color: #7E7E7E;
  font-size: 12px;
}

.bundle-offer__row--main .bundle-offer__name {
  color: #4F5D6A;
}

.bundle-offer__prices {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px 8px;
  max-width: 45%;
  text-align: right;
}

.bundle-offer__prices del {
  color: #9AA3AB;
  font-size: 13px;
}

.bundle-offer__prices strong {
  color: #1E913D;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.bundle-offer__prices .bundle-offer__plain {
  color: #253D4E;
}

.bundle-offer__note {
  position: relative;
  z-index: 1;
  margin: 10px 2px 0;
  color: #67806F;
  font-size: 13px;
  line-height: 1.4;
}

.bundle-offer__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.bundle-offer__sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.bundle-offer__sum-label {
  color: #4F5D6A;
  font-size: 14px;
}

.bundle-offer__sum strong {
  color: #1E913D;
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.bundle-offer__sum del {
  color: #9AA3AB;
  font-size: 14px;
}

.bundle-offer .bundle-offer__add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: #1E913D;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.bundle-offer .bundle-offer__add:hover,
.bundle-offer .bundle-offer__add:focus-visible {
  background: #187A33;
}

.bundle-offer .bundle-offer__add:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.bundle-offer__status {
  position: relative;
  z-index: 1;
  margin: 8px 2px 0;
  color: #1E913D;
  font-size: 13px;
}

.bundle-offer__status:empty {
  display: none;
}

.bundle-offer__status.is-error {
  color: #C0392B;
}

@media (max-width: 575px) {
  .bundle-offer {
    padding: 14px 12px;
  }

  .bundle-offer__head {
    flex-wrap: wrap;
  }

  .bundle-offer__badge {
    order: 3;
  }

  .bundle-offer__row {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .bundle-offer__info {
    flex-basis: calc(100% - 140px);
  }

  .bundle-offer__prices {
    flex: 1 0 100%;
    max-width: none;
    padding-left: 66px;
    justify-content: flex-start;
    text-align: left;
  }

  .bundle-offer .bundle-offer__add {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bundle-offer__row {
    transition: none;
  }
}

/* Mini cart (porto/template/common/cart.tpl) */
#mini-cart .mini-cart-bundle {
  margin: 8px 0;
  padding: 0 10px 2px;
  border: 1px solid rgba(30, 145, 61, 0.24);
  border-radius: 12px;
  background: #F6FBF3;
}

#mini-cart .mini-cart-bundle__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 10px 0 6px;
  color: #253D4E;
  font-size: 13px;
  line-height: 1.3;
}

#mini-cart .mini-cart-bundle__label {
  color: #1E913D;
  font-weight: 700;
}

#mini-cart .mini-cart-bundle__name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
}

#mini-cart .mini-cart-bundle__savings {
  margin-left: auto;
  color: #1E913D;
  font-weight: 700;
  white-space: nowrap;
}

#mini-cart .mini-cart-bundle .mini-cart-item {
  border-color: #E3EEE0;
  background: transparent;
}

#mini-cart .mini-cart-bundle__full {
  display: block;
  color: #9AA3AB;
  font-size: 12px;
  font-weight: 400;
}

/* mp-checkout cart (default/template/mpcheckout/shoppingcart_1.tpl) */
.products-table tr.bundle-head > td {
  padding: 10px 12px 6px;
  border-bottom: 0;
  background: #F6FBF3;
}

.bundle-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: #253D4E;
  font-size: 14px;
}

.bundle-head__icon {
  display: inline-flex;
  color: #1E913D;
}

.bundle-head__label {
  color: #1E913D;
  font-weight: 700;
}

.bundle-head__name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
}

.bundle-head__savings {
  color: #1E913D;
  font-weight: 700;
}

.bundle-head__remove {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #7E7E7E;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.bundle-head__remove:hover,
.bundle-head__remove:focus-visible {
  color: #C0392B;
}

.products-table tr.bundle-line > td {
  background: #FBFDF9;
}

.products-table tr.bundle-line > td:first-child {
  box-shadow: inset 3px 0 0 #1E913D;
}

.cart-item-price-spans .bundle-price {
  color: #1E913D;
  font-weight: 700;
}

.cart-item-price-spans .bundle-chip {
  margin-top: 2px;
}

/* Visually hidden label text (the theme has no .sr-only). */
.bundle-offer__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* While module/bundles/quote reprices the offer. */
.bundle-offer.is-pricing .bundle-offer__prices,
.bundle-offer.is-pricing .bundle-offer__sum,
.bundle-offer.is-pricing .bundle-offer__badge {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

/* A set went back to full price (module/bundles/notice). */
.bundle-lost {
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 3px solid #FDC040;
  border-radius: 8px;
  background: #FFF8E6;
  color: #253D4E;
  font-size: 13px;
  line-height: 1.4;
}

.bundle-lost p {
  margin: 0;
}

.bundle-lost p + p {
  margin-top: 4px;
}
