/* Shop concierge: PANEL (line 31939, the page config's `panel`, ai.features.shop_agent_panel_controls; lit, or the owner's template
   preview). Michael, Wed 28 Oct 2026: "We want that 'Talk' button to be blue, or some kind of color that's just going to make it
   where people's eyes go ... The 'Talk' needs to be by itself in a different color of the theme that really pops out ... We got
   to have that volume control and everything when these agents load and when they talk ... make the live agent smaller ... move
   and condense down that agent size." The Studio's talk bar (line 31281, tia-free-studio.js: wave, "Talk to <name>", one solid
   Talk) on the store's one voice bar (voice.js), its one row under the typing box (camera, microphone, speaker, volume and its
   percent), and the grip under her face as a drag bar (avatar-dock.js). Loaded only with the page's `panel`: dark, no byte. */

:root {
    --sc-talk: var(--sc-accent-bright, #15803d);   /* the theme's bright green: white words on it 5.0:1 */
    --sc-talk-hover: #166534;
    --sc-talk-ink: #ffffff;
    --sc-talk-soft: rgba(21, 128, 61, .14);
    --sc-end: var(--sc-ink-strong);
    --sc-end-ink: var(--sc-surface);
}
@media (prefers-color-scheme: dark) {
    :root {
        --sc-talk: var(--sc-accent-bright, #4ade80);   /* dark words on it 9.6:1 */
        --sc-talk-hover: #86efac;
        --sc-talk-ink: #052e16;
        --sc-talk-soft: rgba(74, 222, 128, .16);
    }
}

/* ---- the bar: her wave, her words, one solid pill (Talk; End during her call) ------------------------------------------ */
.sc-voicebar[data-sc-panel] {
    gap: 10px;
    min-height: 56px;
    padding: 5px 6px 5px 14px;
    color: var(--sc-ink);
    font-size: 15px;
}
.sc-voicebar[data-sc-panel] .sc-voicebar__label {
    color: var(--sc-ink);
    font-weight: 500;
    overflow-wrap: break-word;   /* her words wrap between words beside the pill; nothing else shares the bar */
}
.sc-voicebar[data-sc-panel] .sc-voicebar__wave { color: var(--sc-talk); opacity: .7; }
.sc-voicebar[data-sc-panel][data-sc-wave="on"] .sc-voicebar__wave { opacity: 1; }
.sc-voicebar[data-sc-panel] .sc-voicebar__talk,
.sc-voicebar[data-sc-panel] .sc-voicebar__end {
    gap: 8px;
    min-width: 96px;
    min-height: 44px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    font: 600 15px/1 var(--sc-sans);
    letter-spacing: .01em;
}
.sc-voicebar[data-sc-panel] .sc-voicebar__talk {
    background: var(--sc-talk);
    color: var(--sc-talk-ink);
    box-shadow: 0 0 0 4px var(--sc-talk-soft);   /* a ring, so the eye finds it first */
}
.sc-voicebar[data-sc-panel] .sc-voicebar__talk:hover { background: var(--sc-talk-hover); }
.sc-voicebar[data-sc-panel] .sc-voicebar__talk:focus-visible,
.sc-voicebar[data-sc-panel] .sc-voicebar__end:focus-visible { outline: 2px solid var(--sc-talk); outline-offset: 3px; }
.sc-voicebar[data-sc-panel] .sc-voicebar__end { background: var(--sc-end); color: var(--sc-end-ink); }
.sc-voicebar[data-sc-panel] .sc-voicebar__end:hover { background: var(--sc-end); opacity: .9; }
/* line 33457: where the Mic on sign and her words need the room (voice.js fitPanel marks the bar tight "end"), End is its round
   hang-up mark alone; its name stays its label and its tooltip */
.sc-voicebar[data-sc-panel][data-sc-tight~="end"] .sc-voicebar__end { min-width: 44px; padding: 0 12px; }
.sc-voicebar[data-sc-panel] .sc-voicebar__icon,
.sc-voicebar[data-sc-panel] .sc-voicebar__icon svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
    .sc-voicebar[data-sc-panel]:not([data-sc-voice-state="speaking"]):not([data-sc-voice-state="listening"]) .sc-voicebar__talk {
        animation: sc-talk-ring 2.4s ease-out 0.6s 2;   /* twice when she loads, then still */
    }
}
@keyframes sc-talk-ring {
    0% { box-shadow: 0 0 0 0 var(--sc-talk-soft); }
    60% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 4px var(--sc-talk-soft); }
}

