/* Inherits the site's font and text colour; only the accent colour is set by the plugin. */
.bb-app { --bb-accent: #3f5d54; --bb-line: rgba(128, 128, 128, .4); max-width: 640px; margin: 0 auto; font: inherit; color: inherit; }
.bb-app *, .bb-app *::before, .bb-app *::after { box-sizing: border-box; }
.bb-app [hidden] { display: none !important; }
.bb-app .bb-section { border: 0; margin: 0 0 1.6em; padding: 0; min-width: 0; }
.bb-app legend { font-weight: 600; font-size: 1.05em; padding: 0; margin-bottom: .7em; }

.bb-app .bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bb-app .bb-lengths { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bb-app .bb-times { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }

.bb-app .bb-chip {
  appearance: none; font: inherit; color: inherit; cursor: pointer; text-align: center;
  background: transparent; border: 1px solid var(--bb-line); border-radius: 6px;
  padding: .55em .4em; min-height: 44px; line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.bb-app .bb-chip:hover:not(:disabled) { border-color: var(--bb-accent); }
.bb-app .bb-chip[aria-pressed="true"] { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.bb-app .bb-chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.bb-app .bb-chip-top { font-size: .8em; opacity: .75; }
.bb-app .bb-chip-main { font-size: 1.25em; font-weight: 600; }
.bb-app .bb-chip-sub { font-size: .8em; opacity: .75; }
.bb-app .bb-chip-time, .bb-app .bb-chip-wide { flex-direction: row; }

.bb-app .bb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .bb-app .bb-row { grid-template-columns: 1fr; } }
.bb-app .bb-field { margin-bottom: 1em; display: flex; flex-direction: column; gap: .3em; }
.bb-app .bb-field label { font-weight: 500; }
.bb-app input[type="text"], .bb-app input[type="email"], .bb-app input[type="tel"], .bb-app textarea {
  width: 100%; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--bb-line); border-radius: 6px; padding: .6em .7em;
}
.bb-app input:focus-visible, .bb-app textarea:focus-visible, .bb-app .bb-chip:focus-visible, .bb-app .bb-btn:focus-visible {
  outline: 2px solid var(--bb-accent); outline-offset: 2px;
}
.bb-app .bb-check { display: flex; gap: .6em; align-items: flex-start; margin-bottom: 1.2em; }
.bb-app .bb-check input { margin-top: .3em; }
.bb-app .bb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bb-app .bb-btn {
  appearance: none; font: inherit; cursor: pointer; border-radius: 6px; padding: .75em 1.4em; min-height: 44px;
  background: var(--bb-accent); color: #fff; border: 1px solid var(--bb-accent);
}
.bb-app .bb-btn:disabled { opacity: .55; cursor: wait; }
.bb-app .bb-btn-quiet { background: transparent; color: inherit; border-color: var(--bb-line); }
.bb-app .bb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }

.bb-app .bb-card { border: 1px solid var(--bb-line); border-radius: 8px; padding: 1.1em 1.3em; margin-bottom: 1.4em; }
.bb-app .bb-card h3 { margin: 0 0 .5em; }
.bb-app .bb-done { border-color: var(--bb-accent); }
.bb-app .bb-summary { font-weight: 600; margin: 0 0 1em; }
.bb-app .bb-muted { opacity: .75; font-size: .95em; }
.bb-app .bb-status { min-height: 1.4em; margin: .5em 0 0; }
.bb-app .bb-error { color: #b3261e; }

/* calendar */
.bb-app .bb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6em; }
.bb-app .bb-cal-nav { appearance: none; font: inherit; font-size: 1.4em; line-height: 1; cursor: pointer; color: inherit; background: transparent; border: 1px solid var(--bb-line); border-radius: 6px; width: 44px; height: 44px; }
.bb-app .bb-cal-nav:disabled { opacity: .3; cursor: default; }
.bb-app .bb-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bb-app .bb-cal-dow { text-align: center; font-size: .8em; opacity: .7; padding: .3em 0; }
.bb-app .bb-cal-wide { grid-column: 1 / -1; }
.bb-app .bb-cal-day { appearance: none; font: inherit; color: inherit; cursor: pointer; background: transparent; border: 1px solid var(--bb-line); border-radius: 6px; min-height: 44px; padding: 0; }
.bb-app .bb-cal-day:hover:not(:disabled) { border-color: var(--bb-accent); }
.bb-app .bb-cal-day[aria-pressed="true"] { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.bb-app .bb-cal-day:disabled { opacity: .3; cursor: not-allowed; border-color: transparent; }
.bb-app .bb-cal-day:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: 2px; }
