/* Rapid Hire: shared buttons and links and the client screens (the task list card, the Task Details line,
   Pick a time today). Loaded with eh_asset_url() by every
   page that draws a Rapid Hire piece; sp-templates reuse the shared classes.
   Words come from docs/rapid-hire/copy.md. Every control sets its own text
   color (the app's web view tints unstyled controls). Bootstrap 3 and 5 both
   load on client pages, so every rule here is prefixed rh- and scoped. */

:root {
  --rh-ink: #1a1a1a;
  --rh-gray: #5a6170;
  --rh-line: #e6e6e6;
  --rh-soft: #f8f9fb;
  --rh-warm: #fff6ec;
  --rh-zap: #2563eb;
  --rh-red: #d3292c;
  --rh-radius: 14px;
  --rh-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- buttons and links (for pages without booking-page.css) ---------- */

.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--rh-ink);
  color: #fff;
  font-family: Roboto, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .12s var(--rh-ease), background .15s;
}
.rh-btn:hover, .rh-btn:focus { background: #000; color: #fff; text-decoration: none; }
.rh-btn:active { transform: scale(.985); }
.rh-btn svg { width: 20px; height: 20px; flex: none; }
.rh-btn--red { background: #fff; color: var(--rh-red); border: 1.5px solid var(--rh-red); }
.rh-btn--red:hover, .rh-btn--red:focus { background: #fef2f2; color: var(--rh-red); }
.rh-btn[disabled], .rh-btn.is-busy { opacity: .85; cursor: default; transform: none; }
.rh-btn:focus-visible { outline: 3px solid var(--rh-zap); outline-offset: 2px; }

.rh-link {
  display: inline-block;
  background: none;
  border: 0;
  padding: 10px 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--rh-gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rh-link:hover, .rh-link:focus { color: var(--rh-ink); text-decoration: underline; }
.rh-link:focus-visible { outline: 3px solid var(--rh-zap); outline-offset: 2px; border-radius: 6px; }

/* ---------- the ticket: the C8 list card's status line ("We text you by 1:10 PM.") ---------- */
.rh-ticket__status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--rh-ink); }
.rh-ticket__status[hidden] { display: none; }
.rh-ticket__status-text { display: inline-flex; align-items: center; min-width: 0; }

/* ---------- C8 / C9: the task list card ---------- */

.rh-tcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--rh-line);
  border-radius: var(--rh-radius);
  background: #fff;
  color: var(--rh-ink);
  font-family: Roboto, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  text-align: left;
}
.rh-tcard { position: relative; }
/* The body is the link into Task Details. */
.rh-tcard__body { display: flex; flex-direction: column; gap: 4px; width: 100%; color: var(--rh-ink); text-decoration: none; }
.rh-tcard__body:hover, .rh-tcard__body:focus { color: var(--rh-ink); text-decoration: none; }
.rh-tcard__body:focus-visible { outline: 3px solid var(--rh-zap); outline-offset: 4px; border-radius: 8px; }
.rh-tcard__title { display: block; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--rh-ink); font-family: inherit; }
.rh-tcard__line { display: block; margin: 0; font-size: 15px; color: var(--rh-gray); }
.rh-tcard__status { width: 100%; margin-top: 8px; }
.rh-tcard .rh-btn { margin-top: 12px; }
@media (min-width: 992px) { .rh-tcard { max-width: 608px; } }

/* ---------- The top of Task Details while we ask people ----------
   It takes the place of the usual chip and byline: the chip "Waiting", the
   byline "Asked for Maria L." and the gray clock line with Stop looking. When
   nobody could come there is no photo either. Message waits until someone is
   coming. The rest of Task Details is the usual one under it. */
