{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "AllergenWarningDialog",
      "name": "Dialog/AllergenWarning",
      "reusable": true,
      "clip": true,
      "width": 400,
      "height": 560,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "AllergenHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "AllergenHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "AllergenIconBg", "width": 40, "height": 40, "fill": "#EF444420", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "AllergenIcon", "width": 20, "height": 20, "iconFontName": "triangle-alert", "iconFontFamily": "lucide", "fill": "#EF4444"}
              ]},
              {"type": "text", "id": "AllergenTitle", "fill": "$text-primary", "content": "Cảnh báo dị ứng", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "AllergenCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "AllergenCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "AllergenContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 20,
          "layout": "vertical",
          "gap": 16,
          "children": [
            {"type": "frame", "id": "AllergenWarningBanner", "width": "fill_container", "fill": "#EF444420", "cornerRadius": 14, "padding": 16, "layout": "vertical", "gap": 10, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "AllergenWarningIcon", "width": 36, "height": 36, "iconFontName": "octagon-alert", "iconFontFamily": "lucide", "fill": "#EF4444"},
              {"type": "text", "id": "AllergenWarningText", "fill": "#EF4444", "content": "Khách hàng có dị ứng!", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700", "textAlign": "center"},
              {"type": "text", "id": "AllergenWarningDesc", "fill": "$text-secondary", "content": "Vui lòng kiểm tra kỹ trước khi phục vụ", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal", "textAlign": "center"}
            ]},
            {"type": "frame", "id": "AllergenCustomerInfo", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "AllergenCustomerAvatar", "width": 44, "height": 44, "fill": "#8B5CF630", "cornerRadius": 22, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "AllergenCustomerInitial", "fill": "#8B5CF6", "content": "TL", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "AllergenCustomerText", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "AllergenCustomerName", "fill": "$text-primary", "content": "Trần Lan", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                {"type": "text", "id": "AllergenCustomerTable", "fill": "$text-tertiary", "content": "Bàn 12 • Đơn #1847", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
              ]}
            ]},
            {"type": "frame", "id": "AllergenList", "width": "fill_container", "layout": "vertical", "gap": 10, "children": [
              {"type": "text", "id": "AllergenListLabel", "fill": "$text-secondary", "content": "Thành phần dị ứng:", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
              {"type": "frame", "id": "AllergenTags", "width": "fill_container", "gap": 8, "children": [
                {"type": "frame", "id": "AllergenTag1", "fill": "#EF444420", "cornerRadius": 10, "padding": [8, 14], "gap": 6, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "AllergenTag1Icon", "width": 14, "height": 14, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "#EF4444"},
                  {"type": "text", "id": "AllergenTag1Text", "fill": "#EF4444", "content": "Đậu phộng", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "AllergenTag2", "fill": "#EF444420", "cornerRadius": 10, "padding": [8, 14], "gap": 6, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "AllergenTag2Icon", "width": 14, "height": 14, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "#EF4444"},
                  {"type": "text", "id": "AllergenTag2Text", "fill": "#EF4444", "content": "Hải sản", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "AllergenAffectedItems", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 12, "layout": "vertical", "gap": 8, "children": [
                {"type": "text", "id": "AllergenAffectedLabel", "fill": "$text-secondary", "content": "Món có thể bị ảnh hưởng:", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"},
                {"type": "frame", "id": "AllergenAffected1", "width": "fill_container", "gap": 8, "alignItems": "center", "children": [
                  {"type": "frame", "id": "AllergenAffected1Dot", "width": 6, "height": 6, "fill": "#EF4444", "cornerRadius": 3},
                  {"type": "text", "id": "AllergenAffected1Text", "fill": "$text-primary", "content": "Pad Thái (có đậu phộng)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
                ]},
                {"type": "frame", "id": "AllergenAffected2", "width": "fill_container", "gap": 8, "alignItems": "center", "children": [
                  {"type": "frame", "id": "AllergenAffected2Dot", "width": 6, "height": 6, "fill": "#EF4444", "cornerRadius": 3},
                  {"type": "text", "id": "AllergenAffected2Text", "fill": "$text-primary", "content": "Gỏi cuốn tôm (có hải sản)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "AllergenFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "AllergenAckBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#EF4444", "position": 0}, {"color": "#DC2626", "position": 1}]}, "cornerRadius": 12, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "AllergenAckIcon", "width": 20, "height": 20, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "AllergenAckText", "fill": "$text-primary", "content": "Đã hiểu, tiếp tục", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
