/**
 * Awafi Herb | bundle.css
 * Bundle builder (homepage) and the summary panel reused by the Remedy Advisor.
 * Source file: edit this one; minify with a caching plugin.
 */

/* ---- Bundle builder ---- */
.bq {
  width: 100%;
  height: 46px;
  border-radius: 99px;
  border: 2px solid var(--ln);
  background: var(--card);
  color: var(--tx);
  padding: 0 52px 0 20px;
  font: inherit;
  outline: 0;
  transition: .2s;
}
.bq:focus {
  border-color: var(--lf);
  box-shadow: 0 0 0 4px #2fa36b26;
}
.bun {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 30px 6px 30px 6px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 370px;
  gap: 26px;
  align-items: start;
}
.tier {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tier span {
  background: var(--soft);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
}
.tier span.on {
  background: var(--pri);
  color: #fff;
}
.bc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.bq {
  height: 44px;
  padding-right: 20px;
}
.bg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.br {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 8px 10px 8px 8px;
}
.br .th {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.br .th svg {
  width: 58%;
}
.bi b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.bi small {
  color: var(--mu);
  font-size: 12px;
  display: block;
}
.bi .bp {
  font: 700 14px Sora,sans-serif;
}
.ba .add {
  height: 38px;
  width: 76px;
  font-size: 14px;
}
.ba .stp {
  width: 104px;
  height: 38px;
}
.ba .stp button {
  width: 32px;
  height: 32px;
}
.sum {
  position: sticky;
  top: 160px;
  background: var(--hero);
  color: #fff;
  border-radius: 24px 5px 24px 5px;
  padding: 20px;
}
.sum h3 {
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sum h3 button {
  background: none;
  border: 0;
  font: 500 13px Figtree,sans-serif;
  color: #9fd2b6;
  text-decoration: underline;
}
.trk {
  height: 10px;
  border-radius: 9px;
  background: #ffffff26;
  margin: 14px 0 6px;
}
.trk i {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: var(--am);
  transition: width .4s;
}
.mk {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9fd2b6;
}
.bl {
  margin: 12px 0;
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.bl li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #ffffff14;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 14px;
}
.bl li>span:first-child {
  min-width: 0;
}
.bl small {
  display: block;
  color: #a9d6bd;
}
.bl .s2 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.bl .s2 button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: #ffffff2e;
  color: #fff;
}
.bl .em0 {
  display: block;
  text-align: center;
  color: #a9d6bd;
  padding: 16px;
  background: none;
  border: 1px dashed #ffffff44;
}
.tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #ffffff2a;
  padding-top: 12px;
  margin-bottom: 12px;
}
.tot b {
  font: 800 24px Sora,sans-serif;
}
.tot s {
  opacity: .6;
  margin-right: 8px;
  font-size: 14px;
}
.sum .btn {
  width: 100%;
  text-align: center;
}
.sum .btn:disabled {
  background: #ffffff2e;
  color: #ffffffb0;
}
#bbar {
  display: none;
}
.sheet {
  display: none;
}

@media(max-width:1000px) {
  .bun {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .sum.a {
    display: none;
  }
  #bbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom,0px));
    z-index: 70;
    background: var(--hero);
    color: #fff;
    border: 0;
    border-radius: 18px;
    padding: 12px 16px;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 14px 34px #0007;
    font-weight: 600;
    text-align: left;
  }
  #bbar.on {
    display: flex;
  }
  #bbar b {
    font-family: Sora,sans-serif;
  }
  #bbar span.v {
    background: var(--am);
    color: #2b1c00;
    border-radius: 99px;
    padding: 7px 14px;
    font-weight: 700;
  }
  .sheet {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: var(--hero);
    color: #fff;
    border-radius: 26px 26px 0 0;
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom,0px));
    transform: translateY(105%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    max-height: 88vh;
    overflow: auto;
  }
  .sheet.on {
    transform: none;
  }
  .sheet .gr {
    width: 44px;
    height: 5px;
    border-radius: 9px;
    background: #ffffff44;
    margin: 0 auto 12px;
  }
  .sheet .bl {
    max-height: 36vh;
  }
  .sheet .sum {
    position: static;
    padding: 0;
    background: none;
    border-radius: 0;
  }
}

@media(max-width:760px) {
  .bg {
    grid-template-columns: 1fr;
  }
}

@media(max-width:1000px) {
  #bbar {
    bottom: calc(86px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* ==== Product thumbnails inside bundle rows ==== */
.br .th img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
