/* Every rule is scoped to .hope-ba, independent of SWELL and Contact Form 7. */
.hope-ba {
  --hope-ba-main: #1f3354;
  --hope-ba-sub: #2c4a78;
  --hope-ba-line: #d8dee8;
  box-sizing: border-box;
  width: 100%;
  max-width: 880px;
  margin: 20px auto;
  padding: 16px;
  border: 1px solid var(--hope-ba-line);
  border-radius: 12px;
  background: #fff;
  color: #232730;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  overflow: hidden;
}
.hope-ba *, .hope-ba *::before, .hope-ba *::after { box-sizing: border-box; }
.hope-ba [hidden] { display: none !important; }
.hope-ba .hope-ba__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hope-ba h3.hope-ba__title {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  color: var(--hope-ba-main); font-size: 18px; font-weight: 700; line-height: 1.4;
}
.hope-ba h3.hope-ba__title::before, .hope-ba h3.hope-ba__title::after,
.hope-ba h4.hope-ba__date::before, .hope-ba h4.hope-ba__date::after { content: none; display: none; }
.hope-ba .hope-ba__navigation { display: flex; gap: 6px; flex-shrink: 0; }
.hope-ba button.hope-ba__arrow {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--hope-ba-line);
  border-radius: 7px; background: #fff; color: var(--hope-ba-main); font: inherit;
  font-size: 27px; font-weight: 400; line-height: 1; cursor: pointer; box-shadow: none;
}
.hope-ba button.hope-ba__arrow:hover:not(:disabled) { background: #eef3f9; border-color: var(--hope-ba-sub); }
.hope-ba button.hope-ba__arrow:disabled { color: #929aaa; background: #f6f8fb; cursor: default; opacity: .65; }
.hope-ba .hope-ba__arrow:focus-visible, .hope-ba .hope-ba__track:focus-visible, .hope-ba .hope-ba__form-link:focus-visible {
  outline: 3px solid #2c4a78; outline-offset: 2px;
}
.hope-ba p.hope-ba__hint { margin: 1px 0 10px; padding: 0; color: #5c6472; font-size: 12px; line-height: 1.5; }
.hope-ba .hope-ba__track {
  display: flex; align-items: stretch; gap: 12px; max-width: 100%; margin: 0; padding: 3px 2px 10px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #a7b3c4 #edf1f6;
}
.hope-ba .hope-ba__day {
  flex: 0 0 calc((100% - 24px) / 3); min-width: 270px; margin: 0; padding: 9px;
  border: 1px solid var(--hope-ba-line); border-top: 3px solid var(--hope-ba-main);
  border-radius: 8px; background: #fff; scroll-snap-align: start;
}
.hope-ba .hope-ba__day--phone { border-top-color: #8b652d; }
.hope-ba .hope-ba__day--closed { border-top-color: #98a2b1; background: #f6f7f9; }
.hope-ba .hope-ba__day-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 9px; }
.hope-ba h4.hope-ba__date {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--hope-ba-main);
  font-size: 16px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.hope-ba .hope-ba__weekday { margin-left: 4px; font-size: 12px; font-weight: 400; }
.hope-ba .hope-ba__day-status { color: var(--hope-ba-sub); font-size: 11px; white-space: nowrap; }
.hope-ba .hope-ba__day--phone .hope-ba__day-status { color: #735321; }
.hope-ba .hope-ba__day--closed .hope-ba__day-status { color: #606977; }
.hope-ba ul.hope-ba__slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.hope-ba li.hope-ba__slot {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; min-width: 0; min-height: 29px;
  margin: 0; padding: 3px 2px; border: 1px solid #dce4ee; border-radius: 5px;
  background: #f3f6fa; color: var(--hope-ba-main); font-size: 14px; line-height: 1.5; list-style: none;
  font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}
.hope-ba li.hope-ba__slot::before, .hope-ba li.hope-ba__slot::after { content: none; display: none; }
.hope-ba .hope-ba__slot-label { flex-shrink: 0; font-size: 11px; font-weight: 700; }
.hope-ba .hope-ba__slot-time { white-space: normal; overflow-wrap: anywhere; }
.hope-ba li.hope-ba__slot--phone { border-color: #e8ddc7; background: #faf7f0; color: #70501e; }
.hope-ba li.hope-ba__slot--closed { border-color: #e0e3e8; background: #f1f2f4; color: #667080; }
.hope-ba p.hope-ba__empty { margin: 0; padding: 10px 0; color: #606977; font-size: 13px; }
.hope-ba p.hope-ba__message { margin: 5px 0 12px; padding: 14px; border-radius: 6px; background: #f6f8fb; color: #46536a; font-size: 13px; line-height: 1.8; }
.hope-ba .hope-ba__footer { margin-top: 7px; font-size: 12px; line-height: 1.6; }
.hope-ba p.hope-ba__note { display: inline; margin: 0; padding: 0; color: #5c6472; font-size: 12px; line-height: 1.6; }
.hope-ba a.hope-ba__form-link { display: inline-block; margin-left: 8px; color: var(--hope-ba-sub); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hope-ba .hope-ba__sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* ---- 1.1.0: folding bar, tap-to-fill slots, selected state ---- */
.hope-ba .hope-ba__bar { display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 8px 0 0; }
.hope-ba[data-collapse="always"] .hope-ba__bar { display: flex; }
.hope-ba p.hope-ba__summary { margin: 0; padding: 0; color: #46536a; font-size: 13px; line-height: 1.6; }
.hope-ba button.hope-ba__toggle {
  appearance: none; min-height: 42px; margin: 0; padding: 8px 18px; border: 1px solid var(--hope-ba-sub);
  border-radius: 999px; background: #fff; color: var(--hope-ba-main); font: inherit; font-size: 14px;
  font-weight: 700; line-height: 1.4; cursor: pointer; box-shadow: none;
}
.hope-ba button.hope-ba__toggle:hover { background: #eef3f9; }
.hope-ba.is-collapsed .hope-ba__navigation { display: none; }
.hope-ba p.hope-ba__selected {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; padding: 8px 12px;
  border-radius: 6px; background: #eef3f9; color: var(--hope-ba-main); font-size: 13px; font-weight: 700; line-height: 1.6;
}
.hope-ba button.hope-ba__clear {
  appearance: none; margin: 0; padding: 2px 12px; border: 1px solid var(--hope-ba-line); border-radius: 999px;
  background: #fff; color: #46536a; font: inherit; font-size: 12px; font-weight: 400; line-height: 1.8; cursor: pointer; box-shadow: none;
}
.hope-ba:not([data-collapse="never"]) .hope-ba__body > p.hope-ba__hint:first-child { margin-top: 8px; }
.hope-ba li.hope-ba__slot.hope-ba__slot--selectable { padding: 0; border: 0; background: none; }
.hope-ba button.hope-ba__slot-button {
  appearance: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px;
  width: 100%; min-height: 40px; margin: 0; padding: 3px 2px; border: 1px solid #dce4ee; border-radius: 5px;
  background: #f3f6fa; color: var(--hope-ba-main); font: inherit; font-size: 14px; line-height: 1.5;
  font-variant-numeric: tabular-nums; letter-spacing: -.2px; cursor: pointer; box-shadow: none;
}
.hope-ba li.hope-ba__slot--phone button.hope-ba__slot-button { border-color: #e8ddc7; background: #faf7f0; color: #70501e; }
.hope-ba button.hope-ba__slot-button:hover { border-color: var(--hope-ba-sub); background: #e6edf6; }
.hope-ba li.hope-ba__slot--phone button.hope-ba__slot-button:hover { border-color: #b08a4e; background: #f4ecdc; }
.hope-ba button.hope-ba__slot-button[aria-pressed="true"],
.hope-ba li.hope-ba__slot--phone button.hope-ba__slot-button[aria-pressed="true"] { border-color: var(--hope-ba-main); background: var(--hope-ba-main); color: #fff; }
.hope-ba button.hope-ba__toggle:focus-visible, .hope-ba button.hope-ba__clear:focus-visible,
.hope-ba button.hope-ba__slot-button:focus-visible { outline: 3px solid #2c4a78; outline-offset: 2px; }
/* The receiving form field briefly glows after a time is chosen. */
.hope-ba-filled { box-shadow: 0 0 0 3px rgba(44, 74, 120, .35) !important; transition: box-shadow .3s ease; }
@media (max-width: 680px) {
  .hope-ba { margin: 16px auto; padding: 12px; }
  .hope-ba h3.hope-ba__title { font-size: 17px; }
  .hope-ba .hope-ba__track { gap: 10px; }
  .hope-ba .hope-ba__day { flex-basis: 72%; min-width: 270px; }
  .hope-ba[data-collapse="mobile"] .hope-ba__bar { display: flex; }
  .hope-ba button.hope-ba__toggle { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .hope-ba .hope-ba__track { scroll-behavior: auto; } }
