/* FlowCraft Floating Contact Hub — catalogue demo styles (extends site.css)
   Mirrors the buyer-delivered Tailwind hub with the site's own tokens.
   State classes (.is-open, .is-closing, .is-closed, .is-expanded, .is-left)
   come from the unchanged buyer app.js. */

.fc-hub [hidden] { display: none !important; }
.fc-hub { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--font); }
.fc-hub.is-left { right: auto; left: 20px; align-items: flex-start; }
.fc-hub-panel { width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; border-radius: 24px; background: var(--bg); box-shadow: 0 24px 60px rgba(15, 27, 61, .3); transform-origin: bottom right; animation: fc-hub-in 200ms ease-out; }
@keyframes fc-hub-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.fc-hub-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: .9rem; box-shadow: 0 10px 30px rgba(15, 27, 61, .3); cursor: pointer; }
.fc-hub-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-line), 0 10px 30px rgba(15, 27, 61, .3); }
.fc-hub-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); }
.fc-hub-icon svg { width: 24px; height: 24px; }
.fc-hub-icon-close { display: none; }
.fc-hub.is-expanded .fc-hub-icon-chat { display: none; }
.fc-hub.is-expanded .fc-hub-icon-close { display: block; }
.fc-hub-label { display: inline-flex; align-items: center; gap: 8px; }
.fc-hub-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #9aa3c2; }
.fc-hub.is-open .fc-hub-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }
.fc-hub.is-closing .fc-hub-dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); }
@media (max-width: 480px) { .fc-hub { right: 16px; bottom: 16px; } .fc-hub-toggle { padding: 6px; } .fc-hub-label { display: none; } }
.fc-hub[data-layout="inline"] { position: static; display: block; }
.fc-hub[data-layout="inline"] .fc-hub-panel { width: 100%; max-width: none; max-height: none; animation: none; box-shadow: none; border-radius: 0; }
.fc-hub[data-layout="inline"] .hubd-x { display: none; }

.hubd-media { position: relative; }
.hubd-media img { display: block; width: 100%; height: 112px; object-fit: cover; }
.hubd-x { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink-muted); cursor: pointer; }
.hubd-x svg { width: 18px; height: 18px; }
.hubd-body { padding: 16px; }
.hubd-name { margin: 0; font-weight: 800; }
.hubd-name small { font-size: .74rem; font-weight: 700; color: #9aa3c2; }
.hubd-status { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 0; font-size: .88rem; color: var(--ink-muted); }
.hubd-status .fc-hub-dot { margin-top: 6px; }
.hubd-list { display: grid; gap: 8px; margin-top: 12px; }
.hubd-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; }
.hubd-link:hover { border-color: var(--accent-line); background: #faf9ff; }
.hubd-link:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-line); }
.hubd-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.hubd-ic svg { width: 20px; height: 20px; fill: currentColor; }
.hubd-ic.c-call { background: #17a06a; } .hubd-ic.c-text { background: var(--accent); } .hubd-ic.c-wa { background: #16a34a; } .hubd-ic.c-mail { background: #f59e0b; }
.hubd-link strong { display: block; font-size: .95rem; }
.hubd-link span span { display: block; font-size: .78rem; color: var(--ink-muted); }
.hubd-hours { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.hubd-hours summary { position: relative; list-style: none; padding: 10px 36px 10px 12px; font-size: .88rem; font-weight: 700; cursor: pointer; }
.hubd-hours summary::-webkit-details-marker { display: none; }
.hubd-hours summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #6b7aa8; border-bottom: 2px solid #6b7aa8; transform: translateY(-70%) rotate(45deg); }
.hubd-hours[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.hubd-hours ul { list-style: none; margin: 0; padding: 0 12px 6px; display: grid; gap: 4px; font-size: .85rem; color: var(--ink-muted); }
.hubd-hours li { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 10px; }
.hubd-hours li span:last-child { text-align: right; white-space: pre-line; }
.hubd-hours li[aria-current="date"] { font-weight: 800; color: var(--ink); }
.hubd-hours p { margin: 0; padding: 0 12px 10px; font-size: .75rem; color: #9aa3c2; }
.fc-hub .lead-form { margin-top: 12px; background: #fff; }

/* ---- Demo page: the "Pretend it's…" board (demo only, not in the product) ---- */
.hubd-stage { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); }
@media (min-width: 900px) { .hubd-stage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.hubd-stage-copy { padding: 24px 18px 26px; min-width: 0; }
@media (min-width: 600px) { .hubd-stage-copy { padding: 32px 30px; } }
.hubd-stage-inline { border-top: 1px solid var(--line); min-width: 0; }
@media (min-width: 900px) { .hubd-stage-inline { border-top: 0; border-left: 1px solid var(--line); } }
.hubd-kicker { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hubd-title { margin: 6px 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.hubd-times { display: grid; gap: 8px; margin-top: 16px; }
.hubd-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.hubd-time small { font-weight: 700; color: var(--ink-muted); }
.hubd-time:hover { border-color: var(--accent-line); }
.hubd-time[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.hubd-time:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-line); }
.hubd-readout { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-muted); }
.hubd-readout strong { color: var(--ink); }
.hubd-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #f7df9e; color: #7a4b00; font-size: .85rem; }

/* Catalogue card: inline hub */
.hubd-card { border-radius: 16px; overflow: hidden; }
#contact-hub .product-head > *, #contact-hub .product-shot, #contact-hub .live-widget { min-width: 0; }
#contact-hub .live-badge { z-index: 10; }
@media (max-width: 479px) { #contact-hub .product-head { padding: 24px 14px; } }

@media (prefers-reduced-motion: reduce) { .fc-hub-panel { animation: none; } }
