{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "OrderCancelDialog",
      "name": "Dialog/OrderCancel",
      "reusable": true,
      "width": 400,
      "height": 520,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "CancelContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "gap": 20,
          "padding": [28, 24],
          "children": [
            {
              "type": "frame", "id": "CancelIconBg", "width": 72, "height": 72, "fill": "#EF444415", "cornerRadius": 36, "justifyContent": "center", "alignItems": "center", "alignSelf": "center", "children": [
                {"type": "frame", "id": "CancelIconInner", "width": 52, "height": 52, "fill": "#EF444420", "cornerRadius": 26, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "CancelIcon", "width": 28, "height": 28, "iconFontName": "x-circle", "iconFontFamily": "lucide", "fill": "#EF4444"}
                ]}
              ]
            },
            {
              "type": "frame", "id": "CancelTextContent", "width": "fill_container", "layout": "vertical", "gap": 6, "alignItems": "center", "children": [
                {"type": "text", "id": "CancelTitle", "fill": "$text-primary", "content": "Hủy Đơn Hàng", "textAlign": "center", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700"},
                {"type": "text", "id": "CancelOrderId", "fill": "$text-tertiary", "content": "Đơn hàng #00458", "textAlign": "center", "fontFamily": "Roboto", "fontSize": 14}
              ]
            },
            {"type": "frame", "id": "ReasonField", "width": "fill_container", "layout": "vertical", "gap": 8, "children": [
              {"type": "text", "id": "ReasonLabel", "fill": "$text-secondary", "content": "Chọn lý do hủy", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "Reason1", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "padding": [0, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "frame", "id": "Radio1", "width": 18, "height": 18, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "frame", "id": "Radio1Inner", "width": 10, "height": 10, "fill": "$orange-primary", "cornerRadius": 6}
                ]},
                {"type": "text", "id": "Reason1Text", "fill": "$text-primary", "content": "Khách yêu cầu hủy", "fontFamily": "Roboto", "fontSize": 14}
              ]},
              {"type": "frame", "id": "Reason2", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "frame", "id": "Radio2", "width": 18, "height": 18, "stroke": {"thickness": 2, "fill": "$border-default"}, "cornerRadius": 10},
                {"type": "text", "id": "Reason2Text", "fill": "$text-secondary", "content": "Hết hàng/Nguyên liệu", "fontFamily": "Roboto", "fontSize": 14}
              ]},
              {"type": "frame", "id": "Reason3", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "frame", "id": "Radio3", "width": 18, "height": 18, "stroke": {"thickness": 2, "fill": "$border-default"}, "cornerRadius": 10},
                {"type": "text", "id": "Reason3Text", "fill": "$text-secondary", "content": "Nhập sai đơn", "fontFamily": "Roboto", "fontSize": 14}
              ]},
              {"type": "frame", "id": "Reason4", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "frame", "id": "Radio4", "width": 18, "height": 18, "stroke": {"thickness": 2, "fill": "$border-default"}, "cornerRadius": 10},
                {"type": "text", "id": "Reason4Text", "fill": "$text-secondary", "content": "Lý do khác", "fontFamily": "Roboto", "fontSize": 14}
              ]}
            ]},
            {"type": "frame", "id": "NoteField", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
              {"type": "text", "id": "NoteLabel", "fill": "$text-secondary", "content": "Ghi chú thêm (tùy chọn)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "NoteInput", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [10, 14], "children": [
                {"type": "text", "id": "NoteVal", "fill": "$text-tertiary", "content": "Khách đổi ý không muốn mua...", "fontFamily": "Roboto", "fontSize": 14}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CancelFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "gap": 12,
          "padding": [16, 24],
          "children": [
            {"type": "frame", "id": "BackBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "BackText", "fill": "$text-secondary", "content": "Quay lại", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "ConfirmCancelBtn", "width": "fill_container", "height": 48, "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#EF4444", "position": 0}, {"color": "#DC2626", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ConfirmCancelIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "ConfirmCancelText", "fill": "#FFFFFF", "content": "Hủy đơn", "fontFamily": "Roboto", "fontSize": 14, "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"}
  }
}