.tasks_CardInfoBox:has(> .rh-task-status) > .tasks_CardInfo .cardinfoDetails_Box > .cwo-pill,
.tasks_CardInfoBox:has(> .rh-task-status) > .tasks_CardInfo .cardinfoDetails_Box > p,
.tasks_CardInfoBox:has(> .rh-task-status--ended) > .tasks_CardInfo .cardinfoProfile_Box,
.tasks_CardInfoBox:has(> .rh-task-status) > .task_CordFooterBox .cwo-btn-msg { display: none; }
.rh-task-status { margin: 0 0 4px; color: var(--rh-ink); font-family: Roboto, -apple-system, 'Helvetica Neue', Arial, sans-serif; text-align: left; }
.rh-task-status .rh-task-status__h { margin: 0 0 10px; }
.rh-task-status .rh-task-status__chip { display: inline-flex; align-items: center; margin: 0; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 12px; border-radius: 999px; background: #F2F3F5; color: var(--rh-ink); }
.rh-task-status .rh-task-status__by { margin: 0; font-size: 15px; line-height: 1.4; color: var(--rh-ink); }
.rh-task-status .rh-task-status__line { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--rh-gray); }
.rh-task-status__line .rh-task-status__stop { margin-left: 4px; font-size: 14px; }
.rh-task-status__again { display: inline-block; margin-top: 10px; font-size: 15px; }
.rh-task-status__stop[hidden], .rh-task-status__confirm[hidden], .rh-task-status__error[hidden] { display: none; }
.rh-task-status .rh-task-status__ask { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--rh-ink); }
.rh-task-status__ask b { color: var(--rh-ink); }
.rh-task-status__actions { display: flex; gap: 10px; margin-top: 10px; }
.rh-task-status__actions .rh-btn { flex: 1; width: auto; min-height: 44px; font-size: 15px; }
.rh-task-status .rh-task-status__error { margin: 6px 0 0; font-size: 14px; color: var(--rh-gray); }
.rh-task-status__error .rh-link { margin-left: 4px; font-size: 14px; }

/* ---------- C3: Pick a time today ---------- */

.rh-today-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--rh-soft);
  color: var(--rh-ink);
  font-size: 14px;
  line-height: 1.45;
}

/* ---- C3: Pick a date ----------------------------------------------------- */
.ht-day-chip.rh-day-today { position: relative; }
.ht-day-chip .rh-day-bolt {
  width: 14px; height: 14px; margin-top: -2px;
  color: var(--rh-zap); display: inline-flex; line-height: 0;
}
.ht-day-chip .rh-day-bolt svg { width: 14px; height: 14px; display: block; }
.ht-day-chip.selected .rh-day-bolt { color: #fff; }
/* The month step's "Today" tag sits on the chip's lower edge, so the bolt
   takes the top corner instead of crowding it under the number. */
.ht-search-availability-picker #htStep1Month .ht-day-chip .rh-day-bolt {
  position: absolute; top: 4px; right: 4px; margin: 0;
}

.allTimings_Box > .rh-today-line { grid-column: 1 / -1; margin: 0 0 4px; }
/* Inside the Pick a time grid the picker's own span rules (bold 13px, fixed
   widths) must not touch the line. */
.availabilityTimeModal .allTimings_Box > .rh-today-line,
.ht-search-availability-picker .allTimings_Box > .rh-today-line {
  display: flex; align-items: flex-start; gap: 8px; width: auto;
  font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--rh-ink); text-align: left;
}
.availabilityTimeModal .allTimings_Box > .rh-today-line[hidden],
.ht-search-availability-picker .allTimings_Box > .rh-today-line[hidden] { display: none; }

/* ==== w4-client-search-time (C3 today grid) ====
   On today the C3 grid hides past times, keeps the chosen band inside the grid
   and never leaves a tap's hover color on a cell. */
.ht-search-availability-picker .timingsTxt li.rh-time-past { display: none !important; }
/* The chosen band is painted with box-shadow across the grid gap; at the first
   and last column it ran off the grid. Clip it at the grid. Today only: another
   day's grid stays exactly as it was. */
.ht-search-availability-picker .allTimings_Box.rh-today-grid { overflow-x: hidden !important; }
/* A tap leaves :hover on the tapped cell on touch screens. No hover color there. */
@media (hover: none) {
  .ht-search-availability-picker .rh-today-grid .timingsTxt li.available-time-stamp:hover:not(.startActiveTime):not(.endActiveTime):not(.activeTymSelected):not(.ht-pick-end) { background: #fff; border-color: #d9d9d9; }
}
/* The band cells that end or start a row (htRhBandEdges) keep no outward shadow. */
.ht-search-availability-picker .rh-today-grid .timingsTxt li.rh-row-end.startActiveTime,
.ht-search-availability-picker .rh-today-grid .timingsTxt li.rh-row-start.endActiveTime,
.ht-search-availability-picker .rh-today-grid .timingsTxt li.rh-row-start.rh-row-end.activeTymSelected { box-shadow: none !important; }
.ht-search-availability-picker .rh-today-grid .timingsTxt li.rh-row-end.activeTymSelected:not(.rh-row-start) { box-shadow: -8px 0 0 0 #fde6cb !important; }
.ht-search-availability-picker .rh-today-grid .timingsTxt li.rh-row-start.activeTymSelected:not(.rh-row-end) { box-shadow: 8px 0 0 0 #fde6cb !important; }
