/**
 * Bookvatio Pro — class booking form
 *
 * Only the shapes that have no equivalent in the free plugin's appointment
 * form. Everything else — cards, buttons, step dots, summary, confirmation —
 * reuses the .bn-* classes from booknest.css, which is enqueued alongside this
 * file, so the owner's Appearance settings drive both forms.
 *
 * Two-class selectors (.booknest .bvc-…) throughout: a single class loses to
 * theme rules like Elementor's .elementor-kit-N button, which is 0,2,0.
 */

.booknest .bvc-sessions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* A session is one row: when · who · seats left. Deliberately not a slot grid —
   a class runs once a week, so there are few of them and each carries more
   information than a time slot does. */
.booknest .bvc-session {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font-family: var(--fb);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* A theme that styles bare <button> paints anything this rule leaves unsaid.
   Elementor's kit sets background-color on button:hover and button:focus,
   which turned these rows the site's global primary — black — the moment the
   pointer touched them. Every state is therefore stated, not just the parts
   being changed. */
.booknest .bvc-session:hover:not(:disabled),
.booknest .bvc-session:focus:not(:disabled) {
  background: var(--surface);
  color: var(--text);
  border-color: var(--pri);
  transform: translateY(-1px);
}

.booknest .bvc-session-when {
  flex: 1;
  min-width: 180px;
  font-weight: 600;
}

.booknest .bvc-session-meta {
  color: var(--text2);
  font-size: var(--fs-sub);
}

.booknest .bvc-session-free {
  font-size: var(--fs-sub);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--cal-ok-bg);
  color: var(--cal-ok-text);
  white-space: nowrap;
}

/* Kept visible rather than hidden: a full class still tells the visitor the
   class exists and runs then, which is what makes them come back for it. */
.booknest .bvc-session.full,
.booknest .bvc-session.full:hover,
.booknest .bvc-session.full:focus {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  transform: none;
}

.booknest .bvc-session.full .bvc-session-free {
  background: var(--cal-full-bg);
  color: var(--cal-full-text);
}

.booknest .bvc-count {
  margin-top: 8px;
  font-size: var(--fs-sub);
  color: var(--text3);
}

.booknest .bvc-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text2);
  font-size: var(--fs-body);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r);
}

/* ── Class-page styling ───────────────────────────────────────────
   The class form has its own shapes: named steps, a badge on the card,
   capacity pills, and a button that says what the card does. Every colour,
   corner and size below comes from the tokens the owner's Appearance
   settings already drive — nothing new to configure, and nothing the
   Appearance panel cannot reach. Two-class selectors throughout, so a
   theme's own button rules do not win. */

/* Named steps. */
.booknest .bvc-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  flex-wrap: nowrap;
}
.booknest .bvc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--text3);
  font-family: var(--fb);
  font-size: var(--fs-sub);
}
.booknest .bvc-step.done { cursor: pointer; }
.booknest .bvc-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--bg2);
  color: var(--text3);
  border: var(--bw) solid var(--border);
  font-size: 13px;
  font-weight: 700;
  transition: var(--tr);
}
.booknest .bvc-step.active .bvc-step-dot {
  background: var(--pri);
  border-color: var(--pri);
  color: var(--btn-pri-text);
}
.booknest .bvc-step.active .bvc-step-name { color: var(--text); font-weight: 600; }
.booknest .bvc-step.done .bvc-step-dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.booknest .bvc-step.done .bvc-step-name { color: var(--text2); }
.booknest .bvc-line {
  flex: 1 1 auto;
  min-width: 12px;
  height: 2px;
  background: var(--border);
}
.booknest .bvc-line.done { background: var(--ok); }
/* Four names will not fit a phone; the numbers carry it from here. */
@media (max-width: 620px) {
  .booknest .bvc-step-name { display: none; }
}

/* Back, as a chip where the eye already is. */
/* Themes style bare <button> elements — Elementor's kit sets its own padding,
   min-width and line-height — which stretched this into a wide oval with the
   glyph pushed off-centre. Everything that decides its shape is therefore
   stated here rather than left to inherit, and the icon is centred by the box
   rather than by the font's own metrics. */
