{%- comment -%} Help widget, by Your Elevens (yourelevens.com) A floating button that opens a small panel: quick answers (your own FAQ), a delivery pincode check, and a "Chat on WhatsApp" button that sends the shopper's page and product with the message. No bot, no AI, no third-party scripts. Answers come only from what you type here. Add it from the theme editor: Footer group > Add section > Help widget. {%- endcomment -%} {%- liquid assign sid = section.id assign num = section.settings.whatsapp | replace: '+', '' | replace: ' ', '' | replace: '-', '' if section.settings.hide_on_checkout_pages and request.page_type == 'cart' assign hide = true endif -%} {%- unless hide or num == blank -%} {%- style -%} #yw-{{ sid }} { --yw-ac: {{ section.settings.accent }}; --yw-acx: {{ section.settings.accent_text }}; --yw-bg: {{ section.settings.bg }}; --yw-tx: {{ section.settings.text }}; --yw-ln: color-mix(in srgb, {{ section.settings.text }} 14%, transparent); position: fixed; bottom: 18px; {{ section.settings.position }}: 18px; z-index: 60; font-family: inherit; color: var(--yw-tx); } #yw-{{ sid }} * { box-sizing: border-box; } #yw-{{ sid }} .yw-fab { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: var(--yw-ac); color: var(--yw-acx); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; padding: 14px 18px; border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,.28); } #yw-{{ sid }} .yw-fab svg { width: 20px; height: 20px; } #yw-{{ sid }} .yw-panel { position: absolute; bottom: 62px; {{ section.settings.position }}: 0; width: min(360px, calc(100vw - 36px)); max-height: min(560px, calc(100vh - 120px)); overflow: auto; background: var(--yw-bg); border: 1px solid var(--yw-ln); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); display: none; } #yw-{{ sid }}.is-open .yw-panel { display: block; } #yw-{{ sid }} .yw-hd { background: var(--yw-ac); color: var(--yw-acx); padding: 16px 18px; border-radius: 16px 16px 0 0; } #yw-{{ sid }} .yw-hd b { display: block; font-size: 16px; } #yw-{{ sid }} .yw-hd span { font-size: 13px; opacity: .9; } #yw-{{ sid }} .yw-bd { padding: 14px 16px 16px; display: grid; gap: 14px; } #yw-{{ sid }} details { border: 1px solid var(--yw-ln); border-radius: 10px; padding: 0 12px; } #yw-{{ sid }} summary { cursor: pointer; padding: 11px 0; font-size: 14px; font-weight: 600; list-style: none; } #yw-{{ sid }} summary::-webkit-details-marker { display: none; } #yw-{{ sid }} details p { margin: 0 0 12px; font-size: 14px; opacity: .85; line-height: 1.5; } #yw-{{ sid }} .yw-pin { display: flex; gap: 8px; } #yw-{{ sid }} .yw-pin input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--yw-ln); border-radius: 10px; background: var(--yw-bg); color: var(--yw-tx); } #yw-{{ sid }} .yw-pin button { font-family: inherit; font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--yw-ln); background: transparent; color: var(--yw-tx); cursor: pointer; } #yw-{{ sid }} .yw-res { font-size: 14px; margin-top: 8px; min-height: 18px; } #yw-{{ sid }} .yw-wa { display: block; text-align: center; text-decoration: none; background: var(--yw-ac); color: var(--yw-acx); font-weight: 600; padding: 13px; border-radius: 10px; font-size: 15px; } #yw-{{ sid }} .yw-chips { display: flex; flex-wrap: wrap; gap: 8px; } #yw-{{ sid }} .yw-chip { font-family: inherit; font-weight: 500; font-size: 13px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--yw-ln); background: transparent; color: var(--yw-tx); cursor: pointer; } #yw-{{ sid }} .yw-chip[aria-pressed="true"] { background: var(--yw-ac); color: var(--yw-acx); border-color: var(--yw-ac); } #yw-{{ sid }} .yw-order { display: none; margin-top: 10px; } #yw-{{ sid }} .yw-order.is-on { display: block; } #yw-{{ sid }} .yw-order input { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--yw-ln); border-radius: 10px; background: var(--yw-bg); color: var(--yw-tx); } #yw-{{ sid }} .yw-lb { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 6px; display: block; } @media (prefers-reduced-motion: no-preference) { #yw-{{ sid }}.is-open .yw-panel { animation: yw-in-{{ sid }} .18s ease-out; } @keyframes yw-in-{{ sid }} { from { opacity: 0; transform: translateY(8px); } } } {%- unless section.settings.show_mobile -%}@media (max-width: 749px) { #yw-{{ sid }} { display: none; } }{%- endunless -%} {%- endstyle -%}
{{ block.settings.a | escape }}