/* ════════════════════════════════════════
   BASKET CONFIGURATOR MODAL
   ════════════════════════════════════════ */

.basket-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.basket-modal-overlay.show { display: flex; }

.basket-modal {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  padding: 0;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.basket-modal-header {
  background: var(--ddcol);
  color: white;
  padding: 1.5rem 1.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.basket-modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.basket-modal-header p {
  font-size: 0.82rem;
  opacity: 0.8;
}

.basket-modal-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  white-space: nowrap;
  margin-left: 1rem;
}

.basket-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.basket-modal-close:hover { background: rgba(255,255,255,0.35); }

.basket-modal-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Section blocks ── */
.bsection {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.5rem;
}

.bsection:last-of-type { border-bottom: none; }

.bsection-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--ddcol);
  margin-bottom: 0.25rem;
}

.bsection-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.bsub-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  margin: 0.75rem 0 0.5rem;
}

/* ── Pill grid ── */
.bpill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bpill {
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--sand);
  border-radius: 2rem;
  background: white;
  font-size: 0.82rem;
  color: var(--text-mid);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bpill:hover { border-color: var(--ddcol-light); color: var(--ddcol); }

.bpill.selected {
  background: var(--ddcol);
  color: white;
  border-color: var(--ddcol);
}

.bpill.small {
  font-size: 0.76rem;
  padding: 0.35rem 0.75rem;
}

.drink-pill { padding-right: 0.7rem; }

.drink-price {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-left: 0.2rem;
}

.bpill.selected .drink-price { opacity: 0.85; }

.extra-tag {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.25);
  border-radius: 1rem;
  padding: 0.1rem 0.35rem;
  margin-left: 0.2rem;
}

.bpill:not(.selected) .extra-tag {
  background: #fef3e0;
  color: #b8860b;
}

.bnote {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ── Footer ── */
.basket-modal-footer {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.btn-basket-add {
  width: 100%;
  background: var(--ddcol);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}

.btn-basket-add:hover:not(:disabled) { background: var(--ddcol-light); }

.btn-basket-add:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .basket-modal-overlay { padding: 0; align-items: flex-end; }
  .basket-modal { border-radius: 18px 18px 0 0; max-height: 90vh; overflow-y: auto; }
}

/* ── Collapsible section toggles ── */
.bsection-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}

.bsection-toggle span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--ddcol);
}

.btoggle-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
}

.btoggle-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.bsection-collapsible {
  margin-top: 0.85rem;
}

/* ── Drink category grouping ── */
.drink-category {
  margin-bottom: 0.9rem;
}

.drink-category:last-child {
  margin-bottom: 0;
}

.drink-category-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.drink-flavour-inline {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: var(--ddcol-pale);
  border-radius: 10px;
}

.drink-flavour-inline .bsub-label {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

/* ── Multi-item blocks (per-scoop / per-pint configurators) ── */
.multi-item-block {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.multi-item-block:last-child {
  margin-bottom: 0;
}