.booknest .bvc-back {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  border: var(--bw) solid var(--border);
  background: var(--surface);
  color: var(--text2);
  display: grid;
  place-items: center;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 14px;
  transition: var(--tr);
}
.booknest .bvc-back svg { display: block; }
.booknest .bvc-back:hover,
.booknest .bvc-back:focus {
  background: var(--surface);
  border-color: var(--pri);
  color: var(--pri);
}

/* Cards. */
.booknest .bvc-card { padding: 0; display: flex; flex-direction: column; }
.booknest .bvc-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.booknest .bn-cat-card .bvc-card-body { padding: 0; }
.booknest .bvc-media { position: relative; }
.booknest .bvc-card .bn-svc-img {
  border-radius: 0;
  margin-bottom: 0;
}
.booknest .bvc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Pills. */
.booknest .bvc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.booknest .bvc-pill {
  padding: 1px 15px;
  border-radius: 20px;
  background: var(--pri-l);
  color: var(--pri);
  font-family: var(--fb);
  font-size: var(--fs-meta);
  font-weight: 600;
}
/* Capacity is availability, so it takes the calendar's 'available' colour. */
.booknest .bvc-pill-ok {
  background: var(--cal-ok-bg);
  color: var(--cal-ok-text);
}

/* The card's call to action. A span, not a button: the whole card is already
   clickable, and a nested button would be a second control doing the same
   thing — confusing to a screen reader and to a keyboard. */
.booknest .bvc-cta {
  display: block;
  margin-top: 16px;
  padding: 4px 16px;
  border-radius: var(--r);
  background: var(--btn-pri-bg);
  color: var(--btn-pri-text);
  font-family: var(--fb);
  font-size: var(--fs-body);
  font-weight: 600;
  text-align: center;
  transition: var(--tr);
}
.booknest .bn-cat-card:hover .bvc-cta,
.booknest .bn-svc-card:hover .bvc-cta { filter: brightness(0.88); }

/* ── Instructor filter and day headings ──────────────────────────
   The appointment form's staff cards are built for a step where choosing a
   person IS the task — a 72px avatar and generous padding. Here they are a
   filter above the timetable, so the same cards are scaled down rather than
   redrawn: still recognisably the same control, a third of the height. */
.booknest .bvc-teachers {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.booknest .bvc-teacher {
  flex: 0 0 auto;
  gap: 10px;
  padding: 10px 16px 10px 10px;
}
.booknest .bvc-teacher .bn-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.booknest .bvc-teacher .bn-staff-name { font-size: var(--fs-body); }
.booknest .bvc-teacher .bn-staff-role { font-size: var(--fs-meta); }

/* Day heading above each group of sessions. */
.booknest .bvc-day {
  font-family: var(--fd);
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--text2);
  margin: 18px 0 2px;
}
.booknest .bvc-day:first-child { margin-top: 0; }

/* Weekday chips, beside the instructor filter. Shown only when the class runs
   on more than one day — two chips for a twice-weekly class would be a control
   that filters nothing worth filtering. */
.booknest .bvc-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.booknest .bvc-day-chip {
  padding: 7px 15px;
  border-radius: 20px;
  border: var(--bw) solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-family: var(--fb);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: var(--tr);
}
.booknest .bvc-day-chip:hover,
.booknest .bvc-day-chip:focus {
  background: var(--surface);
  border-color: var(--pri);
  color: var(--pri);
}
.booknest .bvc-day-chip.on,
.booknest .bvc-day-chip.on:hover,
.booknest .bvc-day-chip.on:focus {
  background: var(--pri);
  border-color: var(--pri);
  color: var(--btn-pri-text);
}

/* Clock beside a duration. The free plugin's stylesheet has no icon rule of
   its own — this one only exists in the class fork — so it is defined here. */
.booknest .bvc-ic {
  display: inline-flex;
  align-items: center;
  color: var(--pri);
  flex: none;
  margin-right: 5px;
}
.booknest .bvc-ic svg { display: block; }
.booknest .bn-svc-dur { display: inline-flex; align-items: center; }
/* In a session row the time leads and the duration follows it, quieter. */
.booknest .bvc-session-when { display: inline-flex; align-items: center; gap: 10px; }
.booknest .bvc-session-when .bn-svc-dur { font-weight: 400; color: var(--text3); }

/* The "all instructors" avatar carries a word, not a face, so it is sized to
   read rather than to match the photographs beside it. */
.booknest .bvc-teacher .bn-avatar.bvc-all {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}
