/* Herefront AI — chat panel in the style of modern AI assistants (Claude / ChatGPT).
   Self-contained: it brings its own colours and font, so any page (Herefront, a site's own assistant) can mount it. */
.hfc-panel, .hfc-fab, .hfc-scrim, .hfc-ask { --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b; --blue: #0071e3;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif; --ease: cubic-bezier(.28, .11, .32, 1);
  letter-spacing: -0.01em; }
.hfc-panel { text-align: left; }
.hfc-ask { max-width: 640px; margin: 34px auto 0; }
.hfc-box { display: flex; align-items: flex-end; gap: 10px; background: #fff; border: 1px solid #e3e3e8; border-radius: 28px;
  padding: 10px 10px 10px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px -18px rgba(0,0,0,.25);
  transition: border-color .2s, box-shadow .2s; text-align: left; }
.hfc-box:focus-within { border-color: #c7c7cf; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 16px 48px -18px rgba(0,0,0,.32); }
.hfc-box textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font: 17px/1.45 var(--font);
  color: var(--ink); padding: 9px 0; max-height: 180px; letter-spacing: -0.01em; }
.hfc-box textarea::placeholder { color: #9a9aa1; }
.hfc-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #1d1d1f; color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: opacity .2s, transform .15s, background .2s; }
.hfc-send:disabled { opacity: .25; cursor: default; }
.hfc-send:not(:disabled):active { transform: scale(.94); }
.hfc-send svg { width: 18px; height: 18px; }
.hfc-mic { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; margin-right: -4px; transition: background .2s, color .2s; }
.hfc-mic[hidden] { display: none; }
.hfc-mic:hover { background: #f2f2f5; color: var(--ink); }
.hfc-mic svg { width: 20px; height: 20px; }
.hfc-mic.on { background: #ff3b30; color: #fff; animation: hfc-rec 1.4s ease-out infinite; }
.hfc-mic.wait { color: var(--ink-3); animation: hfc-pulse 1s infinite; }
@keyframes hfc-rec { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .45); } 100% { box-shadow: 0 0 0 12px rgba(255, 59, 48, 0); } }
.hfc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.hfc-chip { border: 1px solid #e3e3e8; background: rgba(255,255,255,.7); border-radius: 999px; padding: 8px 14px; font: 14px/1.2 var(--font);
  color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.hfc-chip:hover { border-color: #b8b8c0; color: var(--ink); background: #fff; }
.hfc-ask .hfc-go { width: auto; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--blue, #0071e3);
  font: 600 16px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; }
.hfc-ask .hfc-go:hover { background: #0077ed; }
.hfc-ask .hfc-box { align-items: center; padding: 8px 8px 8px 22px; }
@media (min-width: 761px) { .hfc-ask .hfc-chips { margin-left: -90px; margin-right: -90px; } }
.hfc-eg { font-size: 14px; color: var(--ink-3); align-self: center; }
.hfc-nudge .hfc-box { animation: hfc-nudge .4s; }
@keyframes hfc-nudge { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (max-width: 520px) {
  .hfc-ask .hfc-box { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .hfc-ask .hfc-box textarea { flex: 1 0 100%; padding: 6px 8px; }
  .hfc-ask .hfc-go { flex: 1; }
  .hfc-eg { flex-basis: 100%; text-align: center; }
}
.hfc-ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.hfc-spark { width: 15px; height: 15px; flex: none; }

/* floating button */
.hfc-fab { position: fixed; z-index: 70; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 9px; border: 0; border-radius: 999px; padding: 13px 20px 13px 16px; cursor: pointer;
  background: #1d1d1f; color: #fff; font: 600 15px/1 var(--font); box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.hfc-fab.show { transform: none; opacity: 1; pointer-events: auto; }
.hfc-fab .hfc-spark { width: 18px; height: 18px; }

/* panel */
.hfc-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .3s; }
.hfc-panel { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); display: flex; flex-direction: column;
  background: #fff; color: var(--ink); box-shadow: -20px 0 60px -20px rgba(0,0,0,.3); transform: translateX(104%);
  transition: transform .42s var(--ease); font-family: var(--font); }
.hfc-open .hfc-scrim { opacity: 1; pointer-events: auto; }
.hfc-open .hfc-panel { transform: none; }
.hfc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 20px; border-bottom: 1px solid #f0f0f3; }
.hfc-logo { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.hfc-title { font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.2; }
.hfc-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.hfc-icon { margin-left: auto; flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; }
.hfc-icon + .hfc-icon { margin-left: 0; }
.hfc-icon:hover { background: #f2f2f5; color: var(--ink); }
.hfc-icon svg { width: 19px; height: 19px; }
.hfc-log { flex: 1; overflow-y: auto; padding: 22px 20px 12px; overscroll-behavior: contain; scroll-behavior: smooth; }
.hfc-empty { padding: 26px 2px 10px; }
.hfc-empty h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.035em; margin: 0 0 8px; text-wrap: balance; }
.hfc-empty p { margin: 0 0 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.hfc-sugs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hfc-sug { text-align: left; border: 1px solid #ececf0; background: #fafafb; border-radius: 16px; padding: 13px 14px; cursor: pointer;
  font: 14px/1.35 var(--font); color: var(--ink); transition: background .2s, border-color .2s; }
.hfc-sug:hover { background: #f3f3f6; border-color: #dedee4; }
.hfc-sug b { display: block; font-weight: 600; margin-bottom: 3px; }
.hfc-sug span { color: var(--ink-3); font-size: 13px; }
.hfc-msg { margin: 0 0 22px; font-size: 15.5px; line-height: 1.58; letter-spacing: -0.008em; overflow-wrap: anywhere; }
.hfc-msg.me { display: flex; justify-content: flex-end; }
.hfc-msg.me div { background: #f2f2f5; border-radius: 20px; padding: 10px 15px; max-width: 85%; white-space: pre-wrap; }
.hfc-msg.ai { display: flex; gap: 12px; }
.hfc-msg.ai .hfc-av { width: 26px; height: 26px; border-radius: 8px; flex: none; margin-top: 1px; }
.hfc-msg.ai .hfc-body { min-width: 0; flex: 1; }
.hfc-msg.ai p { margin: 0 0 10px; } .hfc-msg.ai p:last-child { margin-bottom: 0; }
.hfc-msg.ai ul { margin: 4px 0 10px; padding-left: 20px; } .hfc-msg.ai li { margin: 3px 0; }
.hfc-msg.ai a { color: var(--blue); }
.hfc-cursor > :last-child::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--ink);
  vertical-align: middle; animation: hfc-pulse 1s infinite; }
.hfc-dots { display: inline-flex; gap: 4px; padding: 8px 0; }
.hfc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #b9b9c0; animation: hfc-bounce 1.2s infinite; }
.hfc-dots i:nth-child(2) { animation-delay: .15s; } .hfc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hfc-pulse { 50% { opacity: .25; } }
@keyframes hfc-bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
/* streaming: every new word fades in (chat.js sets a negative delay, so a redraw continues the animation) */
.hfc-w { animation: hfc-word .45s cubic-bezier(.2, .6, .3, 1) both; }
@keyframes hfc-word { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
.hfc-wait { margin-top: 4px; }

/* cards inside the conversation */
.hfc-card { margin: 12px 0 4px; border: 1px solid #ececf0; border-radius: 18px; background: #fafafb; padding: 14px; }
.hfc-card-t { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; letter-spacing: .01em; }
.hfc-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 2px; }
.hfc-mini { flex: none; width: 148px; text-align: center; }
.hfc-mini .hfc-ph, .hfc-big .hfc-ph { position: relative; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 24px; background: #111; padding: 5px;
  box-shadow: 0 10px 28px -14px rgba(0,0,0,.45); }
.hfc-ph .scr { position: relative; width: 100%; height: 100%; border-radius: 19px; overflow: hidden; background: #fff; }
.hfc-ph .scr::after { content: ""; position: absolute; inset: 0; }
.hfc-ph .sb { position: absolute; top: 0; left: 0; right: 0; height: 18%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 9% 0 12%; font: 600 8px/1 var(--font); color: #111; background: #fff; letter-spacing: -0.01em; }
.hfc-ph .sb i { display: flex; gap: .3em; align-items: center; }
.hfc-ph .sb svg { height: .78em; width: auto; display: block; }
.hfc-ph iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; pointer-events: none; }
.hfc-ph .isl { position: absolute; z-index: 2; top: 9px; left: 50%; transform: translateX(-50%); width: 30%; height: 4.5%; background: #000; border-radius: 99px; }
.hfc-mini a { display: block; margin-top: 8px; font-size: 13px; color: var(--blue); text-decoration: none; }
.hfc-big { display: flex; gap: 16px; align-items: flex-start; }
.hfc-big .hfc-ph { width: 168px; flex: none; }
.hfc-big .meta { min-width: 0; padding-top: 4px; }
.hfc-big .meta b { display: block; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 4px; }
.hfc-big .meta small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; margin-bottom: 12px; }
.hfc-big .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hfc-big .acts .hfc-btn { margin: 0; }
.hfc-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 15px;
  font: 600 13.5px/1 var(--font); cursor: pointer; text-decoration: none; margin: 0 6px 8px 0; }
.hfc-btn.pri { background: #1d1d1f; color: #fff; } .hfc-btn.sec { background: #fff; color: var(--ink); border: 1px solid #e3e3e8; }
.hfc-btn:focus { outline: none; } .hfc-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hfc-ok { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.hfc-ok i { width: 26px; height: 26px; border-radius: 50%; background: #34c759; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; }

/* changes made by the chat, and the suggested next ones */
.hfc-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 8px 8px 8px 12px; border-radius: 14px;
  background: #f0f8f2; font-size: 14px; font-weight: 550; }
.hfc-edit i { width: 22px; height: 22px; border-radius: 50%; background: #34c759; color: #fff; display: grid; place-items: center; font-style: normal;
  font-size: 12px; font-weight: 700; flex: none; }
.hfc-edit span { margin-right: auto; }
.hfc-edit .hfc-btn { margin: 0; padding: 7px 13px; font-size: 13px; }
.hfc-edit.off { background: #f4f4f6; color: var(--ink-3); } .hfc-edit.off i { background: #b9b9c0; }
.hfc-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hfc-next .hfc-chip { font-size: 13.5px; padding: 8px 13px; text-align: left; }
.hfc-here-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .hfc-here-card .hfc-card-t { width: 100%; margin-bottom: 2px; }
.hfc-here-card b { font-size: 15px; } .hfc-here-card .hfc-here { height: auto; }
.hfc-here { display: inline-flex; align-items: center; height: 33px; font-size: 13px; color: var(--ink-3); font-weight: 550; margin-right: 6px; }

/* what the agent is doing right now */
.hfc-working { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.hfc-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #d9d9de; border-top-color: var(--blue); animation: hfc-turn .8s linear infinite; }
@keyframes hfc-turn { to { transform: rotate(360deg); } }
.hfc-build .hfc-big { align-items: center; }
.hfc-sk .scr { background: linear-gradient(180deg, #f3f3f6, #fafafb); padding: 30% 12% 0; display: flex; flex-direction: column; gap: 9px; }
.hfc-sk .scr i { display: block; height: 9px; border-radius: 6px; background: linear-gradient(90deg, #e6e6eb 0%, #f4f4f7 50%, #e6e6eb 100%);
  background-size: 200% 100%; animation: hfc-shine 1.3s linear infinite; }
.hfc-sk .scr i:nth-child(1) { height: 18px; width: 80%; } .hfc-sk .scr i:nth-child(2) { width: 60%; } .hfc-sk .scr i:nth-child(4) { height: 70px; border-radius: 12px; margin-top: 8px; }
@keyframes hfc-shine { to { background-position: -200% 0; } }
.hfc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-3); }
.hfc-steps li { display: flex; align-items: center; gap: 9px; opacity: .35; animation: hfc-step 3.6s forwards; }
.hfc-steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d0d0d6; flex: none; box-sizing: border-box; }
.hfc-steps li:nth-child(2) { animation-delay: 1.1s; } .hfc-steps li:nth-child(3) { animation-delay: 2.2s; }
.hfc-steps li::before { animation: hfc-tick .3s forwards; animation-delay: 1s; background-position: center; background-repeat: no-repeat; background-size: 10px; }
.hfc-steps li:nth-child(2)::before { animation-delay: 2.1s; } .hfc-steps li:nth-child(3)::before { animation-delay: 3.2s; }
@keyframes hfc-tick { to { border-color: #34c759; background-color: #34c759;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
@keyframes hfc-step { 10% { opacity: 1; color: var(--ink); } 100% { opacity: 1; color: var(--ink); } }
.hfc-card.hfc-build + * , .hfc-cards > * { animation: hfc-in .5s var(--ease, ease) both; }
@keyframes hfc-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* composer */
.hfc-foot { padding: 10px 14px max(14px, env(safe-area-inset-bottom, 0px)); }
.hfc-foot .hfc-box { box-shadow: 0 1px 2px rgba(0,0,0,.04); padding-left: 18px; border-radius: 24px; }
.hfc-foot .hfc-box textarea { font-size: 16px; }
.hfc-note { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

@media (max-width: 760px) {
  .hfc-panel { width: 100vw; box-shadow: none; transform: translateY(100%); }
  .hfc-open .hfc-panel { transform: none; }
  .hfc-sugs { grid-template-columns: 1fr; }
  .hfc-ask { margin-top: 26px; }
  .hfc-box textarea { font-size: 16px; }
  .hfc-fab { padding: 13px 18px 13px 15px; }
  .hfc-big .hfc-ph { width: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .hfc-panel, .hfc-fab, .hfc-scrim { transition: none; }
  .hfc-dots i, .hfc-cursor > :last-child::after, .hfc-w { animation: none; }
}
/* the link for friends */
.hfc-share .hfc-link { font: 600 15px/1.3 var(--font); color: var(--ink); word-break: break-all; margin-bottom: 4px; }
.hfc-share small { display: block; color: var(--ink-3); font-size: 12.5px; margin-bottom: 10px; }
.hfc-share .acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* the same chat as a site's own assistant: the site's accent colour, its initial instead of the logo */
.hfc-initial { display: grid; place-items: center; background: var(--hfc-accent, #1d1d1f); color: var(--hfc-on, #fff);
  font: 700 15px/1 var(--font); }
.hfc-av.hfc-initial { font-size: 12px; }
.hfc-site .hfc-send:not(:disabled), .hfc-site .hfc-btn.pri { background: var(--hfc-accent, #1d1d1f); color: var(--hfc-on, #fff); }
.hfc-site-fab { background: var(--hfc-accent, #1d1d1f) !important; color: var(--hfc-on, #fff) !important; }
.hfc-site-fab .hfc-spark { display: none; }
.hfc-items { padding: 6px 14px; }
.hfc-items .hfc-card-t { margin: 8px 0 2px; }
.hfc-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ececf0; }
.hfc-item:last-of-type { border-bottom: 0; }
.hfc-item b { display: block; font-size: 15px; }
.hfc-item span { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.hfc-item small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.hfc-item em { font-style: normal; font-weight: 600; white-space: nowrap; }
.hfc-demo { font-size: 12px; color: var(--ink-3); padding: 6px 0 8px; }
.hfc-addr { font-weight: 600; margin-bottom: 6px; }
.hfc-hours { list-style: none; padding: 0; margin: 0 0 10px; color: var(--ink-2); font-size: 13.5px; }
.hfc-route .acts, .hfc-call .acts, .hfc-request .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hfc-call { padding: 12px; }
.hfc-request dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 8px; font-size: 14px; }
.hfc-request dt { color: var(--ink-3); } .hfc-request dd { margin: 0; font-weight: 600; }

/* "is this your business?": places found on the map */
.hfc-found { padding: 6px 6px 12px; } .hfc-found .hfc-card-t { margin: 8px 8px 4px; }
.hfc-place { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 8px; border: 0; border-radius: 12px;
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.hfc-place:hover { background: #f0f0f3; } .hfc-place:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.hfc-place span { flex: 1; min-width: 0; } .hfc-place b { display: block; font-size: 15px; }
.hfc-place small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.hfc-place i { font-style: normal; font-size: 20px; color: var(--ink-3); }
.hfc-found-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 8px 0; }
.hfc-found-foot .hfc-chip { font-size: 13px; padding: 7px 12px; }
.hfc-found-foot .hfc-demo { margin: 0; font-size: 12px; color: var(--ink-3); }
/* three looks for the draft: colours and the heading font; a tap applies one */
.hfc-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hfc-look { border: 1px solid #e3e3e8; border-radius: 14px; padding: 6px 6px 8px; background: #fff; font: inherit; color: inherit;
  text-align: left; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.hfc-look:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hfc-look.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.hfc-look .sw { position: relative; display: block; height: 64px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.hfc-look .sw b { position: absolute; left: 9px; top: 6px; font-size: 24px; font-weight: 600; line-height: 1.2; }
.hfc-look .sw em { position: absolute; left: 9px; bottom: 9px; width: 34px; height: 12px; border-radius: 999px; }
.hfc-look .sw i { position: absolute; right: 0; top: 0; bottom: 0; width: 26%; }
.hfc-look .n { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.hfc-styles.wait .hfc-look.on .sw { animation: hfc-pulse 1s infinite; }
.hfc-look-err { margin-top: 8px; font-size: 13px; color: #c4302b; }
@media (prefers-reduced-motion: reduce) { .hfc-look { transition: none; } .hfc-styles.wait .hfc-look.on .sw { animation: none; } }

/* Booking picker of a site's assistant: day, time and party size in taps */
.hfc-book .hfc-bk-row { margin: 0 0 10px; }
.hfc-book .hfc-bk-n { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 0 0 6px; }
.hfc-book .hfc-bk-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.hfc-book .hfc-chip { font-size: 14px; padding: 9px 13px; min-height: 40px; }
.hfc-book .hfc-chip.on { background: var(--hfc-accent, #1d1d1f); border-color: var(--hfc-accent, #1d1d1f); color: var(--hfc-on, #fff); }
.hfc-book .hfc-chip:disabled { cursor: default; opacity: .55; }
.hfc-book .hfc-chip.on:disabled { opacity: 1; }
.hfc-book .acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hfc-book .hfc-btn.pri:disabled { opacity: .45; cursor: default; }
.hfc-book .hfc-bk-need { color: var(--ink-3); font-size: 13px; }
.hfc-book.done .hfc-chip:not(.on) { display: none; }
@media (max-width: 520px) { .hfc-book .hfc-chip { min-height: 44px; } }

/* what is left to fill in, the facts from the map, quick edits one field at a time */
.hfc-lk { border: 0; background: none; padding: 6px 0; font: 600 14px/1.3 var(--font); color: var(--blue); cursor: pointer; }
.hfc-lk:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.hfc-todo { padding: 10px 14px; }
.hfc-todo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.hfc-todo-list { margin-top: 4px; }
.hfc-todo-later { color: var(--ink-3); margin-top: 6px; }
.hfc-todo-done { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 14px; color: var(--ink-3); }
.hfc-todo-done i { font-style: normal; color: #34c759; }
.hfc-fx-row { border-top: 1px solid #ececf0; }
.hfc-fx-row:first-of-type { border-top: 0; }
.hfc-fx-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.hfc-fx-line small { display: block; font-size: 12px; color: var(--ink-3); }
.hfc-fx-line em { font-style: normal; font-size: 13px; color: #248a3d; }
.hfc-fx-acts { display: flex; gap: 14px; flex: none; }
.hfc-facts .hfc-fx-row:first-of-type, .hfc-todo-list .hfc-fx-row:first-of-type { border-top: 1px solid #ececf0; }
.hfc-fix { padding: 2px 0 12px; }
.hfc-fix-one { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hfc-fix-one label { flex: 1; min-width: 0; font-size: 14px; }
.hfc-fix-one input { flex: 1; min-width: 0; height: 40px; border: 1px solid #d2d2d7; border-radius: 10px; padding: 0 12px; font: 16px var(--font); background: #fff; color: var(--ink); }
.hfc-fix-one input[inputmode="decimal"] { flex: 0 0 96px; text-align: right; }
.hfc-fix-one input[type="time"] { flex: 0 0 112px; }
.hfc-fix-one input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.hfc-fix-step { font-size: 12px; color: var(--ink-3); }
.hfc-fix-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.hfc-fix-err { margin-top: 8px; font-size: 13px; color: #c4302b; }
.hfc-fix .hfc-next { margin: 4px 0 2px; }
.hfc-fix .hfc-chip.on, .hfc-dirs .hfc-chip.on { background: #e8f1fd; border-color: var(--blue); color: #0058b9; }
.hfc-own { margin-top: 4px; }
.hfc-before { margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid #ececf0; font-size: 15px; }
.hfc-changes { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; font-size: 13px; color: var(--ink-2); }
.hfc-changes li { padding: 2px 0; overflow-wrap: anywhere; }
.hfc-changes .more { color: var(--ink-3); }
.hfc-edit { flex-wrap: wrap; }
.hfc-dirs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hfc-dirs .hfc-chip { font-size: 13px; padding: 7px 12px; }
.hfc-styles.wait .hfc-dirs .hfc-chip.on { animation: hfc-pulse 1s infinite; }
@media (max-width: 760px) { .hfc-lk { padding: 11px 0; } .hfc-fix .hfc-chip, .hfc-dirs .hfc-chip { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .hfc-styles.wait .hfc-dirs .hfc-chip.on { animation: none; } }
.hfc-book .hfc-bk-more { border-style: dashed; color: var(--ink-2); }
.hfc-book .hfc-bk-opts > .hfc-bk-need { align-self: center; }

/* "Open now": a status line; on the greeting with one main action */
.hfc-open-st { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.hfc-open-st b { font-weight: 600; }
.hfc-open-st b.on { color: #1f8a4c; }
.hfc-open-st b.off { color: #c4402f; }
.hfc-empty .hfc-open { text-align: left; margin: 0 0 14px; }
.hfc-open .acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Services as rows: a tap opens the times for that service */
.hfc-svcs .hfc-place { width: 100%; }

/* The request: date and time large */
.hfc-rq-when { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 2px 0 10px; }
.hfc-rq-when span { display: block; font-size: 28px; }
.hfc-request .acts { margin-bottom: 8px; }
.hfc-request > .hfc-lk { font-size: 14px; }
