[data-voice-help][hidden],
.lc-voice-drawing[hidden] { display: none !important; }

.lc-voice-help {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d8d6d0;
    border-radius: 14px;
    color: #171814;
    background: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.lc-voice-drawing {
    position: fixed;
    z-index: 137;
    inset: auto auto calc(22px + env(safe-area-inset-bottom)) 14px;
    width: clamp(150px, 24vw, 230px);
    aspect-ratio: 360 / 350;
    appearance: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: url("/assets/storefront-guide/poses.webp?v=2") 0 0 / 200% 200% no-repeat;
    filter: drop-shadow(.6px 0 0 #fff) drop-shadow(-.6px 0 0 #fff)
        drop-shadow(0 .6px 0 #fff) drop-shadow(0 -.6px 0 #fff);
    opacity: 1;
}
.lc-voice-drawing:disabled { pointer-events: none; }
.lc-commerce-body .lc-voice-drawing:not(.is-pointing) { bottom: calc(92px + env(safe-area-inset-bottom)); }
.lc-voice-drawing[data-pose="listening"] { background-position: 100% 0; }
.lc-voice-drawing[data-pose="speaking"] { background-position: 0 100%; }
.lc-voice-drawing[data-pose="pointing"] { background-position: 100% 100%; }
.lc-voice-drawing.is-listening { animation: lc-voice-breathe 2.2s ease-in-out infinite; }
.lc-voice-drawing.is-pointing {
    inset: var(--guide-top) auto auto var(--guide-left);
    transform-origin: 97.2% 59%;
    transform: rotate(var(--guide-angle)) scaleX(var(--guide-direction));
}
.lc-voice-drawing.is-pointing.is-answering { animation: lc-voice-point .56s ease-in-out infinite; }
@keyframes lc-voice-breathe { 50% { translate: 0 -2px; } }
@keyframes lc-voice-point { 50% { rotate: -1deg; } }

@media (max-width: 1023px) {
    .lc-buyer-header .lc-buyer-primary.is-search-open:has(.lc-voice-help:not([hidden])) {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }
    .lc-buyer-header .lc-buyer-primary.is-search-open:has(.lc-voice-help:not([hidden])) > .lc-buyer-search {
        grid-column: 1;
    }
    .lc-buyer-header .lc-buyer-primary.is-search-open > .lc-buyer-utility:has(> .lc-voice-help:not([hidden])) {
        display: flex !important;
        grid-column: 2;
    }
    .lc-buyer-primary.is-search-open > .lc-buyer-utility > :not(.lc-voice-help) {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .lc-buyer-primary.has-voice-help { grid-template-columns: auto minmax(0, 1fr) auto; }
    .lc-voice-help { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-voice-drawing.is-listening,
    .lc-voice-drawing.is-pointing.is-answering { animation: none; }
}
