/** Shopify CDN: Minification failed

Line 16:0 Unexpected "{"
Line 16:1 Expected identifier but found "%"
Line 17:2 Unexpected "="
Line 27:5 Expected identifier but found "%"
Line 28:2 Unexpected "="
Line 29:1 Expected identifier but found "%"
Line 31:0 Unexpected "{"
Line 31:1 Expected identifier but found "%"
Line 33:0 Unexpected "{"
Line 33:1 Expected identifier but found "%"
... and 4 more hidden warnings

**/
{% comment %}
  ============================================================
  SECTION FILE — sections/free-shipping-bar.liquid
  ============================================================
  This file powers the Theme Editor settings panel.
  Staff can change everything here without touching code.

  To use this as a standalone section (e.g. sitewide header),
  add it via Online Store → Themes → Customize → Add section.

  For product page / cart drawer usage, use the snippet:
    {% render 'free-shipping-bar', context: 'pdp' %}
  ============================================================
{% endcomment %}

{% render 'free-shipping-bar', context: 'pdp' %}

{% schema %}
{
  "name": "Free Shipping Bar",
  "tag": "div",
  "class": "fsb-section",
  "settings": [
    {
      "type": "header",
      "content": "Threshold"
    },
    {
      "type": "number",
      "id": "free_shipping_threshold",
      "label": "Free shipping threshold ($)",
      "default": 100,
      "info": "Enter the dollar amount. E.g. 100 = $100 free shipping."
    },
    {
      "type": "header",
      "content": "Message style"
    },
    {
      "type": "select",
      "id": "message_style",
      "label": "Tone",
      "options": [
        { "value": "playful",  "label": "Playful — Just $X more for free delivery!" },
        { "value": "friendly", "label": "Friendly — Add $X to unlock free delivery." },
        { "value": "minimal",  "label": "Minimal — $X away from free delivery." }
      ],
      "default": "playful"
    },
    {
      "type": "header",
      "content": "Bar colours"
    },
    {
      "type": "color",
      "id": "bar_color_start",
      "label": "Gradient — start (left)",
      "default": "#c8724a"
    },
    {
      "type": "color",
      "id": "bar_color_end",
      "label": "Gradient — end (right) + icon background",
      "default": "#e8a050"
    },
    {
      "type": "color",
      "id": "bar_bg_color",
      "label": "Empty track colour",
      "default": "#ede8e0"
    },
    {
      "type": "color",
      "id": "section_bg_color",
      "label": "Section background",
      "default": "#fdf6ee",
      "info": "Should match the background of the area the bar sits in."
    },
    {
      "type": "header",
      "content": "Icon (right end of bar)"
    },
    {
      "type": "select",
      "id": "icon_type",
      "label": "Icon type",
      "options": [
        { "value": "smiley", "label": "Built-in smiley face" },
        { "value": "image",  "label": "Custom image (upload below)" }
      ],
      "default": "smiley",
      "info": "Switch to 'Custom image' to upload your own icon — a truck, star, flower, anything."
    },
    {
      "type": "image_picker",
      "id": "icon_image",
      "label": "Custom icon image",
      "info": "Recommended: square PNG with transparent background, at least 80×80px."
    }
  ],
  "presets": [
    {
      "name": "Free Shipping Bar"
    }
  ]
}
{% endschema %}
