/* Tick-list of services, running total and booking recap. Used by book.html */

.svc-group { margin-bottom: 24px; }
.svc-group h3 { font-size: 22px; color: #fff; margin-bottom: 12px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.svc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.svc:hover { border-color: var(--accent-light); }
.svc.on { background: #1a1521; border-color: var(--accent-light); }
.svc input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.svc input:focus-visible ~ .svc-tick { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

.svc-tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc.on .svc-tick { background: var(--accent); border-color: var(--accent); }
.svc.on .svc-tick::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.svc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc-name { font-size: 15px; font-weight: 700; color: #fff; }
.svc-meta { font-size: 13px; color: var(--text-faint); }
.svc-price { font-size: 16px; font-weight: 800; color: var(--accent-bright); white-space: nowrap; }

.svc-summary {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 22px;
  background: #1a1521;
  border: 1px solid #2a2432;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.svc-summary .sum-main { flex: 1; min-width: 0; }
.svc-summary .sum-count { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-faint); text-transform: uppercase; }
.svc-summary .sum-items { font-size: 14px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-summary .sum-figures { text-align: right; }
.svc-summary .sum-total { font-family: 'Bebas Neue', system-ui, sans-serif; font-size: 32px; line-height: 1; color: #fff; letter-spacing: 0.02em; }
.svc-summary .sum-time { font-size: 13px; color: var(--text-dim); }
.svc-summary.empty .sum-total { color: var(--text-faint); }
.sum-clear { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px; padding: 8px 14px; font: 600 13px 'Manrope', sans-serif; cursor: pointer; }
.sum-clear:hover { color: #fff; border-color: var(--accent-light); }
.sum-clear[hidden] { display: none; }

.svc-recap { padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; background: #1a1521; border: 1px solid #2a2432; font-size: 14px; color: var(--text-dim); }
.svc-recap strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-summary { flex-wrap: wrap; gap: 10px 16px; padding: 14px 16px; }
  .svc-summary .sum-main { flex-basis: 100%; order: 2; }
  .svc-summary .sum-items { white-space: normal; }
}
/* Barber choice hint and member prices on the booking page */
.stylist-hint { margin: -14px 0 24px; font-size: 13.5px; color: var(--text-dim); }
.svc-price .svc-was { color: var(--text-faint); font-size: 12px; margin-right: 4px; }

/* How many of one service (up to 6): minus, typed number, plus */
.svc { flex-wrap: wrap; }
.svc-qty { position: relative; z-index: 2; flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); cursor: default; }
.svc-qty-label { flex: 1; font-size: 13px; color: var(--text-dim); }
.qty-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: #fff; font: 700 20px/1 'Manrope', sans-serif; cursor: pointer; }
.qty-btn:hover { border-color: var(--accent-light); }
.qty-input { width: 52px; height: 38px; text-align: center; font: 700 16px 'Manrope', sans-serif; color: #fff; background: #0e0b12; border: 1px solid var(--border); border-radius: 10px; padding: 0; position: static; opacity: 1; inset: auto; margin: 0; cursor: text; }
.svc .qty-input { position: static; inset: auto; opacity: 1; width: 52px; height: 38px; margin: 0; }
.sum-long { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; background: #1a1521; border: 1px solid var(--accent-light); font-size: 14px; color: var(--text-dim); }
.sum-long[hidden] { display: none; }
