/* ==========================================================================
   Build your own basket.
   ========================================================================== */

.ac-bb__hero {
  text-align: center;
  padding: 54px var(--ac-gutter) 34px;
  background: var(--ac-story-ground, #3A2418);
}
.ac-bb__eyebrow {
  font-family: var(--ac-font-label);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ac-accent-light);
  margin: 0 0 14px;
}
.ac-bb__hero h1 {
  font-family: var(--ac-font-heading);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ac-on-dark);
}
.ac-bb__lead { font-size: 16px; color: var(--ac-on-dark-soft); max-width: 520px; margin: 0 auto; }

.ac-bb__layout {
  max-width: var(--ac-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 46px;
  padding: 44px var(--ac-gutter) var(--ac-space-section);
  align-items: start;
}
.ac-bb__main { min-width: 0; }

/* Step heading */
.ac-bb__stephead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ac-bb__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ac-ink);
  color: var(--ac-on-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ac-font-label);
  font-size: 14px;
  flex-shrink: 0;
}
.ac-bb__stephead h2 { font-size: 28px; font-weight: 600; margin: 0; }
.ac-bb__fill {
  margin-left: auto;
  font-family: var(--ac-font-label);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--ac-accent-deep);
  white-space: nowrap;
}

.ac-bb__note {
  background: var(--ac-panel-warm, #ECE0CB);
  border: 1px solid var(--ac-line-warm);
  border-radius: var(--ac-radius-card);
  padding: 16px 20px;
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ac-ink-body);
  max-width: none;
}

/* Treat cards */
.ac-bb__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ac-bb__card {
  border: 1px solid var(--ac-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ac-surface);
  display: flex;
  flex-direction: column;
  transition: border-color .2s;
}
.ac-bb__card.is-in { border-color: var(--ac-accent); }
.ac-bb__media { height: 130px; overflow: hidden; background: var(--ac-surface-alt); }
.ac-bb__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-bb__body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.ac-bb__body h3 {
  font-family: var(--ac-font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 2px;
  color: var(--ac-ink);
}
.ac-bb__price { font-size: 12.5px; color: var(--ac-ink-muted); margin: 0 0 10px; }

.ac-bb__add {
  margin-top: auto;
  display: block;
  width: 100%;
  border: 1px solid #C2A063;
  background: transparent;
  color: var(--ac-ink);
  padding: 8px;
  border-radius: var(--ac-radius-pill);
  font-family: var(--ac-font-label);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ac-bb__add:hover { background: var(--ac-panel-warm, #ECE0CB); border-color: var(--ac-accent); }

.ac-bb__stepper {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ac-line-warm);
  border-radius: var(--ac-radius-pill);
  overflow: hidden;
  background: var(--ac-field);
}
.ac-bb__stepper[hidden] { display: none; }
.ac-bb__stepper button {
  border: 0;
  background: none;
  padding: 6px 14px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--ac-ink);
}
.ac-bb__stepper span { font-size: 14px; min-width: 20px; text-align: center; }

/* Summary */
.ac-bb__summary {
  position: sticky;
  top: 96px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-card);
  padding: 28px 26px;
}
.ac-bb__summary h3 { font-size: 26px; font-weight: 600; margin: 0 0 4px; }
.ac-bb__summarysub { font-size: 13.5px; color: var(--ac-ink-muted); margin: 0 0 18px; }
.ac-bb__lines { min-height: 40px; margin-bottom: 6px; }
.ac-bb__empty { font-size: 13.5px; color: #9A826B; font-style: italic; margin: 4px 0 0; }
.ac-bb__line,
.ac-bb__feeline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ac-ink-body);
  padding: 6px 0;
  border-bottom: 1px solid #F0E6D4;
}
.ac-bb__feeline { margin-bottom: 18px; }
.ac-bb__notelabel { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .16em; }
.ac-bb__summary textarea { resize: none; margin-bottom: 18px; }
.ac-bb__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--ac-font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--ac-ink);
  border-top: 1px solid var(--ac-line-warm);
  padding-top: 14px;
  margin-bottom: 16px;
}
.ac-bb__submit { display: block; width: 100%; text-align: center; border: 0; cursor: pointer; }
.ac-bb__submit:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.ac-bb__ready { text-align: center; font-size: 12px; color: #9A826B; margin: 12px 0 0; }
.ac-bb__ready[hidden] { display: none; }

@media (max-width: 1010px) {
  .ac-bb__layout { grid-template-columns: 1fr; gap: 30px; }
  .ac-bb__summary { position: static; }
  .ac-bb__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ac-bb__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ac-bb__stephead { flex-wrap: wrap; }
  .ac-bb__fill { margin-left: 40px; width: 100%; }
}