/* ---- the row under the typing box: camera, microphone, speaker, volume and its percent, minimize ---------------------- */
.sc-levels {
    display: flex;
    align-items: center;
    gap: 2px;
    box-sizing: border-box;
    min-height: 44px;
    margin: 6px 0 0;
    padding: 0 2px;
    color: var(--sc-ink);
}
.sc-levels[hidden] { display: none !important; }
.sc-levels .sc-voicebar__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sc-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 120ms ease;
}
.sc-levels .sc-voicebar__btn[hidden] { display: none !important; }
/* minimized, the bar itself is the way back: no second Minimize (container.css, the same rule for the bar) */
.sc-sheet--peek .sc-levels .sc-voicebar__min { display: none !important; }
.sc-levels .sc-voicebar__btn:hover:not(:disabled) { background: var(--sc-talk-soft); }
.sc-levels .sc-voicebar__btn:focus-visible { outline: 2px solid var(--sc-talk); outline-offset: 1px; }
.sc-levels .sc-voicebar__btn[aria-pressed="true"] { background: var(--sc-talk-soft); color: var(--sc-talk); }
.sc-levels .sc-voicebar__btn:disabled { opacity: .4; cursor: default; }
.sc-levels .sc-voicebar__icon,
.sc-levels .sc-voicebar__icon svg { width: 20px; height: 20px; }
.sc-levels .sc-voicebar__text {   /* each button's name stays for a screen reader and its tooltip */
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sc-levels__volwrap { flex: 1 1 auto; display: flex; align-items: center; min-width: 64px; margin: 0 0 0 6px; }
.sc-levels__vol {
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    accent-color: var(--sc-talk);
    cursor: pointer;
}
.sc-levels__vol:focus-visible { outline: 2px solid var(--sc-talk); outline-offset: 2px; border-radius: 4px; }
.sc-levels__out {
    flex: 0 0 auto;
    min-width: 4.2ch;
    padding: 0 4px 0 8px;
    color: var(--sc-muted);
    font: 500 13px/1 var(--sc-sans);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ---- the drag bar under her face (avatar-dock.js paintGrip: as wide as her container) ---------------------------------- */
html[data-sc-panel] .sc-stage-grip { height: 24px; border-radius: 0; }
html[data-sc-panel] .sc-stage-grip::before {
    width: 64px;
    height: 6px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--sc-ink) 34%, transparent);
}
html[data-sc-panel] .sc-stage-grip:hover::before,
html[data-sc-panel] .sc-stage-grip:active::before { width: 84px; background: var(--sc-talk); }
html[data-sc-panel] .sc-stage-grip:focus-visible { outline: 2px solid var(--sc-talk); outline-offset: -2px; }
@media (max-width: 767.98px) {
    /* a phone: the bar lies under her panel's head; dragged out, her window stands on top of her sheet, the sheet under it */
    html[data-sc-panel] .sc-stage-grip:not([hidden]) { display: flex !important; }
    html[data-sc-panel] .sc-avatar-dock[data-sc-place="top"]:not([hidden]) { display: block !important; }
    html[data-sc-panel] body.sc-avatar-top .sc-sheet { top: var(--sc-panel-top, 0px); height: auto; border-top: 1px solid var(--sc-hairline); }
    html[data-sc-panel] body.sc-avatar-top.sc-page--frame .sc-sheet { inset: var(--sc-panel-top, 0px) 0 0 0; }
    html[data-sc-panel] body.sc-alive-stage::after {
        content: "";
        position: fixed;
        z-index: 59;
        top: 0;
        left: 0;
        right: 0;
        height: var(--sc-panel-top, 0px);
        background: var(--sc-bg);
        pointer-events: none;
    }
}
