/* The assistant UX pack (2 Dec 2026): Rezolve's overlay on every demonstration. --rz-cta is the demo's button colour
   (set by rz-ux.js from its data-color), --rz-cta-ink the text on it. Every class is prefixed rz- so the replica's own
   stylesheet is never touched; the demo's older floating button is hidden because this one replaces it. */
:root { --rz-cta: #111; --rz-cta-ink: #fff; --rz-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.float-help, .cz-launch { display: none !important; }

/* the big button */
.rz-cta { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 69; display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 10px 24px 10px 12px; min-height: 58px; max-width: calc(100vw - 36px); border: 0; border-radius: 999px; background: var(--rz-cta); color: var(--rz-cta-ink); font: 600 16px/1.2 var(--rz-font); letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); -webkit-tap-highlight-color: transparent; }
.rz-cta:hover { filter: brightness(1.15); text-decoration: none; color: var(--rz-cta-ink); }
.rz-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rz-cta-ic { position: relative; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: 0 0 auto; }
.rz-cta-ic > svg { width: 22px; height: 22px; display: block; }
.rz-cta-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-cta-badge { position: absolute; right: -7px; top: -7px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--rz-cta); display: none; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.rz-cta-badge svg { width: 13px; height: 13px; display: block; }
body.rz-tap .rz-cta-badge { display: grid; }
.rz-cta.rz-pulse::before { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--rz-cta); animation: rz-halo 1.9s ease-out infinite; pointer-events: none; }
body.rz-tap .rz-cta { animation: rz-bump 1.3s ease-in-out infinite; }
body.rz-tap .rz-cta.rz-pulse::before { animation-duration: 1.1s; border-width: 3px; }
@keyframes rz-halo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes rz-bump { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
body.c-open .rz-cta, body.cz-open .rz-cta { display: none; }
@media (max-width: 699px) {
  .rz-cta { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 8px 18px 8px 10px; min-height: 52px; font-size: 14.5px; max-width: calc(100vw - 96px); }
  .rz-cta-ic { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .rz-cta, .rz-cta.rz-pulse::before { animation: none !important; } }

/* start over, inside the assistant's header */
.rz-restart { display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 6px; margin: 0 4px 0 0 !important; padding: 0 11px !important; min-width: 0 !important; width: auto !important; height: 34px !important; min-height: 34px !important; border-radius: 999px !important; border: 1px solid currentColor !important; background: transparent !important; color: inherit !important; font: 600 12px/1 var(--rz-font) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; white-space: nowrap; opacity: .9; }
.rz-restart:hover { opacity: 1; background: rgba(0, 0, 0, .06) !important; text-decoration: none; }
.rz-restart svg { width: 15px; height: 15px; display: block; flex: 0 0 auto; }
@media (max-width: 359px) { .rz-restart-lbl { display: none; } .rz-restart { padding: 0 9px !important; } }

/* the speaker on the product image */
.rz-hear-host { position: relative; }
.rz-hear { position: absolute; left: 12px; top: 12px; z-index: 5; width: 46px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--rz-cta); color: var(--rz-cta-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); -webkit-tap-highlight-color: transparent; }
.rz-hear:hover { filter: brightness(1.15); }
.rz-hear svg { width: 24px; height: 24px; display: block; }
html[dir="rtl"] .rz-hear { left: auto; right: 12px; }

/* feedback: the tab at the left edge and its form */
.rz-fb { position: fixed; left: 0; bottom: 0; z-index: 200001; font: 400 14px/1.45 var(--rz-font); color: #111; letter-spacing: 0; }
.rz-fb * { box-sizing: border-box; }
.rz-fb-tab { position: fixed; left: 0; bottom: 140px; z-index: 200001; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 10px 9px 12px; border: 0; border-radius: 0 9px 9px 0; background: var(--rz-cta); color: var(--rz-cta-ink); font: 600 13px/1 var(--rz-font); letter-spacing: .02em; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: center; -webkit-tap-highlight-color: transparent; }
.rz-fb-tab svg { width: 15px; height: 15px; display: block; transform: rotate(90deg); }
.rz-fb-tab:hover { filter: brightness(1.15); color: var(--rz-cta-ink); text-decoration: none; }
.rz-fb-panel { position: fixed; left: 14px; bottom: 14px; z-index: 200002; width: min(400px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; padding: 16px 18px 18px; border-radius: 14px; background: #fff; color: #111; box-shadow: 0 24px 64px rgba(0, 0, 0, .38); text-align: left; }
.rz-fb-panel[hidden] { display: none; }
.rz-fb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rz-fb-head b { font: 600 17px/1.2 var(--rz-font); }
.rz-fb-close { width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f0f0f0; color: #111; font: 400 20px/1 var(--rz-font); cursor: pointer; }
.rz-fb-intro { margin: 0 0 10px; font-size: 12.5px; color: #555; }
.rz-fb-form { margin: 0; display: grid; gap: 10px; }
.rz-stars { margin: 0; padding: 0; border: 0; min-width: 0; }
.rz-stars legend { padding: 0; margin: 0 0 2px; font: 600 13px/1.3 var(--rz-font); color: #111; }
.rz-stars-row { display: inline-flex; gap: 2px; vertical-align: middle; }
.rz-star { width: 34px; height: 34px; margin: 0; padding: 0; border: 0; background: none; color: #cfcfcf; font: 400 27px/1 var(--rz-font); cursor: pointer; transition: color .1s, transform .1s; }
.rz-star:hover { transform: scale(1.12); }
.rz-star.on { color: #e8a500; }
.rz-stars-lbl { margin-left: 8px; font-size: 12px; color: #555; vertical-align: middle; }
.rz-fb-field { display: grid; gap: 4px; font: 600 13px/1.3 var(--rz-font); }
.rz-fb-field textarea, .rz-fb-field input { width: 100%; margin: 0; padding: 9px 11px; border: 1px solid #ccc; border-radius: 9px; background: #fff; color: #111; font: 400 14px/1.4 var(--rz-font); resize: vertical; }
.rz-fb-field textarea:focus, .rz-fb-field input:focus { outline: 2px solid var(--rz-cta); outline-offset: 1px; border-color: transparent; }
.rz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rz-fb-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rz-fb-send { margin: 0; padding: 0 20px; min-height: 42px; border: 0; border-radius: 999px; background: var(--rz-cta); color: var(--rz-cta-ink); font: 600 14px/1 var(--rz-font); letter-spacing: 0; text-transform: none; cursor: pointer; }
.rz-fb-send:hover { filter: brightness(1.15); }
.rz-fb-send:disabled { opacity: .6; cursor: default; }
.rz-fb-status { font-size: 12.5px; color: #333; flex: 1 1 160px; }
@media (max-width: 699px) { .rz-fb-tab { bottom: 120px; padding: 9px 8px 10px; font-size: 12px; } .rz-fb-panel { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100vh - 16px); } }
html[dir="rtl"] .rz-cta { right: auto; left: 18px; }
html[dir="rtl"] .rz-fb-tab { left: auto; right: 0; border-radius: 9px 0 0 9px; }
html[dir="rtl"] .rz-fb-panel { left: auto; right: 14px; text-align: right; }
html[dir="rtl"] .rz-restart { margin: 0 0 0 4px !important; }

/* room for the overlay beside the demo's own pieces: the tap prompt sits above the button on narrow screens, and the
   Feedback tab leaves the phone sheet alone while the assistant is open */
@media (max-width: 1023px) { .hello:not([hidden]) { bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; } .demo-pill { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; } }
@media (max-width: 699px) { body.c-open .rz-fb-tab, body.cz-open .rz-fb-tab { display: none; } }
