/* ===========================================================================
   sspa.online.v6r2.css — v6 "r2" refresh (BETA ONLY)
   Linked only from online/index.v6.beta.php, which also sets <body class="ob6-r2">.
   Every rule is scoped to body.ob6-r2, so production pages never see it.
   Loads AFTER sspa.online.v6.css and overrides it where needed.
     1  slimmer header: compact nav, business name + "Today" pill
     2  compact stepper (short connectors)
     4  categories = one scrolling row of underlined tabs (no "+N more")
     5  services = one list with dividers; price + Add in their own column
     6  empty cart = dashed hint, no empty totals
     7  selected service highlighted in the list
     8  cart lines as cards, "Add another person" as a full-width dashed button
   =========================================================================== */

/* ---------- 1. Header ---------- */
body.sspa-v6.ob6-r2 #lcnnavbar { padding-top: 4px !important; padding-bottom: 4px !important; }
@media (min-width: 992px) {
  body.sspa-v6.ob6-r2 #lcnnavbar .nav-link {
    padding: 14px 12px !important;
    border-radius: 0 !important;
    background: none !important;
    border-bottom: 3px solid transparent;
    font-weight: 600;
  }
  body.sspa-v6.ob6-r2 #lcnnavbar .nav-link.active { border-bottom-color: var(--ob6-accent); color: var(--ob6-ink) !important; }
}
body.sspa-v6.ob6-r2 .ob6-biz-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
body.sspa-v6.ob6-r2 .ob6-today:not(:empty) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #E7F4EC;
  color: #1B6B3E;
  font-weight: 700;
}
body.sspa-v6.ob6-r2 .ob6-today:not(:empty)::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1E7A46;
}
body.sspa-v6.ob6-r2 .ob6-today.is-closed { background: #F1F2F5; color: var(--ob6-muted); }
body.sspa-v6.ob6-r2 .ob6-today.is-closed::before { background: #9AA1AC; }

/* ---------- 2. Stepper ---------- */
@media (min-width: 768px) {
  body.sspa-v6.ob6-r2 .ob6-stepper { flex: 0 1 auto; gap: 8px; }
  body.sspa-v6.ob6-r2 .ob6-sep { flex: 0 0 28px; min-width: 28px; }
  body.sspa-v6.ob6-r2 .ob6-head { justify-content: space-between; }
}

/* ---------- 4. Categories: underlined tabs in one scrolling row ---------- */
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 2px !important;
  padding-bottom: 0 !important;
  border-bottom: 1px solid var(--ob6-line);
  scrollbar-width: thin;
}
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList .ob6-cat-more { display: none !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList .list-group-item.ob6-cat-hidden { display: flex !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList .list-group-item {
  flex: 0 0 auto;
  min-height: 44px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--ob6-muted) !important;
  font-weight: 700;
  box-shadow: none !important;
}
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList .list-group-item:hover { color: var(--ob6-ink) !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList .list-group-item.active {
  color: var(--ob6-ink) !important;
  border-bottom-color: var(--ob6-accent) !important;
}
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList .list-group-item.active * { color: inherit !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList .ob-cat-count,
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCategoryList .ob-cat-count-active {
  background: none !important;
  color: inherit !important;
  opacity: .6;
  padding: 0 !important;
  font-weight: 600;
}

/* ---------- 5. Services: one list, dividers, price column ---------- */
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList {
  gap: 0 !important;
  background: var(--ob6-surface, #fff);
  border: 1px solid var(--ob6-line);
  border-radius: 16px;
  /* no overflow:hidden here: the v6 page scrolls this list (it blocked scrolling) */
}
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList > :first-child { border-top-left-radius: 15px !important; border-top-right-radius: 15px !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList > :last-child { border-bottom-left-radius: 15px !important; border-bottom-right-radius: 15px !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .list-group-item {
  border: 0 !important;
  border-top: 1px solid #EEF0F3 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .list-group-item:first-child { border-top: 0 !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-item:hover { background: #FAFBFC; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 .ob-svc-title { font-size: 16px; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 .ob-svc-meta { font-size: 13px; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 .ob6r-price { font-weight: 700; font-size: 16px; white-space: nowrap; text-align: right; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 .ob6r-price .text-decoration-line-through { display: block; font-size: 13px; font-weight: 500; margin: 0 !important; }

@media (min-width: 576px) {
  /* tight row: title / description / "15 min · More" on the left, price + Add centred on the right */
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-item,
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-item:is(.ob6-no-notes, :not(:has(.ob-svc-notes))),
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-item:is(.ob6-no-notes, :not(:has(.ob-svc-notes))):not(:has(.ob-svc-meta)) {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    grid-template-rows: none !important;
    grid-template-areas:
      "title title price btn"
      "notes notes price btn"
      "meta  more  price btn"
      "staff staff staff staff"
      "addon addon addon addon" !important;
    grid-auto-rows: auto !important;
    column-gap: 16px !important;
    row-gap: 0 !important;
    align-items: start !important;
    align-content: start !important;
    padding: 14px 20px !important;
  }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-top { display: contents !important; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-title { grid-area: title; align-self: end; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-notes { grid-area: notes; margin: 2px 0 0 !important; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-meta { grid-area: meta; margin: 4px 0 0 !important; min-height: 0; align-self: center; white-space: nowrap; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob6-more {
    grid-area: more; justify-self: start; align-self: center;
    margin: 4px 0 0 !important; min-height: 0 !important; padding: 0 !important; line-height: 1.4;
  }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-item:not(:has(.ob-svc-meta)) .ob6-more::before { content: none; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob6r-price { grid-area: price; align-self: center; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-btn { grid-area: btn; align-self: center; margin: 0 !important; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-staff { grid-area: staff; margin-top: 10px !important; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-addons { grid-area: addon; margin-top: 10px !important; }
  /* no description: title and duration centred against the button */
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-item:is(.ob6-no-notes, :not(:has(.ob-svc-notes))) .ob-svc-meta { margin-top: 2px !important; }
}
/* phones: price sits on the duration line, Add stays on the title line */
@media (max-width: 575.98px) {
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .list-group-item { padding: 14px 16px !important; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-meta { display: inline-block; margin-right: 12px; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob6r-price { display: inline-block; text-align: left; margin-top: 6px; font-size: 15px; }
  body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob6r-price .text-decoration-line-through { display: inline; margin-right: 6px !important; }
}

/* ---------- 7. Selected service ---------- */
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obServiceList .ob-svc-item[aria-disabled="true"] {
  background: #F4F8FE !important;
  box-shadow: inset 4px 0 0 var(--ob6-accent) !important;
  opacity: 1 !important;
}

/* ---------- 6. Empty cart ---------- */
body.sspa-v6.ob6-r2.ob6-cart-empty #sspaOnlineBookingV5 #obCartEmpty {
  margin-top: 12px !important;
  padding: 16px;
  border: 1.5px dashed var(--ob6-line-strong, #D9DDE3);
  border-radius: 14px;
  text-align: center;
  font-size: 14px !important;
}
@media (min-width: 992px) {
  body.sspa-v6.ob6-r2.ob6-cart-empty #sspaOnlineBookingV5 #obCartCol hr,
  body.sspa-v6.ob6-r2.ob6-cart-empty #sspaOnlineBookingV5 #obCartCol .ob-cart-totals { display: none !important; }
}

/* ---------- 8. Cart lines as cards ---------- */
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCartList { gap: 10px !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCartList .list-group-item {
  border: 1px solid var(--ob6-line) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  background: #fff;
}
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCartList .list-group-item:last-child { border-bottom: 1px solid var(--ob6-line) !important; }
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCartList .list-group-item.ob-cart-addon {
  margin-top: -6px;
  border-style: dashed !important;
  background: #FAFBFC;
}
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCartList [data-ob-fam-add] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1.5px dashed #B9C3D3 !important;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}
body.sspa-v6.ob6-r2 #sspaOnlineBookingV5 #obCartList [data-ob-fam-add]:hover { background: var(--ob6-sel-bg); }
