/* Homeowner pages (a shop's /s/<slug>/… pages): the shop header's call button, the trust facts, the request form's
   numbered steps, the time picker (day chips → morning/afternoon cards), calendar links, the pay page's amount, and
   the steps after approving an estimate. Empire UI: hairlines, one blue, nothing decorative. 44px targets throughout.
   Loaded by tcPage({ shop }) with HO_V (lib/shop.tsx). */

/* Header: the shop's name, a real call button. */
.tc-shophead {
  align-items: center;
  row-gap: 0.5rem;
}
.tc-shophead .tc-callbtn {
  min-height: 2.75rem;
}

/* Shop page hero: the facts the shop entered, then one primary action and the phone. */
.ho-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}
.ho-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ho-facts svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex: none;
}
.tc-hero-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
@media (min-width: 40rem) {
  .tc-hero-actions {
    grid-template-columns: max-content max-content;
  }
  .tc-hero-actions .btn {
    width: auto;
  }
}

/* The request form: three numbered steps separated by hairlines. */
.tc-reqform {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 10px);
  background: var(--card);
}
.tc-reqform > .alert {
  margin: 1rem 1rem 0;
}
.tc-step {
  padding: 1.1rem 1rem 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.tc-step + .tc-step {
  border-top: 1px solid var(--border);
}
.tc-step-h {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading, inherit);
  font-size: 1.125rem;
  font-weight: 600;
}
.ho-stepnum {
  background: transparent;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-sans, inherit);
  font-size: 0.875rem;
  font-weight: 700;
  flex: none;
}
.tc-submit {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
  text-align: center;
}
.ho-addr {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 7rem;
}
@media (max-width: 22rem) {
  .ho-addr {
    grid-template-columns: 1fr;
  }
}
.tc-zip-note:not([hidden]) {
  margin-top: -0.5rem;
}

/* The time picker. */
.tc-when {
  display: grid;
  gap: 0.75rem;
}
.tc-when-label {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}
.tc-when-days {
  display: grid;
}
.tc-daychips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.125rem 0.125rem 0.5rem;
  scrollbar-width: thin;
}
.tc-daychips[hidden] {
  display: none;
}
.tc-daychip {
  display: grid;
  justify-items: center;
  min-width: 3.5rem;
  min-height: 3.25rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  line-height: 1.15;
  cursor: pointer;
  flex: none;
}
.tc-daychip span {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.tc-daychip strong {
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.tc-daychip[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.tc-daychip[aria-pressed="true"] span {
  color: inherit;
  opacity: 0.85;
}
.tc-daychip:focus-visible {
  outline: 2px solid var(--ring, var(--primary));
  outline-offset: 2px;
}
.tc-day {
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
  min-width: 0;
}
.tc-day[hidden] {
  display: none;
}
.tc-day-h {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.4rem;
  padding: 0;
}
.tc-when.js .tc-day-h {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tc-slot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.tc-slot-pair:has(> :only-child) {
  grid-template-columns: 1fr;
}
.tc-slotcard {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  cursor: pointer;
}
.tc-slotcard > input {
  margin-top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  accent-color: var(--primary);
}
.tc-slotcard > span {
  display: grid;
  gap: 0.1rem;
  line-height: 1.3;
}
.tc-slotcard .muted {
  font-size: 0.875rem;
}
.tc-slotcard:has(input:checked) {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  background: color-mix(in oklab, var(--primary) 6%, var(--background));
}
.tc-slotcard:has(input:focus-visible) {
  outline: 2px solid var(--ring, var(--primary));
  outline-offset: 2px;
}
.tc-asap {
  min-height: 3.75rem;
}
.tc-when-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  font-size: 0.9375rem;
}
.tc-when-more label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
}
.tc-when-more input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--primary);
}
.tc-paychoice {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.tc-paychoice legend {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

/* Booked: the time, big, then calendar links. */
.tc-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.tc-eyebrow svg {
  width: 1rem;
  height: 1rem;
  color: var(--success, var(--primary));
}
.tc-when-big {
  font-family: var(--font-heading, inherit);
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 600;
}
.tc-cal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tc-actions {
  display: grid;
  gap: 0.5rem;
}
.tc-change > summary {
  font-weight: 600;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--link, var(--primary));
}
.tc-change > form {
  margin-top: 0.75rem;
}
.tc-cancel .btn {
  color: var(--muted-foreground);
}
.tc-next {
  list-style: decimal;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* Pay page: the amount first, big. */
.tc-paytop {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0 0.25rem;
}
.tc-amount {
  font-family: var(--font-heading, inherit);
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
}
.tc-paynote {
  text-align: center;
}

/* After approving an estimate: Approved → Pick a time → Deposit. */
.ho-progress {
  display: flex;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  counter-reset: step;
}
.ho-progress li {
  flex: 1;
  padding-top: 0.45rem;
  border-top: 3px solid var(--border);
  counter-increment: step;
}
.ho-progress li::before {
  content: counter(step) ". ";
}
.ho-progress li.done {
  border-top-color: var(--primary);
  color: var(--foreground);
}
.ho-progress li.now {
  border-top-color: color-mix(in oklab, var(--primary) 45%, var(--border));
  color: var(--foreground);
  font-weight: 600;
}
.tc-sign {
  display: grid;
  gap: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.tc-signed {
  white-space: pre-wrap;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* The problem select fills the row like the other fields. */
.tc-reqform select.select {
  width: 100%;
}

/* Tip chooser on the pay page (s0024): chips are radios; the chosen one fills. */
.tc-tip legend {
  font-weight: 600;
}
.tc-tip .chip:has(input:checked) {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.tc-tip .chip input {
  accent-color: var(--primary-foreground);
}
