/* Buddy Public Booking · FULL design - Step 5: Collection. */
.bb-collection-stack { display: flex; flex-direction: column; gap: 16px; }
.bb-collection-stack .bb-v5-header { margin-bottom: 8px; }
.bb-collection-card { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1px solid var(--bb-gray-300); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.bb-collection-card-title { margin: 0; color: var(--bb-text); font-size: 18px; line-height: 28px; font-weight: 600; }

/* Collection source */
.bb-collection-source { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bb-fade-100); }
.bb-collection-source-button { flex: 0 0 auto; min-width: 0; height: 30px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--bb-muted-label); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color .1s ease, color .1s ease; }
.bb-collection-source-button:hover { color: var(--bb-text); }
.bb-collection-source-button.is-selected { background: #fff; color: var(--bb-text); box-shadow: 0 1px 2px rgba(16,24,40,.1); }
.bb-collection-address-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-radius: 8px; background: var(--bb-fade); color: var(--bb-text); font-size: 14px; line-height: 20px; }
.bb-collection-address-change { padding: 0 4px; border: 0; background: transparent; color: var(--bb-purple-dark); font: inherit; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bb-collection-vet-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid oklch(.88 .06 245); border-radius: 12px; background: oklch(.97 .015 245); color: oklch(.40 .11 245); font-size: 14px; line-height: 20px; }
.bb-collection-vet-note > span { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.bb-collection-vet-note > span svg { width: 16px; height: 16px; }
.bb-collection-vet-note p, .bb-collection-empty { margin: 0; }
.bb-collect-address { margin: 0; }

/* Calendar and slots */
.bb-collection-schedule { display: flex; flex-wrap: wrap; gap: 24px; }
.bb-collection-calendar, .bb-collection-slots { flex: 1 1 280px; min-width: 0; }
.bb-cal { width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
.bb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bb-cal-title { color: var(--bb-text); font-size: 14px; font-weight: 600; }
.bb-cal-nav { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--bb-muted-label); font-size: 22px; line-height: 1; }
.bb-cal-nav:hover { border-color: transparent; background: var(--bb-fade); color: var(--bb-text); }
.bb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bb-cal-dowcell { display: grid; height: 24px; padding: 0; place-items: center; color: var(--bb-muted-label); font-size: 12px; }
.bb-cal-day { display: grid; min-height: 30px; place-items: center; border-radius: 8px; font-size: 14px; }
.bb-cal-day:hover { background: var(--bb-fade-100); }
.bb-cal-day.is-muted, .bb-cal-day.is-disabled { color: var(--bb-gray-400); }
.bb-cal-day.is-selected { background: var(--bb-brown); color: #fff; font-weight: 600; }
.bb-collection-slot-heading { height: 32px; margin: 0 0 12px; color: var(--bb-text); font-size: 14px; line-height: 32px; font-weight: 600; }
.bb-timeslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 268px; padding: 2px; overflow-y: auto; }
.bb-timeslot { min-width: 0; height: 30px; padding: 0 10px; border: 1px solid var(--bb-gray-300); border-radius: 8px; background: #fff; color: var(--bb-text); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 400; cursor: pointer; transition: background .1s ease, border-color .1s ease; }
.bb-timeslot:hover { border-color: var(--bb-gray-400); }
.bb-timeslot.is-selected { border-color: var(--bb-brown); background: var(--bb-purple-100); color: var(--bb-purple-dark); font-weight: 500; }
.bb-timeslot.is-disabled { opacity: .5; cursor: not-allowed; }
.bb-collection-when { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 8px; background: var(--bb-purple-100); color: var(--bb-purple-dark); font-size: 14px; line-height: 20px; }
.bb-collection-when > span:first-child { width: 16px; height: 16px; flex: 0 0 16px; }
.bb-collection-when > span:first-child svg { width: 16px; height: 16px; }
.bb-collection-when-text { flex: 1; min-width: 200px; font-weight: 500; }
.bb-collection-when-rate { color: var(--bb-purple-dark); font-size: 13px; }
.bb-collection-empty { color: var(--bb-muted-label); font-size: 14px; line-height: 20px; }

/* Dynamic collection time bands */
.bb-collection-rate-copy { display: flex; flex-direction: column; gap: 4px; }
.bb-collection-rate-copy p { margin: 0; max-width: 720px; color: var(--bb-muted-label); font-size: 12px; line-height: 16px; }
.bb-collection-rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bb-collection-rate { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid var(--bb-gray-300); border-radius: 12px; background: #fff; }
.bb-collection-rate.is-active { border-color: var(--bb-purple-300); background: var(--bb-purple-100); }
.bb-collection-rate-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid var(--bb-purple-300); border-radius: 8px; background: var(--bb-purple-100); color: var(--bb-purple-dark); }
.bb-collection-rate-icon svg { width: 16px; height: 16px; }
.bb-collection-rate.is-active .bb-collection-rate-icon { border-color: var(--bb-purple); background: #fff; }
.bb-collection-rate-body { flex: 1; min-width: 0; }
.bb-collection-rate-meta { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; }
.bb-collection-rate-title { margin: 0; color: var(--bb-text); font-size: 14px; line-height: 20px; font-weight: 500; }
.bb-collection-rate-price { color: var(--bb-text); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.bb-collection-rate-help { margin: 2px 0 0; color: var(--bb-muted-label); font-size: 12px; line-height: 16px; }
.bb-collection-rate-applies { display: inline-flex; height: 20px; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--bb-purple-100); color: var(--bb-purple-dark); font-size: 12px; line-height: 16px; font-weight: 500; }
.bb-collection-footnote { max-width: 640px; margin: 0; color: var(--bb-muted-label); font-size: 12px; line-height: 16px; }

@media (max-width: 640px) {
  .bb-collection-card { padding: 20px; }
  .bb-collection-schedule { gap: 20px; }
  .bb-collection-source-button { font-size: 12px; }
  /* The desktop 300px minimum is wider than the padded collection card on
     narrow phones. Keep each rate card within its available column. */
  .bb-collection-rates { grid-template-columns: minmax(0, 1fr); }
  .bb-collection-rate { min-width: 0; }
}
